vagalume-0.8.6/0000755000000000000000000000000012233553556010306 500000000000000vagalume-0.8.6/configure0000755000000000000000000203255612233553542012145 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for vagalume 0.8.6. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='vagalume' PACKAGE_TARNAME='vagalume' PACKAGE_VERSION='0.8.6' PACKAGE_STRING='vagalume 0.8.6' PACKAGE_BUGREPORT='' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS PLATFORMVERS PLATFORM EXTRA_LIBS EXTRA_CFLAGS desktopentrydir serviceentrydir icon48dir pixmapdir themesmallicondir themebigicondir appdatadir AM_MAKEFLAGS HAVE_TRAY_ICON_FALSE HAVE_TRAY_ICON_TRUE sbplugindir sbplugindesktopentrydir SBPLUGIN_CFLAGS SBPLUGIN_LIBS HAVE_MAEMO_SB_PLUGIN_FALSE HAVE_MAEMO_SB_PLUGIN_TRUE HAVE_CONIC_FALSE HAVE_CONIC_TRUE HAVE_DBUS_SUPPORT_FALSE HAVE_DBUS_SUPPORT_TRUE SCR_RESOLUTION USE_INTERNAL_MD5_FALSE USE_INTERNAL_MD5_TRUE HILDON_2_2_FALSE HILDON_2_2_TRUE MAEMO_PLATFORM_FALSE MAEMO_PLATFORM_TRUE GETTEXT_PACKAGE MKINSTALLDIRS POSUB POFILES PO_IN_DATADIR_FALSE PO_IN_DATADIR_TRUE INTLLIBS INSTOBJEXT GMOFILES CATOBJEXT CATALOGS MSGFMT_OPTS CLEAR_DEVICE_SCRIPTS_DIR RESTORE_SETTINGS_SCRIPTS_DIR BACKUP_CONFIGURATION_DIR VAGALUME_CONF_FULLPATH DISABLE_LAST_FM dbus_LIBS dbus_CFLAGS gconf2_LIBS gconf2_CFLAGS hildonwm_LIBS hildonwm_CFLAGS hildondesktop_LIBS hildondesktop_CFLAGS libconic_LIBS libconic_CFLAGS libosso_LIBS libosso_CFLAGS hildonfm_LIBS hildonfm_CFLAGS hildon_LIBS hildon_CFLAGS SET_IM_STATUS_FALSE SET_IM_STATUS_TRUE libproxy_LIBS libproxy_CFLAGS libnotify_LIBS libnotify_CFLAGS dbus_glib_LIBS dbus_glib_CFLAGS GIO_LIBS GIO_CFLAGS GStreamer_LIBS GStreamer_CFLAGS Gtk_LIBS Gtk_CFLAGS libcurl_LIBS libcurl_CFLAGS libxml2_LIBS libxml2_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG DATADIRNAME ALL_LINGUAS INTLTOOL_PERL GMSGFMT MSGFMT MSGMERGE XGETTEXT INTLTOOL_POLICY_RULE INTLTOOL_SERVICE_RULE INTLTOOL_THEME_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_CAVES_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_XML_RULE INTLTOOL_KBD_RULE INTLTOOL_XAM_RULE INTLTOOL_UI_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_SHEET_RULE INTLTOOL_SERVER_RULE INTLTOOL_PONG_RULE INTLTOOL_OAF_RULE INTLTOOL_PROP_RULE INTLTOOL_KEYS_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_DESKTOP_RULE intltool__v_merge_options_0 intltool__v_merge_options_ INTLTOOL_V_MERGE_OPTIONS INTLTOOL__v_MERGE_0 INTLTOOL__v_MERGE_ INTLTOOL_V_MERGE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE USE_NLS OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC host_os host_vendor host_cpu host build_os build_vendor build_cpu build AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock enable_nls with_gtk_version with_gstreamer with_platform enable_dbus enable_im_status enable_tray_icon enable_libproxy enable_cast_checks ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR libxml2_CFLAGS libxml2_LIBS libcurl_CFLAGS libcurl_LIBS Gtk_CFLAGS Gtk_LIBS GStreamer_CFLAGS GStreamer_LIBS GIO_CFLAGS GIO_LIBS dbus_glib_CFLAGS dbus_glib_LIBS libnotify_CFLAGS libnotify_LIBS libproxy_CFLAGS libproxy_LIBS hildon_CFLAGS hildon_LIBS hildonfm_CFLAGS hildonfm_LIBS libosso_CFLAGS libosso_LIBS libconic_CFLAGS libconic_LIBS hildondesktop_CFLAGS hildondesktop_LIBS hildonwm_CFLAGS hildonwm_LIBS gconf2_CFLAGS gconf2_LIBS dbus_CFLAGS dbus_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures vagalume 0.8.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/vagalume] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of vagalume 0.8.6:";; esac 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-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --enable-dbus Compile with D-BUS support (default if available) --disable-dbus Don't compile with D-BUS support --enable-im-status Enable "Set IM status" feature (default if available) --disable-im-status Disable "Set IM status" feature --enable-tray-icon Enable tray icon and libnotify support (Gnome only, default if available) --disable-tray-icon Disable tray icon and libnotify support --enable-libproxy Enable system-wide proxy support (default if available) --disable-libproxy Disable system-wide proxy support --enable-cast-checks Turn on cast checks --disable-cast-checks Turn off cast checks (default) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). Gtk+ version: --with-gtk-version=2 Use GTK+ 2 --with-gtk-version=3 Use GTK+ 3 (default if available) GStreamer version: --with-gstreamer=0.10 Use GStreamer 0.10 --with-gstreamer=1.0 Use GStreamer 1.0 (default if available) Target platform: --with-platform=detect detect target platform (default) --with-platform=gnome compile for Gnome --with-platform=maemo compile for Maemo --with-platform=moblin compile for Moblin (1024x600), --with-platform=moblin2 compile for Moblin (800x480) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path libxml2_CFLAGS C compiler flags for libxml2, overriding pkg-config libxml2_LIBS linker flags for libxml2, overriding pkg-config libcurl_CFLAGS C compiler flags for libcurl, overriding pkg-config libcurl_LIBS linker flags for libcurl, overriding pkg-config Gtk_CFLAGS C compiler flags for Gtk, overriding pkg-config Gtk_LIBS linker flags for Gtk, overriding pkg-config GStreamer_CFLAGS C compiler flags for GStreamer, overriding pkg-config GStreamer_LIBS linker flags for GStreamer, overriding pkg-config GIO_CFLAGS C compiler flags for GIO, overriding pkg-config GIO_LIBS linker flags for GIO, overriding pkg-config dbus_glib_CFLAGS C compiler flags for dbus_glib, overriding pkg-config dbus_glib_LIBS linker flags for dbus_glib, overriding pkg-config libnotify_CFLAGS C compiler flags for libnotify, overriding pkg-config libnotify_LIBS linker flags for libnotify, overriding pkg-config libproxy_CFLAGS C compiler flags for libproxy, overriding pkg-config libproxy_LIBS linker flags for libproxy, overriding pkg-config hildon_CFLAGS C compiler flags for hildon, overriding pkg-config hildon_LIBS linker flags for hildon, overriding pkg-config hildonfm_CFLAGS C compiler flags for hildonfm, overriding pkg-config hildonfm_LIBS linker flags for hildonfm, overriding pkg-config libosso_CFLAGS C compiler flags for libosso, overriding pkg-config libosso_LIBS linker flags for libosso, overriding pkg-config libconic_CFLAGS C compiler flags for libconic, overriding pkg-config libconic_LIBS linker flags for libconic, overriding pkg-config hildondesktop_CFLAGS C compiler flags for hildondesktop, overriding pkg-config hildondesktop_LIBS linker flags for hildondesktop, overriding pkg-config hildonwm_CFLAGS C compiler flags for hildonwm, overriding pkg-config hildonwm_LIBS linker flags for hildonwm, overriding pkg-config gconf2_CFLAGS C compiler flags for gconf2, overriding pkg-config gconf2_LIBS linker flags for gconf2, overriding pkg-config dbus_CFLAGS C compiler flags for dbus, overriding pkg-config dbus_LIBS linker flags for dbus, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF vagalume configure 0.8.6 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by vagalume $as_me 0.8.6, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.14' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='vagalume' VERSION='0.8.6' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_headers="$ac_config_headers config.h" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$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;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&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 { ac_script=; unset ac_script;} if test -z "$SED"; then 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 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" as_fn_executable_p "$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" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&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 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 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" as_fn_executable_p "$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" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: 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:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&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:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi 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 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$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:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi 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:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$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" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it 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:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -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:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $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. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$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" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$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; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -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:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $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. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi 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:${as_lineno-$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; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -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:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $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 # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -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:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $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 # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $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:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&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:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$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;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # 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:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$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:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$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:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&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:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } case "$am__api_version" in 1.01234) as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "0.35.0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5 $as_echo_n "checking for intltool >= 0.35.0... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5 fi # Extract the first word of "intltool-update", so it can be a program name with args. set dummy intltool-update; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_UPDATE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE if test -n "$INTLTOOL_UPDATE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 $as_echo "$INTLTOOL_UPDATE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-merge", so it can be a program name with args. set dummy intltool-merge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_MERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE if test -n "$INTLTOOL_MERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 $as_echo "$INTLTOOL_MERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-extract", so it can be a program name with args. set dummy intltool-extract; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_EXTRACT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT if test -n "$INTLTOOL_EXTRACT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 $as_echo "$INTLTOOL_EXTRACT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Check the gettext tools to make sure they are GNU # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case $XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XGETTEXT=$ac_cv_path_XGETTEXT if test -n "$XGETTEXT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGMERGE=$ac_cv_path_MSGMERGE if test -n "$MSGMERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGFMT=$ac_cv_path_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 $as_echo "$INTLTOOL_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_PERL"; then as_fn_error $? "perl not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 $as_echo_n "checking for perl >= 5.8.1... " >&6; } $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 $as_echo "$IT_PERL_VERSION" >&6; } fi if test "xno-xml" != "xno-xml"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 $as_echo_n "checking for XML::Parser... " >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } else as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : DATADIRNAME=share else case $host in *-*-solaris*) ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : DATADIRNAME=share else DATADIRNAME=lib fi ;; *) DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # Some variables VAGALUME_CONFIG_DIR=".vagalume" appdatadir="\${datadir}/vagalume" themebigicondir="\${appdatadir}/icons/hicolor/scalable/apps" themesmallicondir="\${appdatadir}/icons/hicolor/scalable/apps" # Defines for config.h cat >>confdefs.h <<_ACEOF #define KERNEL_NAME "`uname -s`" _ACEOF cat >>confdefs.h <<_ACEOF #define KERNEL_NAME_LC "`uname -s|tr A-Z a-z`" _ACEOF cat >>confdefs.h <<_ACEOF #define ARCH "`uname -m`" _ACEOF cat >>confdefs.h <<_ACEOF #define VAGALUME_CONFIG_DIR "$VAGALUME_CONFIG_DIR" _ACEOF # Extra flags for compiler and linker EXTRA_CFLAGS="" EXTRA_LIBS="" ##################################### ### Basic dependencies - Required ### ##################################### if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5 $as_echo_n "checking for libxml2... " >&6; } if test -n "$libxml2_CFLAGS"; then pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libxml2_LIBS"; then pkg_cv_libxml2_LIBS="$libxml2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` else libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libxml2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libxml-2.0) were not met: $libxml2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables libxml2_CFLAGS and libxml2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables libxml2_CFLAGS and libxml2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS libxml2_LIBS=$pkg_cv_libxml2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi EXTRA_CFLAGS="$EXTRA_CFLAGS $libxml2_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libxml2_LIBS" pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5 $as_echo_n "checking for libcurl... " >&6; } if test -n "$libcurl_CFLAGS"; then pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcurl_LIBS"; then pkg_cv_libcurl_LIBS="$libcurl_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1` else libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcurl_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libcurl) were not met: $libcurl_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables libcurl_CFLAGS and libcurl_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables libcurl_CFLAGS and libcurl_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS libcurl_LIBS=$pkg_cv_libcurl_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi EXTRA_CFLAGS="$EXTRA_CFLAGS $libcurl_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libcurl_LIBS" if $PKG_CONFIG --exists gstreamer-1.0; then DETECTEDGST=1.0 elif $PKG_CONFIG --exists gstreamer-0.10; then DETECTEDGST=0.10 else as_fn_error $? "This program requires either GStreamer 0.10 or 1.0." "$LINENO" 5 fi if $PKG_CONFIG --exists gtk+-3.0; then DETECTEDGTK=3 elif $PKG_CONFIG --exists gtk+-2.0; then DETECTEDGTK=2 else as_fn_error $? "This program requires either GTK+ 2 or GTK+ 3." "$LINENO" 5 fi # Platform support # Check whether --with-gtk-version was given. if test "${with_gtk_version+set}" = set; then : withval=$with_gtk_version; GTKVERSION=$withval else GTKVERSION=$DETECTEDGTK fi GTKMOD="gtk+-${GTKVERSION}.0" pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk" >&5 $as_echo_n "checking for Gtk... " >&6; } if test -n "$Gtk_CFLAGS"; then pkg_cv_Gtk_CFLAGS="$Gtk_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GTKMOD\""; } >&5 ($PKG_CONFIG --exists --print-errors "$GTKMOD") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_Gtk_CFLAGS=`$PKG_CONFIG --cflags "$GTKMOD" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$Gtk_LIBS"; then pkg_cv_Gtk_LIBS="$Gtk_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GTKMOD\""; } >&5 ($PKG_CONFIG --exists --print-errors "$GTKMOD") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_Gtk_LIBS=`$PKG_CONFIG --libs "$GTKMOD" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then Gtk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GTKMOD" 2>&1` else Gtk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GTKMOD" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$Gtk_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ($GTKMOD) were not met: $Gtk_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables Gtk_CFLAGS and Gtk_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables Gtk_CFLAGS and Gtk_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else Gtk_CFLAGS=$pkg_cv_Gtk_CFLAGS Gtk_LIBS=$pkg_cv_Gtk_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi EXTRA_CFLAGS="$EXTRA_CFLAGS $Gtk_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $Gtk_LIBS" echo "Compiling with GTK+ version $GTKVERSION" # Check whether --with-gstreamer was given. if test "${with_gstreamer+set}" = set; then : withval=$with_gstreamer; GSTVERSION=$withval else GSTVERSION=$DETECTEDGST fi GSTMOD="gstreamer-${GSTVERSION}" pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GStreamer" >&5 $as_echo_n "checking for GStreamer... " >&6; } if test -n "$GStreamer_CFLAGS"; then pkg_cv_GStreamer_CFLAGS="$GStreamer_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GSTMOD\""; } >&5 ($PKG_CONFIG --exists --print-errors "$GSTMOD") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GStreamer_CFLAGS=`$PKG_CONFIG --cflags "$GSTMOD" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GStreamer_LIBS"; then pkg_cv_GStreamer_LIBS="$GStreamer_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GSTMOD\""; } >&5 ($PKG_CONFIG --exists --print-errors "$GSTMOD") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GStreamer_LIBS=`$PKG_CONFIG --libs "$GSTMOD" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GStreamer_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GSTMOD" 2>&1` else GStreamer_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GSTMOD" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GStreamer_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ($GSTMOD) were not met: $GStreamer_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GStreamer_CFLAGS and GStreamer_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GStreamer_CFLAGS and GStreamer_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GStreamer_CFLAGS=$pkg_cv_GStreamer_CFLAGS GStreamer_LIBS=$pkg_cv_GStreamer_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi EXTRA_CFLAGS="$EXTRA_CFLAGS $GStreamer_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $GStreamer_LIBS" echo "Compiling with GStreamer version $GSTVERSION" ##################################### ### Other dependencies - Optional ### ##################################### pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5 $as_echo_n "checking for GIO... " >&6; } if test -n "$GIO_CFLAGS"; then pkg_cv_GIO_CFLAGS="$GIO_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GIO_LIBS"; then pkg_cv_GIO_LIBS="$GIO_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1` else GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GIO_PKG_ERRORS" >&5 have_gio="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_gio="no" else GIO_CFLAGS=$pkg_cv_GIO_CFLAGS GIO_LIBS=$pkg_cv_GIO_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_gio="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_glib" >&5 $as_echo_n "checking for dbus_glib... " >&6; } if test -n "$dbus_glib_CFLAGS"; then pkg_cv_dbus_glib_CFLAGS="$dbus_glib_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_dbus_glib_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$dbus_glib_LIBS"; then pkg_cv_dbus_glib_LIBS="$dbus_glib_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_dbus_glib_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then dbus_glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-glib-1" 2>&1` else dbus_glib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-glib-1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$dbus_glib_PKG_ERRORS" >&5 have_dbus_glib="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_dbus_glib="no" else dbus_glib_CFLAGS=$pkg_cv_dbus_glib_CFLAGS dbus_glib_LIBS=$pkg_cv_dbus_glib_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_dbus_glib="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnotify" >&5 $as_echo_n "checking for libnotify... " >&6; } if test -n "$libnotify_CFLAGS"; then pkg_cv_libnotify_CFLAGS="$libnotify_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.4.1\""; } >&5 ($PKG_CONFIG --exists --print-errors "libnotify >= 0.4.1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libnotify_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= 0.4.1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libnotify_LIBS"; then pkg_cv_libnotify_LIBS="$libnotify_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.4.1\""; } >&5 ($PKG_CONFIG --exists --print-errors "libnotify >= 0.4.1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libnotify_LIBS=`$PKG_CONFIG --libs "libnotify >= 0.4.1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libnotify_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify >= 0.4.1" 2>&1` else libnotify_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify >= 0.4.1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libnotify_PKG_ERRORS" >&5 have_libnotify="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_libnotify="no" else libnotify_CFLAGS=$pkg_cv_libnotify_CFLAGS libnotify_LIBS=$pkg_cv_libnotify_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_libnotify="yes" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libproxy" >&5 $as_echo_n "checking for libproxy... " >&6; } if test -n "$libproxy_CFLAGS"; then pkg_cv_libproxy_CFLAGS="$libproxy_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libproxy-1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libproxy-1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libproxy_CFLAGS=`$PKG_CONFIG --cflags "libproxy-1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libproxy_LIBS"; then pkg_cv_libproxy_LIBS="$libproxy_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libproxy-1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libproxy-1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libproxy_LIBS=`$PKG_CONFIG --libs "libproxy-1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libproxy_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libproxy-1.0" 2>&1` else libproxy_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libproxy-1.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libproxy_PKG_ERRORS" >&5 have_libproxy="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_libproxy="no" else libproxy_CFLAGS=$pkg_cv_libproxy_CFLAGS libproxy_LIBS=$pkg_cv_libproxy_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_libproxy="yes" fi # Use libnotify only if it's linked against the same GTK+ version if test "$have_libnotify" = "yes"; then if $PKG_CONFIG --print-requires libnotify | grep -q '^gtk+-.\.0'; then if ! $PKG_CONFIG --print-requires libnotify | grep -q ^$GTKMOD ; then echo "Disabling libnotify since it uses a different GTK+ version" have_libnotify="no" fi fi fi # D-BUS versions < 1.0 require DBUS_API_SUBJECT_TO_CHANGE if test "$have_dbus_glib" = "yes"; then if ! $PKG_CONFIG --atleast-version=1.0 dbus-1; then dbus_glib_CFLAGS="$dbus_glib_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" fi fi # Tray icon support requires Gtk 2.10 and libnotify if test "$have_libnotify" = "yes"; then echo -n "checking for GTK+ >= 2.10... " if $PKG_CONFIG --atleast-version=2.10 "$GTKMOD"; then have_tray_icon="yes" else have_tray_icon="no" fi echo $have_tray_icon fi # gtk_entry_completion_set_inline_selection requires gtk 2.12 echo -n "checking for GTK+ >= 2.12... " if $PKG_CONFIG --atleast-version=2.12 "$GTKMOD"; then have_gtk_2_12="yes" $as_echo "#define HAVE_ENTRY_COMPLETION_INLINE_SELECTION 1" >>confdefs.h $as_echo "#define HAVE_GDK_THREADS_ADD_API 1" >>confdefs.h $as_echo "#define HAVE_GTK_ABOUT_DIALOG_PROGRAM_NAME 1" >>confdefs.h $as_echo "#define HAVE_GTK_TOOLTIP 1" >>confdefs.h else have_gtk_2_12="no" fi echo $have_gtk_2_12 # g_timeout_add_seconds requires gtk 2.14 echo -n "checking for GTK+ >= 2.14... " if $PKG_CONFIG --atleast-version=2.14 "$GTKMOD"; then have_gtk_2_14="yes" $as_echo "#define HAVE_GDK_THREADS_ADD_TIMEOUT_SECONDS 1" >>confdefs.h $as_echo "#define HAVE_GTK_DIALOG_GET_CONTENT_AREA 1" >>confdefs.h else have_gtk_2_14="no" fi echo $have_gtk_2_14 # gtk_about_dialog_set_{url,email}_hook are deprecated in Gtk+ 2.18 echo -n "checking for GTK+ >= 2.18... " if $PKG_CONFIG --atleast-version=2.18 "$GTKMOD"; then have_gtk_2_18="yes" have_gio="no" else have_gtk_2_18="no" fi echo $have_gtk_2_18 # GChecksum and g_strcmp0 require glib 2.16 echo -n "checking for glib >= 2.16... " if $PKG_CONFIG --atleast-version=2.16 glib-2.0; then have_glib_2_16="yes" else have_glib_2_16="no" fi echo $have_glib_2_16 # Check if we have getopt { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in -lc" >&5 $as_echo_n "checking for getopt in -lc... " >&6; } if ${ac_cv_lib_c_getopt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char getopt (); int main () { return getopt (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_getopt=yes else ac_cv_lib_c_getopt=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt" >&5 $as_echo "$ac_cv_lib_c_getopt" >&6; } if test "x$ac_cv_lib_c_getopt" = xyes; then : $as_echo "#define HAVE_GETOPT 1" >>confdefs.h else have_getopt="no" fi # Check if libcurl has curl_easy_escape() { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_escape in -lcurl" >&5 $as_echo_n "checking for curl_easy_escape in -lcurl... " >&6; } if ${ac_cv_lib_curl_curl_easy_escape+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcurl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char curl_easy_escape (); int main () { return curl_easy_escape (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_curl_curl_easy_escape=yes else ac_cv_lib_curl_curl_easy_escape=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_escape" >&5 $as_echo "$ac_cv_lib_curl_curl_easy_escape" >&6; } if test "x$ac_cv_lib_curl_curl_easy_escape" = xyes; then : $as_echo "#define HAVE_CURL_EASY_ESCAPE 1" >>confdefs.h else have_curl_easy_escape="no" fi ################################# ### User configurable options ### ################################# # Autodetect platform (with ugly hack to detect scratchbox, I know) if $PKG_CONFIG --exists libosso && readlink /etc|grep -q ^/targets; then DETECTED_PLATFORM=maemo else DETECTED_PLATFORM=gnome fi # Platform support # Check whether --with-platform was given. if test "${with_platform+set}" = set; then : withval=$with_platform; PLATFORM=$withval else PLATFORM=detect fi if test "$PLATFORM" = "detect"; then PLATFORM=$DETECTED_PLATFORM elif test "$PLATFORM" = "moblin2"; then PLATFORM=moblin scr_resolution=800x480 fi PLATFORMVERS="" # Check whether to use dbus-glib # Check whether --enable-dbus was given. if test "${enable_dbus+set}" = set; then : enableval=$enable_dbus; use_dbus_glib=$enableval else use_dbus_glib=$have_dbus_glib fi if test "$use_dbus_glib" = "yes" -a "$have_dbus_glib" = "no"; then as_fn_error $? "dbus-glib not found, install it or use --disable-dbus" "$LINENO" 5 elif test "$use_dbus_glib" = "yes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS $dbus_glib_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $dbus_glib_LIBS" fi # Check whether to use the "Set IM status" feature # Check whether --enable-im-status was given. if test "${enable_im_status+set}" = set; then : enableval=$enable_im_status; set_im_status=$enableval else set_im_status=$use_dbus_glib fi if test "$set_im_status" = "yes" -a "$use_dbus_glib" = "no"; then as_fn_error $? "dbus-glib not found, install it or use --disable-im-status" "$LINENO" 5 elif test "$set_im_status" = "yes"; then $as_echo "#define SET_IM_STATUS 1" >>confdefs.h echo "\"Set IM status\" feature enabled" else echo "\"Set IM status\" feature disabled" fi if test "$set_im_status" = "yes"; then SET_IM_STATUS_TRUE= SET_IM_STATUS_FALSE='#' else SET_IM_STATUS_TRUE='#' SET_IM_STATUS_FALSE= fi # Check whether to enable the tray icon and libnotify support # Check whether --enable-tray-icon was given. if test "${enable_tray_icon+set}" = set; then : enableval=$enable_tray_icon; enable_tray_icon=$enableval else enable_tray_icon=$have_tray_icon fi # Check whether --enable-libproxy was given. if test "${enable_libproxy+set}" = set; then : enableval=$enable_libproxy; use_libproxy=$enableval else use_libproxy=$have_libproxy fi if test "$use_libproxy" = "yes" -a "$have_libproxy" = "no"; then as_fn_error $? "libproxy not found, install it or use --disable-libproxy" "$LINENO" 5 fi # Check whether to enable cast checks # Check whether --enable-cast-checks was given. if test "${enable_cast_checks+set}" = set; then : enableval=$enable_cast_checks; enable_cast_checks=$enableval else enable_cast_checks=no fi if test "x$enable_cast_checks" != "xyes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS" fi ################################# ### Platform dependent checks ### ################################# if test "$PLATFORM" = "maemo"; then # Maemo screen resolution scr_resolution=800x480 # Disable tray icon support on Maemo have_tray_icon="no" # Disable GIO support have_gio="no" # Detect the version of the Maemo SDK libossovers=`$PKG_CONFIG libosso --modversion | cut -d . -f 1` if test "$have_curl_easy_escape" = "no"; then PLATFORMVERS=2 elif test "$libossovers" = "1"; then PLATFORMVERS=3 elif test "$libossovers" = "2"; then if test "$have_gtk_2_14" = "yes"; then PLATFORMVERS=5 else PLATFORMVERS=4 fi else as_fn_error $? "Unknown Maemo version" "$LINENO" 5 fi echo "Compiling for Maemo $PLATFORMVERS" # These are required but their names vary between Maemo versions if test "$PLATFORMVERS" = "2" -o "$PLATFORMVERS" = "3"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildon" >&5 $as_echo_n "checking for hildon... " >&6; } if test -n "$hildon_CFLAGS"; then pkg_cv_hildon_CFLAGS="$hildon_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-libs\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-libs") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildon_CFLAGS=`$PKG_CONFIG --cflags "hildon-libs" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildon_LIBS"; then pkg_cv_hildon_LIBS="$hildon_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-libs\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-libs") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildon_LIBS=`$PKG_CONFIG --libs "hildon-libs" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildon_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hildon-libs" 2>&1` else hildon_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hildon-libs" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildon_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (hildon-libs) were not met: $hildon_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables hildon_CFLAGS and hildon_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables hildon_CFLAGS and hildon_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else hildon_CFLAGS=$pkg_cv_hildon_CFLAGS hildon_LIBS=$pkg_cv_hildon_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildonfm" >&5 $as_echo_n "checking for hildonfm... " >&6; } if test -n "$hildonfm_CFLAGS"; then pkg_cv_hildonfm_CFLAGS="$hildonfm_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-fm\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-fm") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildonfm_CFLAGS=`$PKG_CONFIG --cflags "hildon-fm" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildonfm_LIBS"; then pkg_cv_hildonfm_LIBS="$hildonfm_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-fm\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-fm") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildonfm_LIBS=`$PKG_CONFIG --libs "hildon-fm" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildonfm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hildon-fm" 2>&1` else hildonfm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hildon-fm" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildonfm_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (hildon-fm) were not met: $hildonfm_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables hildonfm_CFLAGS and hildonfm_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables hildonfm_CFLAGS and hildonfm_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else hildonfm_CFLAGS=$pkg_cv_hildonfm_CFLAGS hildonfm_LIBS=$pkg_cv_hildonfm_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi $as_echo "#define HILDON_LIBS 1" >>confdefs.h $as_echo "#define HILDON_FM 1" >>confdefs.h else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildon" >&5 $as_echo_n "checking for hildon... " >&6; } if test -n "$hildon_CFLAGS"; then pkg_cv_hildon_CFLAGS="$hildon_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildon_CFLAGS=`$PKG_CONFIG --cflags "hildon-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildon_LIBS"; then pkg_cv_hildon_LIBS="$hildon_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildon_LIBS=`$PKG_CONFIG --libs "hildon-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildon_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hildon-1" 2>&1` else hildon_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hildon-1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildon_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (hildon-1) were not met: $hildon_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables hildon_CFLAGS and hildon_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables hildon_CFLAGS and hildon_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else hildon_CFLAGS=$pkg_cv_hildon_CFLAGS hildon_LIBS=$pkg_cv_hildon_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildonfm" >&5 $as_echo_n "checking for hildonfm... " >&6; } if test -n "$hildonfm_CFLAGS"; then pkg_cv_hildonfm_CFLAGS="$hildonfm_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-fm-2\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-fm-2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildonfm_CFLAGS=`$PKG_CONFIG --cflags "hildon-fm-2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildonfm_LIBS"; then pkg_cv_hildonfm_LIBS="$hildonfm_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-fm-2\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-fm-2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildonfm_LIBS=`$PKG_CONFIG --libs "hildon-fm-2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildonfm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hildon-fm-2" 2>&1` else hildonfm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hildon-fm-2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildonfm_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (hildon-fm-2) were not met: $hildonfm_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables hildonfm_CFLAGS and hildonfm_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables hildonfm_CFLAGS and hildonfm_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else hildonfm_CFLAGS=$pkg_cv_hildonfm_CFLAGS hildonfm_LIBS=$pkg_cv_hildonfm_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi $as_echo "#define HILDON_1 1" >>confdefs.h $as_echo "#define HILDON_FM_2 1" >>confdefs.h fi EXTRA_CFLAGS="$EXTRA_CFLAGS $hildon_CFLAGS $hildonfm_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $hildon_LIBS $hildonfm_LIBS" # Libosso is required pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libosso" >&5 $as_echo_n "checking for libosso... " >&6; } if test -n "$libosso_CFLAGS"; then pkg_cv_libosso_CFLAGS="$libosso_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosso osso-af-settings\""; } >&5 ($PKG_CONFIG --exists --print-errors "libosso osso-af-settings") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libosso_CFLAGS=`$PKG_CONFIG --cflags "libosso osso-af-settings" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libosso_LIBS"; then pkg_cv_libosso_LIBS="$libosso_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosso osso-af-settings\""; } >&5 ($PKG_CONFIG --exists --print-errors "libosso osso-af-settings") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libosso_LIBS=`$PKG_CONFIG --libs "libosso osso-af-settings" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libosso_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosso osso-af-settings" 2>&1` else libosso_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosso osso-af-settings" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libosso_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libosso osso-af-settings) were not met: $libosso_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables libosso_CFLAGS and libosso_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables libosso_CFLAGS and libosso_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else libosso_CFLAGS=$pkg_cv_libosso_CFLAGS libosso_LIBS=$pkg_cv_libosso_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi EXTRA_CFLAGS="$EXTRA_CFLAGS $libosso_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libosso_LIBS" # Libconic is not present in all Maemo versions pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libconic" >&5 $as_echo_n "checking for libconic... " >&6; } if test -n "$libconic_CFLAGS"; then pkg_cv_libconic_CFLAGS="$libconic_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"conic\""; } >&5 ($PKG_CONFIG --exists --print-errors "conic") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libconic_CFLAGS=`$PKG_CONFIG --cflags "conic" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libconic_LIBS"; then pkg_cv_libconic_LIBS="$libconic_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"conic\""; } >&5 ($PKG_CONFIG --exists --print-errors "conic") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libconic_LIBS=`$PKG_CONFIG --libs "conic" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libconic_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "conic" 2>&1` else libconic_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "conic" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libconic_PKG_ERRORS" >&5 have_conic="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_conic="no" else libconic_CFLAGS=$pkg_cv_libconic_CFLAGS libconic_LIBS=$pkg_cv_libconic_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_conic="yes" fi if test "$have_conic" = "yes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS $libconic_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libconic_LIBS" fi desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir` serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir` if test "x$desktopentrydir" = "x"; then as_fn_error $? "Unable to find .desktop directory" "$LINENO" 5 elif test "x$serviceentrydir" = "x"; then as_fn_error $? "Unable to find dbus service directory" "$LINENO" 5 fi # These are optional and only required for the Maemo status bar plugin if test "x$PLATFORMVERS" = "x5"; then echo "The Maemo status bar plugin is not available in Maemo 5" have_sb_plugin="no" else echo "Checking dependencies to compile the Maemo status bar plugin" have_sb_plugin="yes" pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildondesktop" >&5 $as_echo_n "checking for hildondesktop... " >&6; } if test -n "$hildondesktop_CFLAGS"; then pkg_cv_hildondesktop_CFLAGS="$hildondesktop_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhildondesktop\""; } >&5 ($PKG_CONFIG --exists --print-errors "libhildondesktop") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildondesktop_CFLAGS=`$PKG_CONFIG --cflags "libhildondesktop" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildondesktop_LIBS"; then pkg_cv_hildondesktop_LIBS="$hildondesktop_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhildondesktop\""; } >&5 ($PKG_CONFIG --exists --print-errors "libhildondesktop") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildondesktop_LIBS=`$PKG_CONFIG --libs "libhildondesktop" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildondesktop_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libhildondesktop" 2>&1` else hildondesktop_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libhildondesktop" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildondesktop_PKG_ERRORS" >&5 have_sb_plugin="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_sb_plugin="no" else hildondesktop_CFLAGS=$pkg_cv_hildondesktop_CFLAGS hildondesktop_LIBS=$pkg_cv_hildondesktop_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildonwm" >&5 $as_echo_n "checking for hildonwm... " >&6; } if test -n "$hildonwm_CFLAGS"; then pkg_cv_hildonwm_CFLAGS="$hildonwm_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhildonwm\""; } >&5 ($PKG_CONFIG --exists --print-errors "libhildonwm") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildonwm_CFLAGS=`$PKG_CONFIG --cflags "libhildonwm" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildonwm_LIBS"; then pkg_cv_hildonwm_LIBS="$hildonwm_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhildonwm\""; } >&5 ($PKG_CONFIG --exists --print-errors "libhildonwm") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildonwm_LIBS=`$PKG_CONFIG --libs "libhildonwm" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildonwm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libhildonwm" 2>&1` else hildonwm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libhildonwm" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildonwm_PKG_ERRORS" >&5 have_sb_plugin="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_sb_plugin="no" else hildonwm_CFLAGS=$pkg_cv_hildonwm_CFLAGS hildonwm_LIBS=$pkg_cv_hildonwm_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf2" >&5 $as_echo_n "checking for gconf2... " >&6; } if test -n "$gconf2_CFLAGS"; then pkg_cv_gconf2_CFLAGS="$gconf2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_gconf2_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$gconf2_LIBS"; then pkg_cv_gconf2_LIBS="$gconf2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_gconf2_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then gconf2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1` else gconf2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$gconf2_PKG_ERRORS" >&5 have_sb_plugin="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_sb_plugin="no" else gconf2_CFLAGS=$pkg_cv_gconf2_CFLAGS gconf2_LIBS=$pkg_cv_gconf2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus" >&5 $as_echo_n "checking for dbus... " >&6; } if test -n "$dbus_CFLAGS"; then pkg_cv_dbus_CFLAGS="$dbus_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_dbus_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$dbus_LIBS"; then pkg_cv_dbus_LIBS="$dbus_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_dbus_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then dbus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1` else dbus_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$dbus_PKG_ERRORS" >&5 have_sb_plugin="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_sb_plugin="no" else dbus_CFLAGS=$pkg_cv_dbus_CFLAGS dbus_LIBS=$pkg_cv_dbus_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi if test "$have_sb_plugin" = "yes"; then SBPLUGIN_CFLAGS="$Gtk_CFLAGS $hildon_CFLAGS $libosso_CFLAGS \ $hildondesktop_CFLAGS $hildonwm_CFLAGS \ $gconf2_CFLAGS $dbus_CFLAGS" SBPLUGIN_LIBS="$Gtk_LIBS $hildon_LIBS $libosso_LIBS \ $hildondesktop_LIBS $hildonwm_LIBS \ $gconf2_LIBS $dbus_LIBS" sbplugindesktopentrydir=`$PKG_CONFIG osso-af-settings \ --variable=statusbardesktopentrydir` sbplugindir=`$PKG_CONFIG osso-af-settings --variable=hildondesktoplibdir` if test "x$sbplugindesktopentrydir" = "x"; then as_fn_error $? "Unable to find .desktop directory" "$LINENO" 5 elif test "x$sbplugindir" = "x"; then as_fn_error $? "Unable to find hildon desktop libs directory" "$LINENO" 5 fi echo "All required libs found: compiling Maemo status bar plugin" else echo "Some libs are missing: Unable to compile Maemo status bar plugin" fi fi $as_echo "#define MAEMO /**/" >>confdefs.h $as_echo "#define USE_HILDON_WINDOW 1" >>confdefs.h if test "$PLATFORMVERS" = "2"; then $as_echo "#define MAEMO2 /**/" >>confdefs.h elif test "$PLATFORMVERS" = "3"; then $as_echo "#define MAEMO3 /**/" >>confdefs.h elif test "$PLATFORMVERS" = "4"; then $as_echo "#define MAEMO4 /**/" >>confdefs.h else $as_echo "#define MAEMO5 /**/" >>confdefs.h # Install data in /opt, since the rootfs in the N900 is small bindir="/opt/vagalume/bin" appdatadir="/opt/vagalume" localedir="/opt/vagalume/locale" # Sorry, no Last.fm allowed on mobile phones DISABLE_LAST_FM="yes" fi if test "$PLATFORMVERS" -le "4"; then $as_echo "#define HAVE_DSPMP3SINK 1" >>confdefs.h enable_volume_key_handler="yes" themesmallicondir="\${appdatadir}/icons/hicolor/50x50/apps" fi VAGALUME_CONF_FULLPATH="/home/user/$VAGALUME_CONFIG_DIR" BACKUP_CONFIGURATION_DIR="/etc/osso-backup/applications" RESTORE_SETTINGS_SCRIPTS_DIR="/etc/osso-rfs-scripts" CLEAR_DEVICE_SCRIPTS_DIR="/etc/osso-cud-scripts" elif test "$PLATFORM" = "gnome"; then echo "Compiling for Gnome" # Desktop screen resolution scr_resolution=desktop if test "$use_dbus_glib" = "yes"; then serviceentrydir=`$PKG_CONFIG dbus-1 --variable=session_bus_services_dir` $as_echo "#define HAVE_GSD_MEDIA_PLAYER_KEYS 1" >>confdefs.h fi desktopentrydir="\${datadir}/applications" if test "$enable_tray_icon" = "yes" -a "$have_tray_icon" = "no"; then as_fn_error $? "Unable to compile with tray icon and libnotify support" "$LINENO" 5 elif test "$enable_tray_icon" = "yes"; then echo "Compiling with tray icon and notifications" # Add extra required parameters EXTRA_CFLAGS="$EXTRA_CFLAGS $libnotify_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libnotify_LIBS" else have_tray_icon="no" echo "Compiling without tray icon and notifications" fi elif test "$PLATFORM" = "moblin"; then if test "x$scr_resolution" = "x"; then scr_resolution=1024x600 fi # Disable tray icon support on Moblin have_tray_icon="no" if test "$use_dbus_glib" = "yes"; then serviceentrydir=`$PKG_CONFIG dbus-1 --variable=session_bus_services_dir` fi desktopentrydir="\${datadir}/applications" echo "Compiling for Moblin" pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hildon" >&5 $as_echo_n "checking for hildon... " >&6; } if test -n "$hildon_CFLAGS"; then pkg_cv_hildon_CFLAGS="$hildon_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildon_CFLAGS=`$PKG_CONFIG --cflags "hildon-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$hildon_LIBS"; then pkg_cv_hildon_LIBS="$hildon_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1\""; } >&5 ($PKG_CONFIG --exists --print-errors "hildon-1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_hildon_LIBS=`$PKG_CONFIG --libs "hildon-1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then hildon_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hildon-1" 2>&1` else hildon_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hildon-1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$hildon_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (hildon-1) were not met: $hildon_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables hildon_CFLAGS and hildon_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables hildon_CFLAGS and hildon_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else hildon_CFLAGS=$pkg_cv_hildon_CFLAGS hildon_LIBS=$pkg_cv_hildon_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi EXTRA_CFLAGS="$EXTRA_CFLAGS $hildon_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $hildon_LIBS" $as_echo "#define MOBLIN 1" >>confdefs.h $as_echo "#define HILDON_1 1" >>confdefs.h $as_echo "#define USE_HILDON_WINDOW 1" >>confdefs.h else as_fn_error $? "Unknown platform $PLATFORM selected" "$LINENO" 5 fi #################### ### Translations ### #################### vgllocaledir=`eval echo $localedir` vgllocaledir=`eval echo $vgllocaledir` cat >>confdefs.h <<_ACEOF #define VAGALUME_LOCALE_DIR "$vgllocaledir" _ACEOF for ac_header in locale.h do : ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" if test "x$ac_cv_header_locale_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LOCALE_H 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 $as_echo_n "checking for LC_MESSAGES... " >&6; } if ${am_cv_val_LC_MESSAGES+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_val_LC_MESSAGES=yes else am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 $as_echo "$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" if test "x$ac_cv_header_libintl_h" = xyes; then : gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 $as_echo_n "checking for ngettext in libc... " >&6; } if ${gt_cv_func_ngettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_ngettext_libc=yes else gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 $as_echo "$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 $as_echo_n "checking for dgettext in libc... " >&6; } if ${gt_cv_func_dgettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_dgettext_libc=yes else gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 $as_echo "$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do : ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; } if ${ac_cv_lib_intl_bindtextdomain+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_bindtextdomain=yes else ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 $as_echo_n "checking for ngettext in -lintl... " >&6; } if ${ac_cv_lib_intl_ngettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_ngettext=yes else ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 $as_echo "$ac_cv_lib_intl_ngettext" >&6; } if test "x$ac_cv_lib_intl_ngettext" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 $as_echo_n "checking for dgettext in -lintl... " >&6; } if ${ac_cv_lib_intl_dgettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_dgettext=yes else ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } if test "x$ac_cv_lib_intl_dgettext" = xyes; then : gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 $as_echo_n "checking for ngettext in -lintl... " >&6; } if ${ac_cv_lib_intl_ngettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_ngettext=yes else ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 $as_echo "$ac_cv_lib_intl_ngettext" >&6; } if test "x$ac_cv_lib_intl_ngettext" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 $as_echo_n "checking for dcgettext in -lintl... " >&6; } if ${ac_cv_lib_intl_dcgettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_dcgettext=yes else ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; } if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do : ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do : ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" if test "x$ac_cv_func_dcgettext" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DCGETTEXT 1 _ACEOF fi done MSGFMT_OPTS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 $as_echo_n "checking if msgfmt accepts -c... " >&6; } cat >conftest.foo <<_ACEOF msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" _ACEOF if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } echo "$as_me: failed input was:" >&5 sed 's/^/| /' conftest.foo >&5 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : CATOBJEXT=.gmo DATADIRNAME=share else case $host in *-*-solaris*) ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *-*-openbsd*) CATOBJEXT=.mo DATADIRNAME=share ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 $as_echo_n "checking for catalogs to be installed... " >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 $as_echo "$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES GETTEXT_PACKAGE=vagalume cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF ################################################################## ### Everything has been checked, now define Automake variables ### ################################################################## if test "$PLATFORM" = "maemo"; then MAEMO_PLATFORM_TRUE= MAEMO_PLATFORM_FALSE='#' else MAEMO_PLATFORM_TRUE='#' MAEMO_PLATFORM_FALSE= fi if test "$PLATFORM" = "maemo" -a "$PLATFORMVERS" = "5"; then HILDON_2_2_TRUE= HILDON_2_2_FALSE='#' else HILDON_2_2_TRUE='#' HILDON_2_2_FALSE= fi if test "x$have_glib_2_16" != "xyes"; then USE_INTERNAL_MD5_TRUE= USE_INTERNAL_MD5_FALSE='#' else USE_INTERNAL_MD5_TRUE='#' USE_INTERNAL_MD5_FALSE= fi if test "$have_glib_2_16" = "yes"; then $as_echo "#define HAVE_GCHECKSUM 1" >>confdefs.h $as_echo "#define HAVE_GSTRCMP0 1" >>confdefs.h md5_method="glib" else md5_method="internal implementation" fi if test "$scr_resolution" = "desktop"; then $as_echo "#define SCR_RESOLUTION_DESKTOP 1" >>confdefs.h elif test "$scr_resolution" = "800x480"; then $as_echo "#define SCR_RESOLUTION_800X480 1" >>confdefs.h elif test "$scr_resolution" = "1024x600"; then $as_echo "#define SCR_RESOLUTION_1024X600 1" >>confdefs.h else as_fn_error $? "Unknown screen resolution in the target platform" "$LINENO" 5 fi SCR_RESOLUTION="$scr_resolution" if test -n "$serviceentrydir"; then HAVE_DBUS_SUPPORT_TRUE= HAVE_DBUS_SUPPORT_FALSE='#' else HAVE_DBUS_SUPPORT_TRUE='#' HAVE_DBUS_SUPPORT_FALSE= fi if test -n "$serviceentrydir"; then $as_echo "#define HAVE_DBUS_SUPPORT 1" >>confdefs.h fi if test "$have_conic" = "yes"; then HAVE_CONIC_TRUE= HAVE_CONIC_FALSE='#' else HAVE_CONIC_TRUE='#' HAVE_CONIC_FALSE= fi if test "$have_conic" = "yes"; then $as_echo "#define HAVE_CONIC 1" >>confdefs.h fi if test "$have_sb_plugin" = "yes"; then HAVE_MAEMO_SB_PLUGIN_TRUE= HAVE_MAEMO_SB_PLUGIN_FALSE='#' else HAVE_MAEMO_SB_PLUGIN_TRUE='#' HAVE_MAEMO_SB_PLUGIN_FALSE= fi if test "$have_sb_plugin" = "yes"; then $as_echo "#define HAVE_MAEMO_SB_PLUGIN 1" >>confdefs.h fi if test "$use_libproxy" = "yes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS $libproxy_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libproxy_LIBS" $as_echo "#define HAVE_LIBPROXY 1" >>confdefs.h fi if test "$have_gio" = "yes"; then $as_echo "#define HAVE_GIO 1" >>confdefs.h EXTRA_CFLAGS="$EXTRA_CFLAGS $GIO_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $GIO_LIBS" fi if test "$have_tray_icon" = "yes"; then HAVE_TRAY_ICON_TRUE= HAVE_TRAY_ICON_FALSE='#' else HAVE_TRAY_ICON_TRUE='#' HAVE_TRAY_ICON_FALSE= fi if test "$have_tray_icon" = "yes"; then $as_echo "#define HAVE_TRAY_ICON 1" >>confdefs.h fi if test "$enable_volume_key_handler" = "yes"; then $as_echo "#define ENABLE_VOLUME_KEY_HANDLER 1" >>confdefs.h fi AM_MAKEFLAGS="itlocaledir=\${localedir}" pixmapdir="\${datadir}/pixmaps" icon48dir="\${datadir}/icons/hicolor/48x48/apps" ############################ ### Produce output files ### ############################ ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile data/vagalume-rfs.sh data/vagalume.conf" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${SET_IM_STATUS_TRUE}" && test -z "${SET_IM_STATUS_FALSE}"; then as_fn_error $? "conditional \"SET_IM_STATUS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MAEMO_PLATFORM_TRUE}" && test -z "${MAEMO_PLATFORM_FALSE}"; then as_fn_error $? "conditional \"MAEMO_PLATFORM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HILDON_2_2_TRUE}" && test -z "${HILDON_2_2_FALSE}"; then as_fn_error $? "conditional \"HILDON_2_2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_INTERNAL_MD5_TRUE}" && test -z "${USE_INTERNAL_MD5_FALSE}"; then as_fn_error $? "conditional \"USE_INTERNAL_MD5\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_DBUS_SUPPORT_TRUE}" && test -z "${HAVE_DBUS_SUPPORT_FALSE}"; then as_fn_error $? "conditional \"HAVE_DBUS_SUPPORT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_CONIC_TRUE}" && test -z "${HAVE_CONIC_FALSE}"; then as_fn_error $? "conditional \"HAVE_CONIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MAEMO_SB_PLUGIN_TRUE}" && test -z "${HAVE_MAEMO_SB_PLUGIN_FALSE}"; then as_fn_error $? "conditional \"HAVE_MAEMO_SB_PLUGIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_TRAY_ICON_TRUE}" && test -z "${HAVE_TRAY_ICON_FALSE}"; then as_fn_error $? "conditional \"HAVE_TRAY_ICON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by vagalume $as_me 0.8.6, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ vagalume config.status 0.8.6 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "data/vagalume-rfs.sh") CONFIG_FILES="$CONFIG_FILES data/vagalume-rfs.sh" ;; "data/vagalume.conf") CONFIG_FILES="$CONFIG_FILES data/vagalume.conf" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; "po/stamp-it":C) if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 fi rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.in" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi ###################### ### Status summary ### ###################### echo "" echo "****************************************" echo "*** Vagalume is ready to be compiled ***" echo "****************************************" echo "" echo "Target platform: $PLATFORM $PLATFORMVERS" echo "GTK+ version: $GTKVERSION" echo "GStreamer version: $GSTVERSION" echo "Method to compute MD5 sums: $md5_method" echo "\"Set IM status\" enabled: $set_im_status" echo "System-wide proxy support: $use_libproxy" if test "$PLATFORM" = "gnome"; then echo "Tray icon and notifications enabled: $have_tray_icon" elif test "$PLATFORM" = "maemo"; then echo "Maemo status bar plugin enabled: $have_sb_plugin" echo "Libconic support: $have_conic" fi echo "D-Bus Support enabled:" $use_dbus_glib echo "Target display: $scr_resolution" echo "" echo "Type 'make' to compile Vagalume" echo "" vagalume-0.8.6/scripts/0000755000000000000000000000000012233553555011774 500000000000000vagalume-0.8.6/scripts/vagalumectl0000755000000000000000000001503612233552617014151 00000000000000#!/bin/sh # # A shell script for easily managing some of the # Vagalume features available via its D-Bus interface. # # Copyright (C) 2008, 2010 Igalia, S.L. # Authors: Mario Sanchez Prada # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . set -e PROGNAME="$(basename $0)" # D-Bus basic parameters DBUS_SERVICE='com.igalia.vagalume' DBUS_OBJECT=/com/igalia/vagalume DBUS_IFACE=com.igalia.vagalume # Available D-Bus commands DBUS_METHOD_PLAY="Play" DBUS_METHOD_STOP="Stop" DBUS_METHOD_SKIP="Skip" DBUS_METHOD_LOVETRACK="LoveTrack" DBUS_METHOD_BANTRACK="BanTrack" DBUS_METHOD_PLAYURL="PlayUrl" DBUS_METHOD_VOLUMEUP="VolumeUp" DBUS_METHOD_VOLUMEDOWN="VolumeDown" DBUS_METHOD_SETVOLUME="SetVolume" DBUS_METHOD_CLOSEAPP="CloseApp" DBUS_METHOD_TOPAPP="top_application" DBUS_METHOD_SHOWWINDOW="ShowWindow" DBUS_METHOD_HIDEWINDOW="HideWindow" # Print the usage for this shell script print_usage () { echo "Usage:" echo " $PROGNAME " echo " (Vagalume will be automatically started if not already running)" echo echo " COMMAND:" echo " play: start playing the current radio" echo " skip: skip to the nex song in the current radio" echo " stop: stop playing the current radio" echo " love: mark the current song as 'loved'" echo " ban: mark the current song as 'banned'" echo " globaltag : change to a 'global tag' radio." echo " artist : change to a 'similar artists' radio" echo " group : change to a 'last.fm group' radio" echo " loved : change to a 'loved' radio for a specific user" echo " mix : change to a 'mix' radio for a specific user" echo " neighbours : change to a 'neighbours' radio for a specific user" echo " library : change to a 'library' radio for a specific user" echo " playlist : change to a 'playlist' radio for a specific user" echo " playurl : just play the specified URL on Vagalume" echo " volumeup [INC]: increase playback volume" echo " volumedown [INC]: decrease playback volume" echo " volume : set the playback volume to a specific value" echo " start: start Vagalume (if not already running)" echo " close: close Vagalume (if not already closed)" echo " show: show the player window" echo " hide: hide the player window" echo " help: print this information" echo echo " Double quotes are REQUIRED when specifying parameters to some commands," echo " such as TAG or ARTIST, because of the white spaces they might contain, e.g:" echo echo " $ $PROGNAME globaltag \"hard rock\"" echo " $ $PROGNAME artist \"Led Zeppelin\"" echo } # Invalid parameters: print usage and exit with error code invalid_params () { # Print error message, if specified if [ $# -gt 0 ]; then echo "Error: "${1}; echo; fi print_usage; exit 1; } # Check number of parameteres if [ $# -lt 1 ]; then invalid_params; fi if ! which dbus-send > /dev/null 2>&1; then echo "ERROR: dbus-send not found" exit 1 fi # Check the command and execute it COMMAND=${1} if [ $# -eq 1 ]; then # Commands requiring no parameters case ${COMMAND} in "stop") DBUS_METHOD_CALL=${DBUS_METHOD_STOP};; "play") DBUS_METHOD_CALL=${DBUS_METHOD_PLAY};; "skip") DBUS_METHOD_CALL=${DBUS_METHOD_SKIP};; "love") DBUS_METHOD_CALL=${DBUS_METHOD_LOVETRACK};; "ban") DBUS_METHOD_CALL=${DBUS_METHOD_BANTRACK};; "volumeup") DBUS_METHOD_CALL=${DBUS_METHOD_VOLUMEUP};; "volumedown") DBUS_METHOD_CALL=${DBUS_METHOD_VOLUMEDOWN};; "close") DBUS_METHOD_CALL=${DBUS_METHOD_CLOSEAPP};; "start") DBUS_METHOD_CALL=${DBUS_METHOD_TOPAPP};; "close") DBUS_METHOD_CALL=${DBUS_METHOD_CLOSEAPP};; "show") DBUS_METHOD_CALL=${DBUS_METHOD_SHOWWINDOW};; "hide") DBUS_METHOD_CALL=${DBUS_METHOD_HIDEWINDOW};; "help") print_usage; exit 0;; *) invalid_params;; esac elif [ $# -eq 2 ]; then # Commands requiring a parameter ENCODED_PARAM=`echo ${2} | tr " " "+"` case ${COMMAND} in "globaltag") URL="lastfm://globaltags/"${ENCODED_PARAM};; "artist") URL="lastfm://artist/"${ENCODED_PARAM};; "group") URL="lastfm://group/"${ENCODED_PARAM};; "loved") URL="lastfm://user/"${ENCODED_PARAM}"/loved";; "mix") URL="lastfm://user/"${ENCODED_PARAM}"/mix";; "neighbours") URL="lastfm://user/"${ENCODED_PARAM}"/neighbours";; "library") URL="lastfm://user/"${ENCODED_PARAM}"/personal";; "playlist") URL="lastfm://user/"${ENCODED_PARAM}"/playlist";; "playurl") URL=${ENCODED_PARAM};; "volumeup") DBUS_METHOD_CALL=${DBUS_METHOD_VOLUMEUP};; "volumedown") DBUS_METHOD_CALL=${DBUS_METHOD_VOLUMEDOWN};; "volume") DBUS_METHOD_CALL=${DBUS_METHOD_SETVOLUME};; *) invalid_params;; esac; # Parse numerical parameters, if needed case ${COMMAND} in "volumeup"|"volumedown"|"volume") if echo ${2} | grep -q '^[0-9]\+$'; then DBUS_METHOD_PARAMS="uint32:${2}"; else invalid_params "The specified parameter must be a positive number"; fi;; esac; if [ -n "${URL}" ]; then DBUS_METHOD_CALL=${DBUS_METHOD_PLAYURL}" string:"${URL}; fi else invalid_params; fi # Check whether vagalume is or not already running if { { which pidof && pidof vagalume ; } || \ { which pgrep && pgrep -x vagalume ; } } > /dev/null 2>&1; then if [ ${COMMAND} = "start" ]; then echo "Vagalume already running." exit 0 fi elif [ ${COMMAND} = "close" ]; then # Exit cleanly without executing the 'close' command when Vagalume is not running echo "Vagalume not running: no need to close it" exit 0 fi # At last, execute the command dbus-send --print-reply --type=method_call \ --dest=${DBUS_SERVICE} ${DBUS_OBJECT} ${DBUS_IFACE}.${DBUS_METHOD_CALL} ${DBUS_METHOD_PARAMS} > /dev/null echo "Command '"$COMMAND"' successfully executed" vagalume-0.8.6/Makefile.am0000644000000000000000000000643212233552617012264 00000000000000# # This file is part of Vagalume and is published under the GNU GPLv3. # # Copyright (C) 2007-2011, 2013 Igalia, S.L. # # See the README file for more details. # EXTRA_DIST = \ TRANSLATORS \ autogen.sh \ data/buttons \ data/cover \ data/icons \ data/servers.xml.in \ data/vagalume-rfs.sh.in \ data/vagalume-sb-plugin.desktop \ data/vagalume.conf.in \ data/vagalume.desktop.in.in \ data/vagalume.desktop.maemo \ data/vagalume.desktop.moblin \ data/vagalume.service.in \ scripts/vagalumectl \ vagalume.1 \ vagalumectl.1 CLEANFILES = data/servers.xml \ data/vagalume.desktop \ data/vagalume.desktop.in \ data/vagalume.service SUBDIRS = src po manpages = vagalume.1 pixmap_DATA = data/icons/vagalume.xpm icon48_DATA = data/icons/48x48/* appdata_DATA = data/cover/$(SCR_RESOLUTION)/cover.png data/servers.xml desktopentry_DATA = data/vagalume.desktop @INTLTOOL_DESKTOP_RULE@ if HAVE_DBUS_SUPPORT serviceentry_DATA = data/vagalume.service bin_SCRIPTS = scripts/vagalumectl manpages += vagalumectl.1 endif if HAVE_MAEMO_SB_PLUGIN sbplugindesktopentry_DATA = data/vagalume-sb-plugin.desktop endif if MAEMO_PLATFORM icon26dir = $(datadir)/icons/hicolor/26x26/apps icon26_DATA = data/icons/26x26/* iconscalabledir = $(datadir)/icons/hicolor/scalable/apps iconscalable_DATA = data/icons/scalable/* themebigicon_DATA = data/buttons/big/*.png themesmallicon_DATA = data/buttons/small/*.png backupconfdir = @BACKUP_CONFIGURATION_DIR@ backupconf_DATA = data/vagalume.conf restoresettingsexecscriptdir = @RESTORE_SETTINGS_SCRIPTS_DIR@ restoresettingsexecscript_SCRIPTS = data/vagalume-rfs.sh else themebigicon_DATA = data/buttons/big/*.svg themesmallicon_DATA = data/buttons/small/*.svg man1_MANS = $(manpages) endif edit = sed -e 's,@BINDIR\@,$(bindir),g' -e 's,@PIXMAPDIR\@,$(pixmapdir),g' data/vagalume.service: Makefile data/vagalume.service.in rm -f data/vagalume.service $(edit) data/vagalume.service.in > data/vagalume.service data/vagalume.desktop.in: Makefile data/vagalume.desktop.in.in rm -f data/vagalume.desktop.in $(edit) data/vagalume.desktop.in.in > data/vagalume.desktop.in if test -f "data/vagalume.desktop.$(PLATFORM)" ; then \ cat "data/vagalume.desktop.$(PLATFORM)" >> data/vagalume.desktop.in ; \ fi data/servers.xml: Makefile data/servers.xml.in rm -f data/servers.xml if test "x$(DISABLE_LAST_FM)" = "xyes"; then \ sed '/BEGIN_LAST_FM/,/END_LAST_FM/d' \ data/servers.xml.in > data/servers.xml ; \ else \ grep -v '_LAST_FM' data/servers.xml.in > data/servers.xml ; \ fi install-exec-hook: if test "$(PLATFORM)" = "maemo"; then \ $(MKDIR_P) "$(DESTDIR)/@CLEAR_DEVICE_SCRIPTS_DIR@" ; \ $(LN_S) "@RESTORE_SETTINGS_SCRIPTS_DIR@/vagalume-rfs.sh" \ "$(DESTDIR)/@CLEAR_DEVICE_SCRIPTS_DIR@/vagalume-cud.sh" ; \ if test "x$(PLATFORMVERS)" = "x5"; then \ ln -s /opt/vagalume/bin/vagalume $(DESTDIR)/usr/bin ; \ ln -s /opt/vagalume/bin/vagalumectl $(DESTDIR)/usr/bin ; \ fi ; \ fi dist-hook: @if test -d "$(srcdir)/.git"; \ then \ echo Creating ChangeLog && \ ( cd "$(top_srcdir)" && \ $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ || ( rm -f ChangeLog.tmp ; \ echo Failed to generate ChangeLog >&2 ); \ else \ echo A git clone is required to generate a ChangeLog >&2; \ fi vagalume-0.8.6/TRANSLATORS0000644000000000000000000000205512233552617011764 00000000000000Carles Muñoz Gorriz * Catalan translation Stephan Reichholf Oskar Welzl * German translation Oscar A. Mata T. Ricardo Mones * Spanish translation Janne Mäkinen Mika Tapojärvi Tommi Franttila * Finnish translation Julien Duponchelle Jean-Alexandre Angles d'Auriac * French translation Ignacio Casal Quinteiro Amador Loureiro Blanco * Galician translation Andrea Grandi * Italian translation Pēteris Caune * Latvian translation Dawid Pakuła (ZuLuS) * Polish translation Marcos Garcia * Portuguese translation Rodrigo Flores * Portuguese (Brazil) translation Sergei Ivanov Vitaly Petrov * Russian translation vagalume-0.8.6/AUTHORS0000644000000000000000000000232612233552617011276 00000000000000Alberto Garcia Gonzalez * Core development Mario Sanchez Prada * Maemo status bar plugin * Icons, UI enhancements * Freedesktop tray icon and libnotify support * vagalumectl and D-BUS enhancements * Other minor changes Otto Krüja * Icons Felipe Erias Morandeira * UI improvements and original Vagalume icon Xabier Rodríguez Calvar * Help with ConIc support, Maemo hw event handlers and backup Tim Wegener * Set IM status Alejandro Piñeiro Iglesias (API) * Gettext support Luca Bruno * Several UI improvements ------------------------------------------------- The default icons for the buttons in Vagalume have been taken from the Gnome 2.20 icon theme. They have been designed by: Riccardo Buzzotta Josef Vybíral Hylke Bons Ricardo González Lapo Calamandrei Rodney Dawes Luca Ferretti Tuomas Kuosmanen Andreas Nilsson Jakub Steiner vagalume-0.8.6/config.h.in0000644000000000000000000001120312233553543012242 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Architecture */ #undef ARCH /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Defined if using a handler for volume keys */ #undef ENABLE_VOLUME_KEY_HANDLER /* Gettext package */ #undef GETTEXT_PACKAGE /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Defined if building with libconic */ #undef HAVE_CONIC /* If curl_easy_escape() exists */ #undef HAVE_CURL_EASY_ESCAPE /* Defined if compiling with D-BUS */ #undef HAVE_DBUS_SUPPORT /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Defined if using dspmp3sink */ #undef HAVE_DSPMP3SINK /* Defined if gtk_entry_completion_set_inline_selection () exists */ #undef HAVE_ENTRY_COMPLETION_INLINE_SELECTION /* Defined if GLib has support for GChecksum */ #undef HAVE_GCHECKSUM /* Defined if gtk_threads_add_* () exists */ #undef HAVE_GDK_THREADS_ADD_API /* Defined if gdk_threads_add_timeout_seconds() exists */ #undef HAVE_GDK_THREADS_ADD_TIMEOUT_SECONDS /* Defined if getopt() exists */ #undef HAVE_GETOPT /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Defined if building with GIO support */ #undef HAVE_GIO /* Media player keys in some keyboards */ #undef HAVE_GSD_MEDIA_PLAYER_KEYS /* Defined if GLib has support for g_strcmp0 */ #undef HAVE_GSTRCMP0 /* Defined if GtkAboutDialog:program-name exists */ #undef HAVE_GTK_ABOUT_DIALOG_PROGRAM_NAME /* Defined if gtk_dialog_get_content_area() exists */ #undef HAVE_GTK_DIALOG_GET_CONTENT_AREA /* Defined if gtk_widget_set_tooltip_text() exists */ #undef HAVE_GTK_TOOLTIP /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Defined if using libproxy */ #undef HAVE_LIBPROXY /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Defined if building the Maemo status bar plugin */ #undef HAVE_MAEMO_SB_PLUGIN /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Defined if building the FD tray icon */ #undef HAVE_TRAY_ICON /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Defined if using hildon-1 */ #undef HILDON_1 /* Defined if using hildon-fm */ #undef HILDON_FM /* Defined if using hildon-fm-2 */ #undef HILDON_FM_2 /* Defined if using hildon-libs */ #undef HILDON_LIBS /* Name of the kernel */ #undef KERNEL_NAME /* Name of the kernel (lowercase) */ #undef KERNEL_NAME_LC /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Defined if building for Maemo */ #undef MAEMO /* Defined if building for Maemo 2 (gregale) */ #undef MAEMO2 /* Defined if building for Maemo 3 (bora) */ #undef MAEMO3 /* Defined if building for Maemo 4 (chinook) */ #undef MAEMO4 /* Defined if building for Maemo 5 (fremantle) */ #undef MAEMO5 /* Defined if building for Moblin */ #undef MOBLIN /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Compiled for 1024x600 */ #undef SCR_RESOLUTION_1024X600 /* Compiled for 800x480 */ #undef SCR_RESOLUTION_800X480 /* Compiled for a desktop system */ #undef SCR_RESOLUTION_DESKTOP /* Defined if "Set IM Status" is enabled */ #undef SET_IM_STATUS /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Defined if using HildonWindow */ #undef USE_HILDON_WINDOW /* Vagalume configuration directory */ #undef VAGALUME_CONFIG_DIR /* Locale dir */ #undef VAGALUME_LOCALE_DIR /* Version number of package */ #undef VERSION vagalume-0.8.6/ltmain.sh0000644000000000000000000105202612233553541012046 00000000000000 # libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.3 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.2 Debian-2.4.2-1.3" TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # 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 else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # 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 else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 vagalume-0.8.6/data/0000755000000000000000000000000012233553555011216 500000000000000vagalume-0.8.6/data/vagalume-rfs.sh.in0000644000000000000000000000016612233552617014471 00000000000000#!/bin/sh # Used in Maemo when clearing the device and restoring settings rm -rf @VAGALUME_CONF_FULLPATH@ return 0 vagalume-0.8.6/data/icons/0000755000000000000000000000000012233552617012327 500000000000000vagalume-0.8.6/data/icons/26x26/0000755000000000000000000000000012233552617013116 500000000000000vagalume-0.8.6/data/icons/26x26/vagalume.png0000644000000000000000000000235112233552617015346 00000000000000PNG  IHDRJLbKGDtIME 'wtIDATHKlTUs/3ǔ hFP .qcL4Ѹr1!.,Q (CZ (@igN3{Shmou{ss*cVI#P,ƘL:9t5݋s"D|;ruP +PPkXY:a[]Z<.vy(q*c3rOU"<ӭ\UH+"@g9d k+¸aP)UUhd jsڊ`D@h)yhyl&?>$'1KVeEYK hiiK2ҕemm3k-fer1 UU1he%!cXBtJZbP7g׏[x9%2ւ1NI"ɧF ~<ȌSd֢%?s|m<80F0f<; 3H8'Z+q`yk\^.+ńPPD+޲E$s9B&#@F)z2lǷRoZ/!3~ ,MlgXC~aj `EpN6mn$&O(<|'sDg `ÐZ6s>~0;kku/ `&ݿiRh8l$A0:~+m<659on"+`uG""R4"D1N%Bz`ʤZM99" T4-R$D`Z &Q+U* 5ec&pOevVbcCzDӯ,҃D$Tʵ"\C+6OihjHhCuFiDj1CJ1"b+tK@ggj3c#x3SDG}8h)䋤a{gBѠRjSK }Ћ%#=앐<~(PHp|tzQFP5YY^eTa JQSP Ё;&5K0Ga y@)M?UE~c%͢="cð={G# (tQ82tE[6jA*@,L榩DņX|x"h:kV_ ]eT"7V"2P0Auz8i$./](0:2~×EW^|Dk qL1$E[[ n" i"70pV.\ 1qD>(!97DP&"5j2G@SW^1_җZ-1t!6 Zezqox$q"˗ 1DHZKR0{. k k22RV \srSAyk8qL2ЎC0>Fmi3{)&Fi^)kES)B v;&[L(A1^.D)}h(MMk@|dE0ט{~A{V ^ߠ _ThZ5 $nfst Dhu+EE[dw]-Gw0B8W֩.,űQfN"hJQӊ֝K{x5Lll%|] aCk*ڡFxЍM:j}'O?8.;!&Fu1a!O3i-ZB8"g-ycȚ4`FoʡF֮P4? }l7[45EYZ($<~G {{>n402uj\k(̵M Dv{BLR&>̕}ZS;C"73r]d,ѩ02Iid!_QY^e<% V+JZh4auy=|1~RoiͶPКR(kςH.K<3M|iQb/#S=V\֬P|ch)Ex( Q,~ݳ䇆W?3Ҍ ێ8dO^p@? 261u݌NNY^ a3݅k \i_jĥ&4K$#($ {Jgc 'ÏLx+@]Awd.{#(kAIi u^Kˬ..Њ-o- }}YPp\~ ̟yr P<:44^~AtXl KpyxPs]JGqhtՈ`ӃD^'$b-=.W2tD}:s C$ Qo3vtǐN۷rwݽ;}$!;i80­xZADwmv¦}8XNÀ74Nc91߯WO}hsg[!}R$'&xxQ /ky?>LPG??9OR7y7ſhTNCFIENDB`vagalume-0.8.6/data/icons/vagalume.svg0000644000000000000000000004526412233552617014604 00000000000000 image/svg+xml vagalume-0.8.6/data/icons/vagalume.xpm0000644000000000000000000000735512233552617014610 00000000000000/* XPM */ static char *vagalume[] = { /* columns rows colors chars-per-pixel */ "26 26 141 2", " c #2F3335", ". c #303335", "X c #393234", "o c #761C1D", "O c #791F1F", "+ c #6F1F20", "@ c #721F20", "# c #5B2F31", "$ c #473032", "% c #4B3032", "& c #503C3D", "* c #642324", "= c #6C2325", "- c #672729", "; c #6B2628", ": c #722425", "> c #782224", ", c #742729", "< c #722E2F", "1 c #7F2C2C", "2 c #602E30", "3 c #3D3F40", "4 c #573F40", "5 c #7C4B4B", "6 c #787C79", "7 c #8E1214", "8 c #851C1D", "9 c #8E1919", "0 c #911415", "q c #9B1717", "w c #931B1C", "e c #9A1E1F", "r c #AB0505", "t c #AD0B0B", "y c #B00707", "u c #B40A0A", "i c #BB0D0D", "p c #AE1213", "a c #A51718", "s c #A21C1D", "d c #AB1B1B", "f c #B51212", "g c #BD1313", "h c #B41B1A", "j c #BB1A1B", "k c #802122", "l c #8B2121", "z c #842A2B", "x c #8C292A", "c c #912021", "v c #9C2425", "b c #9F2929", "n c #8A2F31", "m c #9E2F30", "M c #8B3334", "N c #9D3433", "B c #A42C2B", "V c #AB2E2D", "C c firebrick", "Z c #B12827", "A c #BB2728", "S c #B22B2A", "D c #BD2C2B", "F c #AB302F", "G c #AD3130", "H c #B43433", "J c #BC3533", "K c #BB3837", "L c #BE3A39", "P c #C41313", "I c #CB1616", "U c #C41919", "Y c #CB1A1A", "T c #D31A1A", "R c #DA1D1D", "E c #C52424", "W c #CB2424", "Q c #C22C2E", "! c #CC2B2B", "~ c #D02222", "^ c #DD2121", "/ c #DD2C2C", "( c #C42E30", ") c #C63032", "_ c #C33D3C", "` c #CC3F3F", "' c #E42323", "] c #E62C2C", "[ c #EA2A2A", "{ c #B5403F", "} c #C8403F", "| c #8F5857", " . c #895E5C", ".. c #A74E4C", "X. c #B24543", "o. c #BE4647", "O. c #BC4E4C", "+. c #AD514F", "@. c #AF5654", "#. c #B25553", "$. c #89605E", "%. c #A6605E", "&. c #927A77", "*. c #A06360", "=. c #A96D6B", "-. c #B86965", ";. c #AF726E", ":. c #BE716E", ">. c #A97571", ",. c #B97672", "<. c #B47B76", "1. c #B37D7A", "2. c #C44646", "3. c #CC4342", "4. c #D34646", "5. c #E84544", "6. c #C07672", "7. c #AF837E", "8. c #B5827E", "9. c #9E8782", "0. c #90948F", "q. c #A78480", "w. c #B88A86", "e. c #A3918C", "r. c #AE908C", "t. c #AB9994", "y. c #B59F9A", "u. c #B89F98", "i. c #ACACA6", "p. c #ABAEA8", "a. c #B1A6A0", "s. c #BAA6A0", "d. c #BAADA7", "f. c #B5AEA8", "g. c #BAAEA8", "h. c #B7B4AD", "j. c #B9B2AB", "k. c #B9B7B0", "l. c #B7B8B1", "z. c #BABDB6", "x. c None", /* pixels */ "x.) 3.3.2.o.o.2.3.4.4.4.4.4.4.4.4.4.4.4.4.4.4.4.) x.", "Q 5./ Q B M n m D / [ [ [ [ [ [ [ [ [ [ [ [ [ [ 5.( ", "3.] E x # $ $ # z A ^ ' ' ' ' ' ' ' ' ' ' ' ' ' ] ` ", "3./ B 2 X . X # b ~ ' ' ' ' ' ' ' ' ' ' ' ' ' ' 3.", "3.W x % 3 6 0.6 & z E ^ ' ' ' ' ' ' ' ' ' ' ' ' ' 3.", "} E x 4 p.z.z.z.i.M E ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ } ", "_ W v &.z.z.z.z.z.>.Y R R R R R R R R R R R R R ^ _ ", "_ ~ j r.z.z.z.z.z.w.T R R R R R R R R R R R R R R _ ", "_ T Y ,.z.z.z.z.z.:.T T T T T T T T T T T T T T R _ ", "_ T T ! d.z.z.z.f.D T T T T T T T T T T T T T T T _ ", "L T T T ! 6.y.z.| d Y T T T T T T Y Y U U Y Y T T L ", "K Y I I I I S z.9.c j I I I I I I U d e c s h U Y K ", "K Y I I I I g r.l.1 d P I I I I U s k ; ; , l d U K ", "K U P P P P P +.z.$.w g P P P P d k ; : > : : w j K ", "H U P P P P P h h.t.> a g P P g w = , %.1.=.M w j H ", "H P P P P P P g ;.z.5 8 p g P p 8 ; t.z.z.z.k.@.g H ", "H g i i i i i i C l.e.= w p f q : .z.-.g J u.z.O.H ", "H g i i i i i i i <.z.5 = 8 9 O * t.j.f i i j s.g.H ", "G i i i i i i i i h j.a.- * * * < z.<.i i i i K j.G ", "F i u u u u u u u u #.z.q.@ + o *.z.{ u u u u u w.F ", "V u u u u u u u u u u 8.z.7.N ..j.u.u u u u u u { V ", "V u y y y y y y y y y u <.z.z.z.d.S y y y y y y u V ", "B t r r r r r r r r r r r V #.X.t r r r r r r r t B ", "B t r r r r r r r r r r r r r r r r r r r r r r t B ", "0 Z t r r r r r r r r r r r r r r r r r r r r t Z 0 ", "x.7 v b b b b b b b b b b b b b b b b b b b b v 7 x." }; vagalume-0.8.6/data/icons/scalable/0000755000000000000000000000000012233552617014075 500000000000000vagalume-0.8.6/data/icons/scalable/vagalume.png0000644000000000000000000000636612233552617016337 00000000000000PNG  IHDR@@iqsRGBbKGD pHYs  tIME 3 vIDATxk]U{syI!m^|ᑪB~( $*@@<>Q>P!JHUQA&i4nK(MBZqlaq{ayx칓br>kk=a{W6|OF~ SV{q0ZNJW_}m_}lx\H'gӆ!Jss N C{GЋ2 `7MޘR @ʉW/'z}D>upd5?EH)"0vH "8J.Aͣb0Ν43B+S|s\r@RԔR,Y YnG A+Skz]RIH` {5P}JO(4)e鱖N $!N"JvNqhf2TPG%_{4^ZV\Ckt1}J1 "b.u7M\Nps~``h/຤!Y,.ќeuJJl.G, ij([yÔ"ΤP((^!LZC! cz\[vqfwE j4V[-aQeǗ>f1t1&\k6ӏ[زjy:znsӧ;zm|x:R"$%)F6Wi kbf\ܭsx'(#Xv3 ɯ}l"qd`xf&qF ~1!VBCx2Xd}uaRK4UimVv"n7)/ 0i6K+eJ宻ɥXGSӚu+EIA3"""4RԔ%r_sY] T¹Dev( ( 2y GRVTp"ZxZ*jguYvhKDx{@-.Yx n{gx/Sbuǐ 3(ŤR\O]Zol51&:H֒3IJZ%%3g`'ZIZSP J! ht`d8郱zS,Q]\TbM/BiYm^@0@\"ϥ/}jSC"ogHo)#a'CZp3橕ʴ-}Zoހ X9?C>wij&UYsZT e훝ONv5:Pb`|\lxof0zm<ǟԿ>p4#O8w8tϽt:扳m:J,˳8DUץzz5"vvb{! |toyӬ?×apk7h!\ZXzE(gl;B.G8\D5ϣ8J!Ƣ_ƐZBX^A>ågʙўS ڛ^A`Oq(x ʤix+˲Rr]K ۇ-?Xˉ|5ٜݍsm6nϜegUw|ZT;"J&H0^ZSqqZB'˦$|>jCH*E6Wqf/IC*6fڍV̙י?lvMDcǸ&E@qCC:ߨ.=wF!83- deYӄW~[ Tרf2\0?LjLDi*:%11@b11ƿ"raH2^]RZuq{lw7 K fo|룿H8UdRI<ݭ( M5ߐbǟ w耶\U`MR[^O8v}Ly'=\\S0<9IR>gkBq97}lm+w[rkTyfߣb࡫7%ߤ 8&$DTO{&\4 5^_#0#܂XKm>tD5"8^a;H a!Zē~ljkAA;[ּ@jkEHv+q ! WVp#,ފ I" wfh׾OHs8ּ^*0Gsvx}}K8֜6ʓa{=BYchHIENDB`vagalume-0.8.6/data/vagalume.desktop.maemo0000644000000000000000000000034412233552617015426 00000000000000X-HildonDesk-ShowInToolbar=true X-Osso-Service=com.igalia.vagalume X-Osso-Type=application/x-executable X-Osso-URI-Actions=lastfm; [X-Osso-URI-Action Handler lastfm] Method=PlayUrl Name=uri_link_play TranslationDomain=osso-uri vagalume-0.8.6/data/vagalume.desktop.moblin0000644000000000000000000000003012233552617015600 00000000000000OnlyShowIn=GNOME;Mobile vagalume-0.8.6/data/cover/0000755000000000000000000000000012233552617012332 500000000000000vagalume-0.8.6/data/cover/800x480/0000755000000000000000000000000012233552617013265 500000000000000vagalume-0.8.6/data/cover/800x480/cover.png0000644000000000000000000011236412233552617015040 00000000000000PNG  IHDRL-bKGDtIME 7 IDATxu&=FdPHXbdjFD8#1vўwcey-ew27 V2O.Uu{ $!YYYYYIz0%Zyw]!!Y* _@vHz( !tHTC`!݇tC:yHt!0C:DŽR t@zO%teLiB% $E( *U{Zk@^EQEc:b:`b?׏C`ާDDhd 4[--Z-4-4$I}Σ<1100O!t$AFAA9h`ETywlu$UΗ)4Bpc4a0c0`8`:CL:Hv X\XBݞ9׋X=lXO6666ld~^^wQR KX\\"Ҵ(R[84M4 mY$IBH(̌t(01L0+$!BQ!Pu1tH˔$ ťF 54,bccKKKX^^BgNV iyѷ\c_̌dAnkAmlooc< KcPb Tf:X,bq GC`!HC`""tcyi2Zf,˰Ǐc}}XXX@eX,0|M` m;8zhGkx]ܺu _nk[@ퟹjj;no^wPܝA|)MSamu F-pQ8qǎ ,X J 0@擨-/,[V(أAkh7n୷›oȉ iwp8ݽlc8>t&6֏`ey@VWWqY=wkkkh43@5/VXY!VV-ywYL@gϞٳgϢշꫯի( UF(ÈkX_@ǭ[7mDžhqaGx ?ϟ2D:p% ^y4s`fx(eJ)&$Ik=+ee++x1qU=\I.tYx<ƭ7|wA ;zNg߼f=.\Ug!E%(Sc-eQT+5Ơ+BUW*Y:/iz> 1^{5nܸ(h68yb G͛7sc C`u: 8z#"lnnƩS0SI*s9iK \=&抢upD mV4MBeNN?0.]۷oW^+tQo0bdiOܸycAyj4O_Ǐ~#\~H uQ Ξ9^߹T?tlfF'x/^k4Aa8 #YK@etp:)}5e33R%UfCv\p<^Jj, KxEܺ}7n^ȮDYĉ-,-.̓)q\t V+V]is!`UJA .*j^c I8dXWB p$3g7x?q-AD8q+v*z^myf:%":6IDtx m9WQv+:\heLP^Y,ju3rMBkZ)$qFj @x>} PDhP8svvwk}'Okm=y$>ObuuTY.>TW8ᬁg]6\\,Y~v{Iu9ث{ F2'>s'? ~( 1smu z*2Nӟ4N:U!y] @3"D[^Ee]蒪ܞYYDˆ״֘L&@u@3}sΕ.\n;FURa]^.)4-7W\(2̟t;Ne,-sШ_D4L~07al*NV {frGiܙXZ\^KS<|rEd6><$hHU V5xXm0t@ ӂ+L.whI%ryj?zNID8qogf8w<:wff8wZ"/ٳ`8ʕ+zsTV9\5p'2 +i%gq{(6O|-akSI%F׿G~ sϞ9W;YOf#kY#lll_"֢tyn[o9 P| N9O@%n9Ɗ oedsͧt­m'Պ!'Ed:JܳrN"Sg<I9`6 ;{6֙3guk׮a{{{@uʐޤ:\]eM!ZP.]E h7Ү"cw,s,8q9 iNHb-sB8)O_[vi$y2"l<Օ5܏v%K k!lAIz3s5=l[m٥$bVWɓ'/;Cf9(}SkH3M3=Y$˗/㩧wyr,hYT\NfNSO'Yp޼yo߮ UR8+ϬBZkLY گ'!K3X'ڽ50R8s\%`8c=%;.xm`+/QY,wDY"PV㾧ȯ2k)pK̟2WtM]77ӽ-0j%ҥKxꩧj;#pXx8p:+6b)'N]f91THB ;#';{=A۫e?k"gOrWsJW%K>nЇk8q~<3'8zu 3Xk<67qU[MC|-0vB,G/}٧90HgS)oPfPWXtιu _=@jncw>tl8y||3nnnܸ!%;G4Y$,7/( fjVe q b )3,zkW#ҶfGP," {[k0$3t>rPr45GCLZWm<,ۭ[tՁ5@$RgF DRTZ?r}gڝ}ᶶ1Vߴ`6A' Ο?ӧO67; J);Z}{ ^ٖA^y6L蕒2p++ :ʆ⒑ဓ@ ro+`5E f8qk A #3 0"ddSHܖ9~Z:%Ixq^xM}D=ydh%*.] ~~y熖f.`Fp@\2\NĪ]ȷ+%˕OAـDP!d9%h DG(T0xHߔ =21x}ܩ'yV઎?i10+,.. gT^9+MRl ~#VXat1w|ɣy{<8.sYΰQ\8pC5{^.{F 1"/ (qưb"(e$YRIbv ۜfY@e%*aT)]O'a e GD__cwޝpL"$82Yxo8P3] ngݬngf:Mh :^-L{ 4D0z@8{M<̦F!M,/-{I, 8Tu)xfǒv7ԴAL}2rY<<$9 hbey;۵):Ƒ |衇V땳KZ}k;uW7F/j1O= GCL‚UƑ=+AO @s (40OO5!rVǀi])B J9[zʲp$ 7L& }[$"<3zY>9zk~L[~򓟌~h434a!(EO FBP( "@ AXb j`86i)U F|#u= H&]!86 .4ƣ1{]#輨:@rIx IDAT_"<\3TңtpX{,X}ll'vP tVWW+``$-*F&!.Yv,j8]L=ғbggBcgD_ jxQF+QQ 1YD $\ Ț@DNyd \9P Eх=P{?g:'ىe4a4.X)w6iֵzzS \Rz7[z?.SaH J {km\V`*pJ{b<G#"p{2KV&;QY}ckmb$zԊic0b8VJ%?2G //*^GN"$}։N‘#f%AseebzA_@P w.ӭ0Q$ݏ]O2Ci:ͱxY*1S3b/q $BZ%-?coquFP-Ma]b`NZu駟#-bH㬇X]!,ӣDe);!t]t{=3(˧^Yql\Y&ʺv%Pdި0cW-APe +^AEra+ ^T9۹ E E&(_F |'T5Ϟ=`aa; Ny mnn(e@l<6Y_(PcH yc {+4zKowv0mbǜ$V 紃Fg'pKcubqkA{h6aAF?t2& N@$jg[30Lvϑ>mWTKu\3I\~ ݢY-kr2fz5$fn"p9|*QD Bwt>SC]10k&` &E?R`yx EJ1FD1H#}Յ[w '('Nݢ0k Ol':9ok^xѹfk~ LrPhݎuF<.YΨ%chrdl8#y+,gL1=XJuifu{ c \vv_k5j DY>;ߐ=n:ax k6#NFsѹ"<7K>'Bɂòm뚒!p8Dۋ3|jf&AHFE4M\sey2DX,#NJ/@ 2anԵ2Њx0kX ;x-8`}Ǵ%EƱR)   X ă>KP.n"Z !F2H ft4xm5( uuk&~ܯʻg? `VO )t; B174Ԉ$K8g=_S)  #$ۛű`;BdPT_mA[589^DT9KtQD}B0QBE1CtmK*|皼m3x!yc}ݨgbZ\X|s`fiV}IĢMdO^Ytxl>_YϙT_^tCQov: ; 2@$kn'U\!9 ~Dɩ6HyYk+S:nF".KZkm`8B>ͣK&m `8^  'H~ցӴjEt♋w+s`./:p!Y] ^:a0sG`֘10ZM`1` \.*C( gq|0M?F!`U,mD}bL+je*-O$:/;^ؿH;v;er)㧆DR咲= twAftx,*'Yu*.y%vF2r R^p`m# 0}aFpIAurGe+Ed%`!94"2ܟy8 RuI離j8AyBqAa]=t{=:>:Mv [}&8Kitl6]h3;λg鶯4j3gf֬wfv,C A~º}r߁؉^roau+cQO^%= f89GR%-/1 e]VPJgBN,IQ@ 0b/1  h; mylhhÝǢn/fߧ5pvp< ;a 4tL=^$!gooߪYtOXc>F~ׁӥ; \V ؍2 EKd# zPʬ,quH h8xbOf@a)E-X+ A,Ԑylz&!ȴ[ ' F"%`Mkpm I0KY&`6083O h۞˲ِ>L0K 8&ҾO[F`G@"rzL !8؃>pqKC(Rf\Z\c`SQva!>T)3ghQ^_$3DXTeɖ@rC.QU䬨lO_ !RdY$Kmf(,GHyb:ݓ'IŅEtZm4&$u,'IyFgg3i%o)3\U"脲^i Q C GhЏfEMvw{ammkX_[Ga53(In46T){;>`CN:h(l DG/P! wd w9{]Ĝw–-}Tt0lʾb2V"u?W:g蕑h8-T\kk謡ޝK)[f'c/VDck#}C:=Pf#D0ڎ#ܾ餀>ztGr)WkO<^nIl"vRȁ46tp{{{{:hGb}RG.mbt AHבC# `56ش,e,f Wn;}5W~ށy( 9pR_zȲmb" i{N4MƉiP[{1@ s8pU#P bSʑp2 ^f7rB}̚? ?cm rc!uP ^2D >~]uJ),,,beyKF\MFPjn(4x !)onL±B`8 5a<`ow#h!a4SidFaEzN> 9)bI:igzHb cDQaO;kǎë/c|3 0['֡gkbψ[h2IQU1N/c$Arl-^C|bɉJfÔLB @Ftx샓ƭw^v!Il:$H+Rܸy+r\@ $INlv8y>8('n( -4c8ePı193GCf28 q)dIѣxWSZ?Ab ,8Іʶ ѽ Ϥrf}Q`N˶47) . I!M$ FFom@ :P..-bmco^}AY(p;x r¥rS ΰo,kQ{8stN42ožf3bƚY=z=%{Hg+\0@'u!4w'.+3a`1 we2\?ILA`ƭ۷ldBw8koS0x/s@z'e?1kW@8gDHëWmoLFA0Lz & 7K-pFt9`( 2{p>NY+ 8$ 氎rd@;M:00*Qh_YtQम21{)pFq%}Q|b!^D<73m%DZ1n6WzD)|;,㏹B37K xӟ§N:$ɂ-U {uܺyR3+o`:H3spp \:vwp(踣 r)?Ӂ6%!r3qY5hdx AfX sTvayy2̪rI"+q̺uIuɸLq>Q#\XLJ C J{ta7/njx7ugkAYGv/3tXY[É4 歛v0bzG LGA{Kt`³8Ֆ66Y &P*K'QJKu)w-aޅEys@wu (  +hX='4[1AkeO2F \(V&V+h&l~'R&@ R)H`VHTD5`WSNLs#&򗿀o}XX\ __L =y,Gtk;Mʯ|k@.{{(vicg/!:/ )}:J1Xu @]@r\*8~uy{BE+y1,nIekmzgkik=CYNHԞ!nAJHFP*ĥ%BE)E b:0|O Ku|_B43ſ 0BJ)|Cs9-,,g[ܸy3)ҽ]{=cdԂvm^B9TмBu#Kwo8]{h>8kRxкtfnb@%`@U`&5t:dx?|7#VE^r`:n)l{b(㞥HK s@xր;f@$D c"J$ʜ'IbCv?Q)T # ,!o޼xu+O;Ν=cO<~-u^~XX\ƥ/7qyG +Ha{i:){d8 cJ){Ԃ4v& 4pƒSxXE]P$Ƣ-"K:aY 郲i]5 V#]7YNr: 9E0Jɘـ!;ȣllY&xY1\T @lz"!QkLQ`O F=&uB_P IDATx+}=RJ7~Wߺ~PL'F:&bhtF,9V΁+vByTjGyuߥBf; ]27ov,sD"cFEm p&c<2uHn٦@}0aDjkcDVlw觖KŠˊ\lWWpt+!-I="&$SP)!TK i#A;If‰f #<ݭ'Gޟ۸3O;?1ݽmCRpn2CH~{"X-K,!E.݀+? SK\1 uV3ɝ-R.-F0/J n7(*kTTM;#bf@blQӜRR@ljҲԄh,l(d 2E#M$dj^wvhЅϽ.'G@PhdF#.dEZjB1A<*$*K"^NDZw7V'u\84YV5-*p({x]3^d;=2zZHfmIzD.36L=~vVV2"S̜`Ðoޕ& Pf;ppn͌^xn;h;ih 7>pȇUYp׸4P`%쒃tN`vR$"׍`?^Ǵ| H,D4G$OӌL:5؀4F~oY(vA+PwN>=fP(lsJ6ug NN5/1ػBzgab+nir9]4X,;/wcK=>oy= 󮊲e) tnsVҝ^{դ -^)MOʄ{qOYb6 rEFT-=}Drcd @)onN$s}`=Ν;3=ʸNICX>C!a yͼx] `re2A k U7$'|1ˍUYcݘ*Ӏ;df5/U\d;.mzEKGgۑ ʻ@\@] 8ee0ؾ}屽q$X,磄 `4`@8WXgf.x&㹶!-tWYvW2 dhHJAd>)tP;#~V! DiD[fgl C`&O:CuYvU 1imeI C&%\m@Y|G}YMbL$Y I*2 ?)&. uwzynNw@yaOi&\! !*@70j(ZӕR]) Cy$^pfPDhS4J 2y>Po J*DzNn2sKC"Jzh ;c{ kզ]R'K(E0̣1fx<{٤FtY$=P%"( o8)BŒB[Z=E᭲$̃V`5^tj> ˡe GJ[ NT aiqifwb@{{]sK8gB4F%O0\ھ_pb>u79 Fz@9;c[f93Ea{f*2H8dZDlKl19 ɖfrɀBզ?.K:1Tj3I'jběǙ}6fs5.k.]OMz3PpX#M̎啨3p;.\xwQ< b"QdYf3%vNa)ӿduLRi $1]RoޓQIe1I_ij~?69"aeeIbf+CX0@*Gc\YI&H-YbM - 㒆S82ԆX!eQ.2]Y~P,tYyl}".Y}ln+;Ԭ͙bD^pU j-f@jЬQt:1" MPdtG"x/Q?ğ? s$~opf_()~|Ol5o~/}%4چb- Q;GLVQxd~6gbk搓8fy0ʖs$mݬ52. 6o>M#l>"Bu?ǼATDےs|wVu_тz{ṱRfgfjpLFD3F%V;f f|<'㞚5;H{Fm;~'oKo";A13?Dwϟߘ(ko]ſc ockh63$INvz]q2(G/5 #X0\w1dn ϮU:T>xgCkJPEĂ06` U*9lᏰb e&!YZCJ|E^ K&eͽbe.,hfyD2:)kȧHB^ r+?zԐ"o ?y! mϰJ?O~iׇ'On IF͆ 4h``u%#G!nD88 fYGwJoDuYiW 2b rdAjqeIY`c/< F6fMHwcyem7J"iU_yr\8Ҍ [2GW}X. s*: 1 Aʊt #MG&BO5f?Yӻ1M_o"sZZ{@Zz{f ɣhwZH &q;mG#\-ȴឪ!d$ 6} jn';uW/4QHih6dfD ~g =0ﺯt:ku^wAĜlIٮe䈻T dDo;[&7ݺ:AU"7,nw:W_} N&Hqd(ܨi{%q ~724@MIe˞_f~]Ϯ}_ώ5=caEY-o xtWUuUeƝ7P$@Ί̌/n8Y<xŗpgpxxwWƍm"~ oom( {y)+t,/t+z1`z 18jUIt_&Oa|! h` 1ޖ, Ҧ+Qк^ E Z[$̪찷b-w6g IzUswp/irt؝0 /bmm FsϜ;vqtdƟl`ԋ@ؽu {wzoMl߸,onBDʹoN`eyk-Iyp!+*DEf9"ָZ鋰gLu:>l~'IFdZYS&g7!*6TCUoަt}Ϛ>:ͫ[Y52}oc2ȞVx1 f,^y6 m0h;F׵Yt6C]v;X[;S8oȠdeeW<8Ϟ=~/*??_t=<  -B VWWӎe$mxRZ>K}:u*ǽpܳxQhFX/,o/|E,/-1˿@;s`maQ%pJK/A` +XҾ )j8"w7@ّ.,`K4R܁NYHp_'yp*Օ"Xr ζh[jP0η"h8gr=Kw`.ͭcP} waߛ@hŻRA 3-Mc񳏣,J5 3]^|En3N ^z ?ձ p*"@] mX}[lO}Nqw)*[5fYc#-*݄RD)Fb9a|Ⱦ%[s኱&X|t'3m:3ntJesmcto cei)/VʲͯDdX, +/2Za2Bu"ӈ}Pj(2t8IuBFY%pG54H D |qQ'^οZzie1s SGZ`2}H GG^pMI٠: n&dY_` _SIEF϶^Ă@;zcTue/tz=,h◴V=rl2Ae'xe)_l\,boG1xc4aofK+X[;Օ49=8ʓea(( N$н]ԕ'BH:!Rʁg EQ J Zl[<Ami>* UvUr{@mwsBh,bcb]<`9֕L@^,{yVsaݼ|!=,`"h\K0)biiN{l;)z^øo~8K/굫u B{0C }Ywol^EY8s:meu )$R>VWVt Ef޾#Y ?ׄS_B:x0XKRF A$1˄FJu$֌ $Ȉ,~x5eJVe4qp`y4nqEAt5J Vze[R)=pc=jC';o:>Zs'87hIdGo(sNdeQsٳvm .^p]@@'0 *X^`yӧ{kB]u-ˬ`yuP%59*'ƈۨ*M- F^qwԍd E%5I˲fgzgidH0Fƴ{+/596Xmlg&H>kP0KK˒ 666L&fp?-laS?uhtVbY{vl0(Kt=+F#ULDz}s=y9{A/"~i\ٸb8:Wm\(Ev:J BjFQtX][ƩeNG 5! c vXU!SP2E}/bKw'$ψU H s=XLs[ fTQ7DraxI8vqㆼӘSV Csh{wE zgǦhk:RU⯉Dxde~Gv6>rSי=O[7ɨ`(/!|)y1 G 8`|xtt 8@PB t=,uKPS c1HkF}h3ر4{N{o,R. M,FҶD590=`&$C 9p^<8VLF IDAT)!4adիWW_r/+ !`X__oh^E<,zgQϒ^l5b"z.͌䆢(Pv:fHF$ʹr77'7,p.3jx4FAU`lluc`VMua:;j'!=tz%nub 1u{tB%fn2?X}DI3HF/PgP޿G ǔ 39#|kq9'4q6 @P`9Q׵ j3?C|mQU~,P\ 6'Z6ۧ$juxE#3cAi3zݮo(~?xXxk3NQfz%bI̅-;v:`Z$˶I jP3.Ka2qp8<9JXl⬈@ӏ(RӶ r"eLI5Ms u(O -m K6ƞA(Tk׮%]̝V-* ̌!N%=skk+ъ`r9y^G (xu܋CؾIG=wJuO"G!`6s/cLBmd#M^E2E (8jT !GC;eKYNUgNSмTl{h6 %"ݶbeksJj)(".C(˥"q8QR}2zi[1YnXPNpQE2c:/EI4NzUU.X.%ۢ(箴$-*-1Z MܨsFIl,fd RGQ`6H!vVT'sL/2d"h?#32|=Kl|Vf]&&k(vU@(Q:0Q M#,,|'ValE^t/5aQduSF I=c9w~@v\#ϖwMLY 4޾}z8|n4xweL+7( e1nm`:ws= 4w19:Jqѵr&&gPi 16RRrQ [Q+*]u%p^mȡ|lU$ @EY(` jp,\ReISiecm/^L2]sf]$F.͹27jɻ @93$㘬=ScXpShѯNh3sq3'Trg[?ܴ2zLtE(C~+R,)3t?N.\d"-#b 1o@x,7)ׂk})o2N)0d]׿ |N{9WUp\J ,BXXG݋8] tv19:NW)dإ͒Y0cTB0(˃!U'fʞfwʎfq7"2$RZUHu8mi#vNj)1YzvbH?ҥK)ZPk{ (e 3+Wٕ;JIemsPCKtEA//(TF?}4Ȃ$B!̅@a.&IR,z>:RuN"w+S;qvEMNn?|+ ` @j}:9Z;^U5>pb53n§)0؋i=݃>˝Eñ~.gnn/HpKcԾk6KNc B V e %3G(`i0{{`HszĐBx9W"~P ",78 !l#UᅟֵNIo[[[)OPpxxi*++0vSfZS80Uy@NLw]Hɮ{}/ htγϱn @u lO:gR&&I#₁NYbye ݮ&e 7sv?0Z2'}6^$& Gw7v mn]X{^mމO}>:}nsf7o k֕̚C_!#u۱gd?8,[!~UM1!gsS?-2! ( qk+$0$ VPIbT Ie]Ǭc}>CzfErEƜtSs ,ϖeG'kWa@ ]>%^ Lu[RY(Nz-7  j##ş;S,/S0X  Hev9f CyFȬukFfDUk4$h$PpI}8_YI:ie acKi!);7qc!`6}666oCֱ;_&/BU- ڹi`GaȘM NQ=+TYһ$~Mjb(BQ҃t[[*gSY3s!d˞=tăBHV`grגɬ)14L08 nI 󻝲Q!Q>w$ Yhcc?´ r;?,ǻ7\2|l3z{4s63ʢDG`y+++X]KK,/aeidˮ\0R.`6[D TH+$g= SKZ$PIOu_䡿%9t+lYhѿN0xhȸpn(uW8-CL@X6ét[nwށW-s'Ϝ1M w'NmXgw VY5[l9NTmh(Kll7K?]e",r`` j!Ke[ fdɓ'|)탒TiDcwr!%`~kׯ.0c~CdŻg?p8 NZ<eS:m@&wmjh!uͨf%ҧTϯN%Rq?,]m)YsS`gj"lU+* e+2S-Z <3{jXa[x'pw;ْw}WNF{ϰ~& Km :Nt߯yGRE Ѿh_Hl1KND)OR MC?c [4 v]) G5H9DަȘ IPu"HhN ~giGKfݍMܺ%ntcڱ4&3cdcdX__3gAmXӗLȋ߮.Ak:am"gm0U޳dP6-yԽb⭿/k&s}b| ޹g_:`-7n~[l}30-h3f+Ÿ QB Až~KrFl)u S$ 餹 du:HI>:ԇ,J70;DD+WT%`Lv,J.cL !Wx(iYW$`}29JQJ`531IF#'?dfHt`ueI'1K猠u 1%f@ʞS&ӊIiKU&QUwsz*БvIA ԦLAYi{eI{ζϗk׮5W;4A@LR'MIC #^JRp{8'7Rngz PG;wIH`kJ+ |9s{D@ԶzgT5AjfJB&Vɬ-nM1 5O.DDrZ (܍%ؗ1{=] {||yh H2ݽBkKp~z r H5<' S6|{ǜ? և`듂xnx$%Xe;uGɝ@e6h IAƀ@.&495ݢF@(k{LREUVR}QU@?H.l7ǗNUj?AZ˙K;Wk])w=zm)ݎɍO3T}ч3ȩe#?KP 4aHK,0$ L/lK;ʀEΤ]/u(Cmvʲ,2'2K*۷4N"}a<1bsK2 8A䗿|S=&@Tr L4}r-bOiQH 7tÙIY e,"fQ5S7%5g]e";'{oN_)>P XwvvpAӅ4CGlD۵nlKAdVʯ~3lw68S *H !"f:tc?3jDY}puH3e 0b^ِ91'ƶ 3lG1B1ݧ/̲gG3RUz- Ѓ$׮ [?7SǦ+ɡ;x1ɗOd͂/_qbsI9.it4lf4X)i pۊ ߎ} H4N9mNM-XCIۙm2drscY7~AZ^yek3m{#L@l\%#LA~ X^s3acM c jG ﭽ iލcH ϼ2QPhp⁲65Cм7(lLʶX8}(=;}Ԏzv~]ԥf(U}=Ij9Jp2Y7 %mHɘ~ccKI_) MlJ>߶U8rqr %gۍ?[@iAiZ#[ iAzpql [o:fLl @@sm$7d{왻.9=5櫦óOǴ~o>;mx8oVF@7/-?Hk楍7LzfIDAT`?7=Bm8wϜh]³;*k3igI]3f=A٩ 5 PΗHh`KR fEpkS=g7PM30*YDg%_ xͷ4Aml^Zy`2/^Z'UoB}c vUz+ D"2 m@4{ߟ5[l$l߰}oFR{n9V+ag91zCOljrijeΎUt64^E+_`:f8Uӟ^CԜ9c:ryNCrLY.eL Nu cUϜ|AiFsl;&128Yy z7sJs+yy@K=ޟ nwl*kSjU\AsKϻ|a H zY5K3櫯Ǩ[J'ɊN2Ogɿg$ X7X53#%R214ʰMpgsz|s5|7(jMCn^ š1`հ= vvpɽu{.msZ6n+iiTPdK1N9uAb24BˍDSrF{MOD & ʌ- zցnLz˳{!U:ҹ ItlӞ2~[Nc!Fg6> PY%buŋ%Œ%r,tiGVZŋYh)3823+HDƝ>'/Ҧפ|b]d>l|!ӯDb*֗Eǚӧ e"l˩>'}U(3ȥn 52'}#Ο? 6":,bؼЉ|! {)fUטՖlW͍ 0|x[e tK64br)цVj~o2druqd!1Mt9 . >=,6'iU[Z E`J.`<㭷ƍ7DR@D +卋8 L@^if1b:4>oo7~,i~T/1Z%u9QZ>TnUU W\e`V6o;B#EXp89RFj'݀cO4&laK4P.n`5'śoP*%$g>$.;/40̀prJ`LfӴ8]m{Yw.. VӧIv̉wd,Ť}/"hDd E$ =icJXwZBo/&{ % 3~&?x^C,̌׶0LS=StP?:W_瞓Wc2]1pϾ+;hq֟fY !DF$"8`X)@ĆVYU6RN3^&CN `Ѥ\̀.KL촆J> ǍXfBNsB$R7G8gL_nݾKד!hVPEY~x8~A]Wl$‚c:>=Zɛ*K:9%j.1bc;(rZd*yGr#pNL._^T7u]fW],K}EYlo72 iؼH0/s=F]Gt._7\tg'x!Bz=6*nm&e?´v X;p.Rм%]lW?F n!3_ߐc%_Ah93g5+}1B!ܓ[8,zt >ƍ7LP JUUCIʗ1f3\vTbLgG,qk/$ؓ2ͳg$Ԉ9¶KOc\uuJtxWMf_lI;oQƮ $LbA3-rXhڴ^γ7@Lg%B@EGcI]_uJFxKYP_BƴcĵW1gϡ,J:.݇ΝSFr&~/))1ʜ' ,boE50PX;3#;6 HFq-tZ')ӴBicP~B 5 |) @^Vor$OQ)8L?gJw2SWEjafww<ʗVp3aeeUs"tP%߿xŗĩSk.z&I*.FlMDC3 #"B`o \(g;vMfP r%/b"Z L%E3Ɠ%dΕgR%@Q:1:67gˌ4MNgSlmm>{)_z`@UpyNSO>(PX[v"\p/^O?ۑqC*h޶*($k\Z0R>mSwNp7A _BW7zI*I[t}\Q39IXWqy;fPswworL-̌ۻppxg~VDL#*P]u7~{=|?@S PЁQG@J:ib`dVIMK D26`E4e!d nQ 5xλ >a-(U$.zڕLE*'lac2N3O? rlm ?SʷĊhZ'`+ BbלEbYʐwsot~N Ǫ/*xH1Eκr'!PB' vݎp{{}Q vpc#KWNyL?}g{!q5(F1~_5o zݮeH 3B:̨AH:@Ah,L/=%r1M0'X26$tHhm[`:yw2AYRmWdz"~ױcD?NK9J7-<8uJۚ#"(BJ#ko}!WV_T8P8 uDdKm :ID41։&^( e: F$t\'L1r]\ĊHOBzʳc< )co +.*'e<E,--ǟ VNQBpE\xKKַ^/SXZ.5P#8B1`j@`{OhRC(D BN A0ivrFh&\3W^ťK*k@Q_rߣF#\e=8VWNX) % G_~g?_& X]]IU-+je ݮyv_BM !U|mjg?ulWbkk ;;;xUi%"p7o`w H+'e8b8cX@(`ps&^y*>8^z%;w=)m3]QuR& 2PEಶs ].rLa2 #W6wpڵy0Fuà!n޺VNdWpc:Ng0z)@۸^zΝ }Y:@'SO?3gÙg%*8ڦ$o"[O}nzmIp=ܾ7ob<ɀ5ȔT(8X{ rUNyWoaeekְ;NEp=a,Rрj6֕+r a˲,v4ְU,/-cye^E`T= !U\ F1FC C (Q@Ը\GGc)-I9>#u@SXY^Gc@D~+ `bT)\ D1#&Gci2?dʩgy˫\`q%PgyL'qpxhx"~rϩ03Gc޹1,ailQ)Qt "uuv$]>řI>$H=@&@37$%ƘR+"MXݙGDU<"Sc-Dj& &GLN>`>e:`:``/#"t:.:.ʲDQ(B2h\̲Q>k{TUc10Ns6=PNft6c 8r/I9aG|)䝔````KXY:1ßp}IENDB`vagalume-0.8.6/data/cover/desktop/0000755000000000000000000000000012233552617014003 500000000000000vagalume-0.8.6/data/cover/desktop/cover.png0000644000000000000000000004005312233552617015551 00000000000000PNG  IHDRyV'bKGDtIME 69` IDATx$uqȬ:>@R4\.+5#Q&iffk65cZӚQk҈d:AR#@wwuwUWUVF7̨ }=>wh&3ןxni?kfekkLg)~>fvz5ǻ)xE{Wڌ1Ec Jk6(ZcچZ m*S?fvfNKP:,Wp6*&dBYC&Z@~AkLws9fffQJ t8]=cY!"d "QXawp`8d2xAαƘxP%۬XˬaE)zM4Ms_~ ̰r8|0='OV{#i_+63ZiD$~O|/PW9zO4ess/3 1;3ˑclnaccHkX Bo#zsSggg9w<(]nҩykƫ~k-H Pvd!3Zk15#h<ϝ:qϳƫoA44Zʡ(U]}@c!NGO'O|#GBBPV%UUQ%ufRkv@kP4uCS7($s,( w4'O䉓~~l1Zs Ɲunr! hY=|Cf3gg>áCU'€]J2LS8 tx夤*+7ԍ(EQ;wG}˗/};w`* \At#+ ;rl >C|3ayy9 ~xg4!VqR PʽsGhHDM82*c ?0gϞڵkL0Ewh)g 4D*hFAgJ@YȲ,ԚӧOo~W^y~U<?lnmާ}o#%nS't>OGU+"F#>eY޶zX מAq { Z]Gcc>NMӐe9BÓO>'> kSqc>2|GOĎ[YY_" ز,seY:U5DZoh.j5uMԴy-М>~Dn GН_*O<F,/-333k~x?}8~t!rΜyn "_򗙛s\ vvv`k@D4ZQVG  CGBpTM RZk|euu??C5GVba4C1 EBWU \z~?mꨲCsi'Ĥ{]|0e.Bé뚦i>}d%7C+:yzS#YIb/">|b~n\0|ey'KDϻM+{gL_rI2 Z3&$"U07MɵfancG ܥ}``̩( Ξ=3<;s탯B0=@J|ڦE!q,WHÑ)QCAI}! 3Vu_uz GV_>APJqԙ?Η9[[[ܹs'4o >{sn  =0?{X;HЂmpA ? ^a |$ԉ0tL+VO4wk ;zެ:W창O¿,{l0]NHa|DaNC!V<a u~!ژw)߰<ްx]yogF+߷wwm\z=GL0 ܧR!8H3gl"&j7X7`ah5D` Lni$KgVڻw$J`x Zdv^4@rT39r__hъ'Nlju BQ8~*~WB\xOB*U|& 鍠L8Z5)yc);O+{R S1=9'n3gSOa(rN8<&:>Y]]tollRm0ul{困_Fu `<}|B3Q4\dakqI#2~8~_pѥlmi4ԕ,M#4b"ve9y7I:VS& ?T @pD'Le9Apmk2{4R.O>d]^W1݀rq\'AX T0w0Fj,jf޺)'%>c!Ҹ7h$QS80MEעTM`.l/h9LW? A^SᎷZC”Be8'I,xoXqf0x[CKPhgGMYpD9ϣMȁxpLA E2-hVX_|1|߂ey\z9.ʫ̀tF EAM:9߫VptpVZq:t q!tkoN / L0וDXVXʲbgg'ݓR-P?Z)0Fb'x"Ow OMȖb ABiMU5 bX A)qdVy9$abߟJE6އh:,g5Pזh؆ o``8ط)&Lj޴T3e'> -,z=9B`uz *ɠFLM &,.((#(,Vj@hPb,V,Q4TZ|xigQɬ0d5 P&{H+J .4͜, D* iG}4֌Z\xg} BӍO>d5zgm$VMGI~p;;Zq46n jոNRAҊ,yF'/v]KD"D DO*+eUg8,JDv&ڡ͚u°Z3 ||cA)KԮCKIY14u4+*$Ȁ_>Z+(VncN @(ĉ*\= +dr ҕ'(iV ЋX}rU))AioC(Ӆ1qn y2hjʊ.4kvwk ynXZZ uc},˨ꚪ.V/K@Ulnnbee;_@O~FB]z絤wy]\(YF֖].ܳ t38{L@T T*FǠCC@{@!بr9Yf"/6uS2ӅKFlVckElllp%V3!]m&,V?Z[G#'0u'nƃJ.ȝY0Eܹ*ɀVc(&m G̾C= \Rĉq ӸB B {LV%ӖsQlT2 )nx3e*+6`%ͭ F (4Vꊪ8|xM"'3MtVS'y䡇\7Q(ŤYwwwvPZtf:#$9-ڡݵa%0^YB hL@ߜ:sk׮9N'֗/0;뤺ū,ZB$( lZiI*xDVxW%/2tYlo0)+Êx`vݾKx?o8ͷ02y6gv`ws819b4SV%[TMgph8bn({m)дKI0› k@p%;PkѣG)8(M=f 6 >:@/KWO xvm-:3,Ci۷M&lmlth/ug*U\hSE9`WK9!]۰ާ4UUz|7/\t~w3:3Ϝg4QbVGvUk,ϣU[ns%HDc2t#4:hؖЈ'ռg@s-EvᖸK9iy0iI#d)Wc)6M\*4i`5b3hшh+ rΝ]6:(/7v1.lx/o|OXRo_No|8cmIoo3 fgg"EZV+КJ/Kڠ1fi;ż"JO/=8iKr$|Ve ƺҸx$%bp'M2FD9jD w3Ă2ypV*Y_x2ԩ6gC{~W^ !ik{+.ť2_TU+?s뺉'UZ ҴnEОp/]ZAVK<ܛ{/ҨDLzD"E|2VQ熢Pd"/yGj:]CgFfC^d 5 ~k57_;duO{m;kס${U6 q&@_i^c8! yb}{Xpk-\ \@[OP04bQ]&>D0+-"$Aܑ:,Z62m"ThY}14Mç'WQ'}'}rՈ0eE 'BpEܢ=#ml4 x RQďk Əöy{= BHH QG4>3H2gJL PܼNeֵrs8κTƋo(<::?N{biqNapKj\&TIDAP+`>B٫}X!!ĦTwFihcB[=LNݣ{0IDAT X D+7{7YQ f N*hj־y]FCgSPDɡd.}i^n(rMQdc1b14>*`hzSAFmaaڀSXB*Vz!k6+Ϯ ƀ 4F+q.E5(J(+ŤFc`8H3cۙJ)~\v}sW(ɻ33nǠLMLPBoJ T\<gs m:[0HVt4ܫ Tlp$B=yYP ]ʖ'6R(Ka<Ѱut EQe|>Cgrg'%e}c_7<_R>w98):G3כc~&݂Aݫ]=OOsechꌐp0Lw0[3>WR_2?Kw}VW_Fp}#O=J7U&o4{>BA@|556 Z5tA30(€ݍւ(#1.!-2)(9[7jO1מ`v}T@xi9S28 `s1͹L_+R0PYbmFi6.1fP\,`|b_(&BYV<^r)hZ:}s{0m20ZkEI4aaLqJlϟlChC _kBj! bD,>SȩNq I q"sqS415ц,oFegcx_agOY47TUߟ,SǦ yLwdQ D,rr __{AT:j-@y1;;1:kW7qF q@>;@Ns6f&v׮_g0Hŝ͍}\jEDۮd^Qt†Q >"TŚvm@Q ! 8;f!q D Maaa !d2 >Zg,LBjyw6<_-{"VuEOجD;ia{ x"%3p'"у{ n% z3f&-8)/(.ص2)u;Q׹{`\E[aSr;K*µKtU3 ~W kB];_l2y)Tk{K{ qhDU5/t %oaz4 綤QK`f!SD.Ѧ4B)I& ;uw 9}=}qECBTF vUS< rܺ}ɩ W]nooX_L@^)Q:~9:"?Q@]SP/4&f 1IęѭFQ*E+`/fؗȹ(P1O.mLڍ4[1DR$")sQ0ʩ6 k沵g ;g838 䓃OExMZ/"2^k˜Oz\|BMh1n\'>w67j6LUy5 CxpNd&it^ ӿfuCB{2$Pٺ^DդbmĪiO݆m&? pPq@V/ N`Pq%D,fؚ@Km!}Y'^|3ask|`ݹxmʪk^x}4]!DU"G2{@bӭm"HlEF0|GOD[#W)G1^[AkwŻ"TueZ\'?d<P0aul>PA>⥷c&^{??Jf o a Fij.*5A6(v|K<51LtT͐bTLk 8M9봏/p /Ҕ &\~}y\1.@+\1[LEm\a*V{&1Asx 1Բ- WOc$|g@p+Ӊ. ܔd2Ν&gPp-vwwTnvs hxݪCt1P*i @u.]k'Qտ:W D6>-ъ @Ҹ$tC~$*g mj=q6Hu1gJLc~[ŒIv˅ChA or iF  Ͽ׾59mjSA Hmg(X+X]]C*hd0\>tݥEnCYj"iO+t>S,b-\Kغ&AkӢ>RT\~>ǎ ַ?SO= 6q)&x{o]*I6qĝ0lLu xkyoV\I7nޘcA ;*WV1ʫk裏SOqJ|3j$z. AYZlD K)sk >6cJ)ڠbem&o&Й[SWo^O+T 8pM[;z?z;cX^>V`GB25oB]>BԻ^ HR/L-xmؼk\r,X4% iXc%F#\DaiqŅ%ܾy۷odyΩS8~$Gv ,,%d-rEp5~GV6o-6F1ҐӀѐ-[ [X BhɄָykˋ/h.c.\xe +t ,,,u:nY6dy6aXE]4uMUNh@w~ #k %¤V{G}!mpZSЛכcvf Gf X*D6DA7"mӇPv|?FB ˿!obvGӥ(:t: 40 (q|nkWUd2JWPl4bRNX@h?uZk:Em_I*W*XO ܭYkUC C}tڻ BN?k?eMF_p;? ۟~f?UDž.9IENDB`vagalume-0.8.6/data/cover/cover.svg0000644000000000000000000015030212233552617014112 00000000000000 image/svg+xml vagalume-0.8.6/data/cover/1024x600/0000755000000000000000000000000012233552617013336 500000000000000vagalume-0.8.6/data/cover/1024x600/cover.png0000644000000000000000000012355312233552617015113 00000000000000PNG  IHDR *bKGDtIME 7't IDATxyu/ˬލn4 UI)SIɖx̉9<13콘0-;,kyDZm @ r[UyNVen }".!I=ˍ5g:MU-@E|vw8F@jaqa KK <)AJ) E5#YK.ѕ%jd!"(ת2Xcmu9>) ![jRBk!^@6,CHiB,ː$ Y,ADfPJ!sf3youZ"Pr,˰5#L)O@IE,`iiIjWtDdzXZZ2EdYvV񫢼-ON~8<<&IЅ#a+V}&z yGC`:7ON Q:Ok;![Y +++VVV2'} ~{^ `eygJ)f3`{{{qe9 UChnRn-L`EYN)"%IUֳΜ9sp,--y\!-z>fx M-I)tp9;w)qU\r7np_n$-s166Ϣ?> {N~ncc VW1)677q米4 D!Q7UcbzUUhMi,Ͱ-Ш׿^xo~a6i @Jyf +kv~v֝6iee[urYZZ³>@ @t_fY;0Z]Ǖ\y۝e-|1}aa< .]N/YEQ8Vb2 `-pܹ0$ѨSd`e4M@#!s={ /yChIc74zq_5>$Aa<:w] >{?'$I.5\Jg}Zrn%" C{8::Q# ɩl<-f4=rUٚM~EÂD7֖{V\QӧXc5Jk's>z!w3i_$x~w.#4Y¥cq!Υ{x b М82R|aDl;cl7q`3Ǿino|x7O@"%RN!ϞùF)^ϥt{ai%Zg_F 1GGGuV[4 t9z*VBrmQe-6毧0sll <6Yq>.$ģ> _>ȒEkȲ{OsqyF?cxWA#,z*ܚW%c.qUX@i)(kWQӫi{Q4~IMdh&{1ikk 'ϻVg]K8B+/--c¥$ ^z%EL?ql6ئtot hy]V6J_Z?T8BBp9^}{xg\Z$&~>t{r-~߽L,}^k˗/G%"ܸqW^ A͍os]E'7"j_͈߅)Ҏ$b^kks+=jG;Y݊^u!ҁ`w2ZY{>@_]]}; _^^7Mlmm<o`aW'6IU˥x]>FvD:  OQ!_)'خrnve|adZxoHDbnqiu%}uu ;EAo|XYY xw}ݛjm^B"z=)KWT-t׎FBsiᎵ+Bj˪{ oԡuY{i6ܹsxW]P*ʕ+~?F tJ5GhG)= n5hӛm•Q}W7EteXsy؎rd׌obiI#HD"9/5}yi/^׾ڶR{s'+qsf=~Xny u4m #UvqjX ZڳsT8ծ%6tF:jo>]e4|w! K._D-O)k׮XLjTk8 Jp94]S69pD m&VD'!35TO*q|yyo&VWF.ƷZ-\X,t/gnǭ뻻x饗(pU (TMtrb2rg+fL!ᷲz9> GhG&RO"{65 Esfֻ??2 qv woۗ{5ZVc'?>9,qL(ț7̵GYuÃV+]}V ^pB H!$lL:&^\onIMN*sj$rrV~~ҿҒn5J}f)v/\M='s΢(pHa򿖬 + 6!̂}oM #%6W55؂|qέ!"js,OLY\,/<ث_tT xK>{w>@B^}Uw,v~[#fa28M/ZwqF'˳_~spFYSlhrUruJ巵5|;I6pfcDu}}ECzxם:Iq>kN^\{^U 8##2u*wS8!cW )'E!6܊yډDpl 3 vǂ=RmJ<qӧkX]]gY7xÉUֺAn)l~BqgcF*l^09r iH ^m{ ƹ4 |, $>D~djj.W\Z+HS/i߹֜dw>@z:666%"\~}N4ԬW7<-^Į,U H3N_+Vi `&jkoo~OnZ׏|;Wk9:֦O?+9MtI}>QKiBe_N=Haoo/jyliQ_ ( H.zsYpuXq,z%'ȉ)fS:li8߸JH⤐BB{㫓oZBk4E/S/-(RJ|+_q[\Ipn۪Nҧw.D/GPL&sӌ N=[[s'YB \,r,}&ی2\,xkANvxUwt1 iS*`?.laNŸ:7M*&+X[= >@?H KND@f<}΍oQ^Fq1# .:Lc0n-gG@€7GL84?V'=# 4=]c*"ڎ|[rK CssÉ\zZz믿,j?[.@7mQ/um\+c⤾<(R!|5L\g'w&u.aFl)Cޡ&OgϞ9fu)%۹4*K)=^y'.eY@vEyN~'Z'ZCsd90\]H+6.)pz'dltbk'D.p`'i>BU)f޵ߤhXNcuڮj2ijYB<#x}ݠۍ3>U@?{yi¾>Im!g 0ULY`>tnq0&#J ֵV l?:Yk>p? ~ui)*e8oVU& _)^y*H$Q5ӥmw"0ҧ0IZS|n#λ"Rcb[[$s=5iZ;M<ۭvt[^^3<0@nk+ a`rhMcj7Dz@D8(C R~9+nW*zeex,9Qo-<+)VbP|m!TH1|R"|׿uWN\dϝ;t}{\iրw,ڠ%u^if`_32#"yu9 pJwTO *02blO[E9c"DT床gVUgj/Y\ODOgyc8h<k4x[.ij`` AugGdUW 45v/9|MhJMs;N"Zn39Tm '+J) J^ gyƨL:t6`8!1fy $AAhoM JPUXyk|>+0M0 1LQíLS칱/T¾;|{F=gFQx/੧HVWVL? S@o<}'ɇA}*ȅe{`vx7m!Q7@+%X( 0PLg[J ޠ#*= \ZAvZt``l`1))M:|ʤ3U|_t8ܶyWWjL[1y4gM&[`W8RlcSyMguaOӫ(K8<<22 Noݲj~mTA(HO^@< i^ s"=p8l: #ȘKoMo"B>1$%>#gQdmJ8)j3:Μ~+2;x=t!66r\URj>ҪV3Z5_;[E- [ bkTyP"/?́Zs;U9gu+ )tiވMRA*+v{UtCJ)L3 xUXE{_}TQWv>`}}f0tO=vkڂK@-sήo.d2+T%1ˋ t& %}7)?) k77:wqW0UfCUT暌̖6hZɂM65eYb0:Lǂ}&nw,͢n>q'I{sLO"z[kRˉr_Lvr7X hbu>u䗲>Ī:2KW -@!sef@WGl fyx UAAV8#נʲtgƻ:_Vq`c\}mu/^@W_0ۥO+˫%V˗/[0y:!9LrMy~Wg!T~qg;*ơ0nvrui+[Xުd8j&]ִb&r'W"x:ߚ?K^*bޡNc;Jv Ƹx4/{e}qq)z'C r':ez7R'QKMTI uq>>HƬA|0GIĦ[њs ֏HAF֠'=tX#`QZގLTdfM]0Nie z!D?Mq.^USoPVh;H[5'KG(;N4^Bj6~Mo5g9`@F\\guXo[0\9Qm%+[4Aw=ےh7IAOd' )ydI*\D%0ͦ5NI.'8Q!f'} (Ft,c[X$> t]YY=>ٳݕt:c|)' 8ڠ/d(E8zG(K:vlI((8B Q ";X, 7l~8+B]I!5v)}Lډ; L(\gWnR "[-K)t9x%ܳ`GzO vx||I:Hs@'@= 4V3:P@ 4Lr' _p'fًH: hH!B@61 s`=D ͤaMjR>6ul/!W m94u6b8, ե9.0k/+u9FUėW:aqqvNM}b@v2RJ\t)HB͟ "riEp{*τFH=J"ATF/]"ɢ:G:ԓ $*R4y,o7L<]~ %@JTd[V. riZpA4Gϼ8@]IGGpS4ҍm`ȳ{A.rnM@ۏkg~Xn^'i`kVM^r-R!a>[O1+ rLj&iYi0ȈnBI =TBJ$^Y 2J"M%DP Biѿ, 4Q5d4睜O1~:!-++"|<qi.XnلH}j` ^c,AY̪NDxReCwL.}b@oj r6dQ\WSR?-$ A ȥ>'|8bVLw2=DiEB H@(J YR[,K E"R /D-*I~' c;⊲@Q5Vvuüo0M!4Fd5 &Z 6|P k 2+ &aH`ǜ{1%@BS6vvv#IwODtϲ NhXb{u6z}A3q"\S 0CWRZdYLӌn+- d6e"j%88T\GyNJ '']8qdMSt:]i RS]"v^T(L0p#y D 9<*ܻj,k;"6F7Nc66775sCFDqtut!"Bs7;b: t.čs_\A "Y@[ Ӊֶ|zn`Qd8+Z=^HH}I D¬EOfSlF )@" 4@$HU.2*A^h] iI xdYny7 qttUB-a1]LnDm<&ܬ LcR~,(4 n3NB\pׯ_GH乞xqxtۡ豼e9 ISH3Lm%ʲht2hT`:UglP@+9dz.z=dڭʒEFZbjZH$q\xl_9`0oSRfHB6dEfq˸|\U,rI)+(^@mXh .'? @&*qtׁЫ7rww7j:~qZV}\ZE?q9mhݷKuȉnE2 An Ne`Y)4k=ɒ@BAĈ@9 MS(*e^ёlC@ ec PeQ"G "$"VVVd&饥%td$tRР9::`88t2ä5C}Y 9XϹL,= v "e:^JE$(صO׵# ,kj9'{ @>ѯ\ylVZ'e`t`|63N I=e W[m>sj0\/R']PLgȧSH)fi"A$Ppd8GQ(sB H@QTã>Hg`ccC[WVt71}t0MwM~ȇ#-8p8@g\~xZJ5]և|V2qw` ;<?I={)Q;Jpo 0yW C3ح(*x 0o ɺS #2@jNH@0@ {`<8dI ,/qt4hm;:bm׸i,f/EL'SYTI-nnsx]lD\ە0=Rv` [ȝTKDn`@Dn߯Jwv/,,cd9xVȐ +")aPǩDrQaF֟̈́ǟ|?EW=4C"M^!$$Tv $>ƣoY3gxИ^"lPJ+ ~".A֛M*`2r&j@`B232v"ouVyT7$nՆӌEϟF8RM7i#Ι窓B 9K[6쟇--WKXr @ =vˌKrDY߿dbA R pk;",a0XXX,.,L)TRme߽. mv;nZ~i@fUi+kT0NtpQ*⼓θ5YK:u>^-إO0-׊­uONaDU#[كsfݼʕ6q?!xŞcN97G~nk"9 EFǨps`/g9nt6@Q* G?Z7qƵc ;  t;]?Q$2CSb ]܆r`g}iw0QMW;Y7: quϞD(4=C־bm&lg6ĩT xL}gw3cVؑk8t-Wuuiz;mR/ǚpMicu]]vWo` r!5ofeA.Jxf3<xKP F#|/G&̐dzr>Մ :a`TZ|yKmx:qi>՟aiGszȃk-G]>9ؼTlVpe"bAw V@tԒ`@'Vqw1!FNgpYBx-AXy~*4M$l | *duoa:Aөè o\ï6=Зi◿z Мl+K$>`6{\z+Pe *G} InoBRgɆss9d@ +;wyAUNBWO& IA_M)wn]wSaH$ {LSWBQݻ[{&B:4*{-\vnko9KKG˝Nd2u]o?"t8ؕk+v)jxi79qdy-@>25] 6`+3NMZY*gr ݻ$ .tc\8`0p8кiQb?ht"?9:6zZ.~SI\7w)}\߻,=L칣v8=J-fimLUP . /&^^ 3^nK9*h1eRj =vz \lo{LDwD|XZ{4O,; L&N<k(6;5Pl 9xү !P9n޼A+;kk_{f]ZY[ÅcoF븵Sl' IDAT,dCN~8<8ty-z=IV0ʨ BP3Kd]\Rq؅kS!,y9'^t?v)#鮬pR1QGy&N^}u`[Q߀9wa`g{9PiyD@fSwñ׮hPK?)%^Wqem O=4GW7M<-{?z1Uw~}"'[}c<;hՕť%@-VUӄ@po&,we0p6/W&;e(叔`^]]5:wmy- ?CIO:$ȳv"3Atmp| z)(;G?_>}֙PBD%1GRGGzxph_w'k^v/] 41"/~]1""w1rt} GBDY\DyT,?s.K8fz4= tTT%@Jb6UP/BHD"&2(I Rd HA*AYG!R@d.IYohR/Bo5_^~DV d:@L?eoԄXXU/v;oEls¼(AJy1z'k%O ʘy_d;c)\[)]L"^Fe5p35]>cL7D~'Br@ R( c!R %P䤟 *҈ H$HLvK!)"dDb2IJI(-&/އx)WVCQ}nx? DH [7o?z08rp=^ 8}݈\ 9M^:ΧvK쵥3&.1JW*UVq-Q1t'bP sҦI#zۏ9Y5YF]Gq{9@GAƋyJ),# pD&N.9?_|O>8_墬R++ua*WJ'K/~:n݋5(1N00MuV+C%:4΃qX#bKfK{+Ҿ,{{9)^+Fgn,_c; ۍ0~R^1baƮu!x 2MO?=I,,,D(5onnTJA)@BK2>}1VIғֽ4r $$D61m#Bb8Cy^`6-zpď3￁vW'?O' ?|O=[o6?@eL%nA A>h4B׃ (K.5K*tm 4-+jrJNql4!Ӈo^DZX(3,8]jS]km=q`l^وDDV#NU?f|*\4("9=Kۭʉ{Z6zY/-Xam:dNO!$ 0{'y i6>ӲЖ$,”R88{|??3go ? {i|p:mwzkۙ_H ,7 Sm }et0|R\֣ KMҁ{ڠ|3ȅɀL ]-)tHu]Zi[FJ}v 7Nwt;0Dd|AD{Rd#8Ph_PyX[`Ie?т@d I;x[+M ݷܹ̋ΦFnSB`M׿ z~st?9MȐS)f)ڝΝN/- զ YV / P(7q^ՙC4JM VGvb4qv?'Y#*&I4MYI bš;!8dDnŀ8lc.nf ˩}[Bt)R 2\X&$d$DD M%L M,5!R=$L"M$D@R9,3̋Ho G_!4I27( ! H:|J-8{w%2جRP['7@l0zrb?+p+\p7U{ t󏽎Y݉sVO 蜣Lj/W :8jbϜ8hKpu\0{?Rlt;sJJ"$1Dh]҄i2 !ML KuZ ZR ˀ$HR@%hpn+._ڝNWұy#^B" $d<@Ykmegp2vls͋wlDM݊5N1=pS6tP91$'JcLVL@3h1O7DV5kb%g>Q2""3VKB(K?-c\xC~ۧ-h_fҞKh)PS B fjC05q},.77NJQ$<^Fܒ6EcBr s^;@u]4$&n4,e: =_dgkof zSȈVgʶ;H9V0ل"-"=4&ڐxn"h9'z{ҘX-H|ќg"[x:58dȊcE({>hC<k'$DI!jǥ~Z?7{sG ө:!%e,O:6jWp,ZogjYs9)XG=Ɋ6;#:) {3DZkkfƅVZ؁IqNf)rJ2 RҞm!QfSB!Iw;ӍZNB NP*9QO^`gԎ\;EP6λաQΎ=Ù&8:io=xy\Vm2α:=&;@?Q9>QMBJRy3fD`hpf if;(g%9j r㍔, _2"4'Jsl*1=ɀb|6ωܡ}wz뭹myGJ-e\~?](!yKбDāqDsV$@Y' ks} XP;<+ ыg10f(p&DŽ@bDPzGLSl9-[Z KPv4u@Q@J ρ"@>\"/, r1>Bs $H$HS qR(J3̎Xa^w}b2BQ QBcH} Pc]j9B4TA{ᬆۨ_5vSʖ}~D2)7)Xv9Stƭ(XSAƲΌF^KPs&n]G6]$4=-~ |gg^Yc$z Ӥ:<$(vOmDے# mlhZ`: ޶`: grha1VVWv?k|[^,> F޵E]Dtz i Ep) GTٶO!;&M~u.|;cMB&.zht4ㅗciwr_{ݥ ٶ>KavCtt8|{b4wBa=. 4qGi}Ft ̀x@4cNHǠRIJ\Elbue:s#~?~4_cx˿Vx N~kkWq'ʪNnZY>r4d v"P$DŔRߣyCH\6֋HȂ[ZvqxcEm2̋WJo<왱 GiM{k줴w[IzK6vX/uwI7ϒ ΑDx{oJz zuE{4(oN8. Fn&x1Y6O}儳B8uwd^wK/['&N~' oq?B3{+ !B`4Zh飔Dd2$z4*e4wURi;̐Wv9ٖ_@9ǬS5&=Yw)[ =bww̴B8՚uk==:ڎ}@c@uS?I6dLNu`Ӹ;"9 ??h8װL%z[I+xY{|wq38}w_MK>vlERץEV.b:&f8%R pCwjmp:0OB3fghP%R;]: 0UR9MI6G4Z@F{{{M}k9wnC?wIξa!y=ko Q"B!y)%Γ6d5ٟmH:)=E] {*+Uo +_]?͔w;xg}M />GOAF!;G mi=quOp4\Cӷd=4Ku9?^mtr:`榛169ǟ,p.žmmxl֦;mF:j5k o3)cvLn;} tGͩYӂY`8xv7i L1pPt.zjiQW~XYY1+ -.h&){|o|w"[)_;wf{\z?̧?}ǏmťE,,J.p$Кw-ksQ?eIDNS(¶8h͆+ΓEM/kKi "ogl"E4l?q1ju됓2=h~rbitn_6"(A9P@VSaAhYm@!(0 p P B'#+;;:RrRF!imԓQh+KKhs`< pE`ȷ649G/dϽ 3זixC^ E0ۧ1FlmmEN-`fZOg#$<g ij,--aeeD>نGxN)عGs>X%")mBב1x${얉+iUwi #VtݴrЎ:Mj}G1674m$sO6|ېYk권@۝WoRi5!4fEi[gw>Ӵoyi|#(K5>z1,-_*ƈwiFs  [xկ>}?hy^&Μ=|c{xSX䀞x =v (0Zať%xUmy8wpwG'Nasc W._=7mofG\NxTӎY>!xPKX]]IFtwizJ̎3t;r C2d5&Â]ov'Qy;MɐF`(|?V`蕬o7ꤖ{ lׯ+m4u Ŭ IDAT0L1^ [,vXPض+إ%L+X]]ռeU' 3>k6~urw-!_\sxSx$/..W~(KX\^օxlmnlRygDNE^E9Z#5EIMDI? be3m}X︤Jxx|11'8+ƈd^w;1*оr>l1'`?} t7G@^'߽+Z}X pH;m@چ` 8y?>|s8#8}4=rp@%bHƣ':?aaagΞnZ^|%uO|c-$OC8~/aPayqK z5>(%WPx,TjBIvbhXeT\~sȁ(sp] EfX&>| vmtSv#uy1x<34Wލӥs/kmV@neVqd09,p痱kni}Oĉli?Ç>!rBl<(>g0 9۳fś,wW=G>Q,- ~>Nj=ڶގ']&/ݜ1»UIUۃ眴vnC,Lݱ͕rKRtE.hr_N& Gʪޗ0+@CWwBo׾)/ys ddb++˴uY`Z&TU ""Ν9C/2v.]+ׯ^4Kq:._m|S'? @ ++/NhCMO' : JI{R8=8 J 2'M0v&g3*DWIJya0jH%YXg-?3c @E% Ky'3n޼k!nϷDnoz+8hPGF8~8?>3Ձ:d<1ԒvT>8}4=J3z ]| aco8簼? . eZa`P`ueɍupA۶:޹4pN9VW;=E,79TkNjߝ07*̓@53g|ۥK|@U( 4yV~us3d1 PMbD5`yi;HL̪׎0L1 IQOiT ϟN.B&Zxq ?v{>Q~P}#G4<'Ob8ij(1\\h0  m'G< R"M^Z~D"w%CKOOAsfČ)M$1vzm]ds :X D KK˺N?fay6kS?fT{G}++8#p"ܹM}*pɒDEÂ[F;,P:xP@M<\"VWW12x?6"!@ױ|)ĖѨRH:`x$14+<0F+K^EΙd`"Q\ͥOy?@;" d֍Le^9ׯ_ӧ1W}'=WիX_cpC`|peYb4,1X^ȑڡiit#XP"VWDUBh .A띝b{1$xH2g @~d  mwndSAT:69b":I*0KND2S_y&"Ҭ;&r߁/@P^par&ӫ һGSɈcY, ɻO#FUƓ)i}@{g=L iHG#Gp)\zkkk.BlH6JO?EQTT%UADٿd  GVVL(o&1JI !̠5\; z/.,6w=mI?d!΋\H۸#3-$#P_ * $U\BsgU{}zZ#*8s ~w~gF+- 힒zH \0eH. &EQUy~T#ȈZϬI>mh!J&wU'|O6mL0w]P-Ƶ{h\_ )n}4DQF2ױݣmԻA'Mά\:WnQ`stމ@-t)^#F"}+wYA1.HIfaLMa# LSn0u]gKPKyW4ҹ677O,N tNΣsS5zyc2s FmKZ L[t37ݐћȎ51 uRGߤhmшZ8Mk/]@#_𱠅GDkt ?c{k M݀BYkzX~_0İj!-̥`wzF8>/y82(g'ޝ5'm4vZcY.&d`{1W ,;;o>} " E~Ϋ9pIZeۻg|߳|h)#E1s;v^;,ir(wxݽ=uMClRmoá? t1(a#GYzfK8f{q:nݼd[ mlۀĶڀX05^ln[;Q57J'p\PL1&uh/s#MI-cz!>ȷubhݽ@yض(KrIj)[3n;Swf@`eY»"{)}msDS{/yVt$d$)ZNpU,--aqiê}#OX[6ږRVUf ,4t;b|m:1A[X@U,ED;5@"xRXsCMe-M9f51ű …:p52bMKyW^751Fvmq9|{^>$5w̧`3l(P.:/3R܌`JY Zrmwx8 q;!`kk [ۛ%F DSoY'#>s2Su;c<'<Rڸ^%8dv ͳ1y 9&`hr9h9Mc'#Mzv'v?);6V2vo pb쾵w޵vv1h#~/2>!cG{ϳhw=/m=RlEV}ːq9νT[7 mlom.*+TQjPQOP3n1mFhk NKjJ]SK{E6ǵS O*v݈/j&L Gf3P0s%Xʒ0au9e eG:Ozi\{9}6 mliw [8q'@#;wbCg2K߁\hvuAlve <8Qqgh0. n(aaDO'ǘg>`=:ī񝳒i&%M=$L5mZ}Qj8 c]R>8S(+I߸vt.ThT[U&rW^Mdf8`<ױ@19B8{lv<H &;Q9̶QoJӬo| sȁL˟t΁+^CȐT# d@9!БuD4؋YsJ#bbh!:Fp[D@Y4 v>]; 6Mt"UZ]GbYK:' 3^kiq'|}خ@MA-Fŋon9Ly׀G~34TA ^2p41L?{{pkv` FIPw!-ĩ%e1/}1 O+?E4E4M)}lP3C r*Pg*'rkڦHue$',!fg}s)&Ʒ6\Kޓc(z6=M]zdy͚ilL(yl DgW}Q4iW%CFURfNiޫN4'dү" .N3}VLC{}g=w.DnyW>)1hM /pu(^%ʲ:{tb޹F!ʪy9Ǵs{@/?d 5{xfm{3@x 8EfPVK0]W?xrm`DФO_.*SiwAEre_ .1 667wnVV}ѶLP.p@Y3] fн&ӡޮG`4*=g=Þ+!WwтQd D }t\A߁Ӹs2/Y}Ǒcֳ,@J@@J*u36sL Fv&ٶ8wz8"{߃ )yӬɩyG e71LDCͭMMٲ3grZb=Ei{>Sy4X;|~A2 PUQfbTt2Ah~ċ`9 VՎ4xJɎg_--rk]=۬chvy1V(JǴ}h; M +)L4JHQAOV :g\/sNqw&/F5պ&3gu>٦ ?Gyׁ޶ƿgYjWs.0K<=$"TUf4QAs%kdd,Jܯ$Zb4Ճ x"dK׉uy6)fJ. `C>6|($6=Se= >d4<Ŧ510ȓ|Sc6D֖Ph yʻtXZ͛7q7UOvc6@S6uJhVdȜjm-Mb{W\Vr7x_pB36cIwٯfpî~wlL^N b24MDOu)9:9I{Zbv$;LZgu`Pc/|kxqxӔR1ٚdv\3A8t .S-tiZK.qZu­Qm.hgΜ*+}ЌC{]}s6+,,0QɲI챷3ShD0#@YW ddPi,,q^U Z=yd]mOhOٳX4E&z~>y9U {[>;}w= o6. Te}M9=ߙ vx~K栊f\p@2 zJ$Pߨ> ̒jhK4^7R ^R?Uels> 񰬡[z9g';wתn0ܷnˀmfj~'QrHfW={VW)1nK:Y=;N'MV|{y%Zbݢ3!é X]]ǰp_3.KQiu$ʢha=r˨ y _^Wụ;Pg+!&kcQK1ئ13ͺǻTˌ9N85+"yE{ɛzGWڶ;أ{~:?uKt=b֑w^O Njh37$MMt !ƀz:A4hmhB(?#p{?̐Ɓ}Y 4o?<JQ4eԯ,L:p;d$DBl -bk X97IY`\ęisleo6@?veYmi]l׿?/6(hya*9e[g `ʋ4%kӖ1N{KT(G 쬢Imhږ =QLe7ӋU1k?M@Hbxq7n`;/0Dݾsm=ƈ7/=[r] P_fvm2ө͎^$aJ*([N_ݗoޡ( r:k+"*7oy<@hz)C+V]@3 RH-1, I$Yq,c %hrU8y4ѥN/7Jsr&c&nܼ!Dyo0S8WU4m'*;NՏi}5(U7ڰWZܕλ,- I,̽$` mF%s>cb{s=XAmMߴXu9ԙ%˺4MαLrƾOtKU{;qwD'?؝m1f-urp#s僻}:[ihfmm ?{|p31s蹬s4WԞUБYHQ|'D㩲Ewt%h$,ˑoH2Dm77 Ȗ'#)j˸͕+%8it"8г<N$jdLS@(K){*bW=5?[٢8cdy(кcv?+3{ޚZKXrK) }m˹l,}Y-39d6ӨD-BŅ GKvi|sjw%#]߃Mt$n ,e-|7oz&(<0K]JٝnOvJo]Dyh7omtGC|+>eȿK}"ڻnG֔uf;6 3W{X;@؝m z\ Ҫ >Wg08>9e'<;Ry:. XV9]+/OB|f`I;4Z`VwޥpZw g(:: 07 # K(KD2#蜘7Kӹyseyq.]7 x|W*4MNi(x<Ɨ%$`K.k9sYk>o na/հr^L@s/CP*.ڢ;Ո6i{r6zCuŮgIp[%'4dl |X.Fĵ"s-`mq9z677v~F٥w rݖ؍gu5_#!;fٕp! j$v%{|:4mW>S[o9$K3Ωȍ9uZD,-5;ToWgq% 9VϳLKGܻ; u{=nr[4{QV].gA'hPqx׮_~79 9ڶ__ckk>촿*}J03i惜MN1|bDS{7 KG^wUUa?).]ŋ9ٗ-._Ʋ߭<@5J/!F^IZOTՀo Lx5$S._t߃b*)/]a78L"^x?#bbzQ>Z ZQ8 0b)yKUKHVMYѬ] ljjyNtig׆ӧi~XEߛώ4y͒Nx.FZ6Gz@ҊnS'uZJ@q*s ߅piHMjrkP]JeYE0 So耼]lrhI*Y.UEMS\tm[,I\MiZ^z%|_'e'ƞ6:;nl)KMNɶݱu o4(Yffsj;023n>S8>.o _NYD>C軓6:4ußu{|0www/M2Ju]:@K1_~EOڻ*쳨trMi Ю'SHƁC֕1l&`L˾Th4u4Xzl3>@&u 66|f^'b+ܙzrË/ ,8e<ƈMrM&pDYMjHX@u\vFΞ=?>M9s :7 bܝvٸN=8IGh:b@~ 9']k1+ T{e-ɈMn?mfg9fy,ײ3 t=.z-˔s=MΎi= g<u=E_/| X_̥_oFy@HNn*uz2g;mh A6#,H^ڠ:: dhpf4#* X8 vx͐4uǓfM*m´\(Cy˗kMt@>L D/]xcP75~y[[[K\tIݮ3]mU$) @H`[m@Q~J`zJf?+Om;ɜs9d4MJIc#:7&>2Ռn<,` P @1/" 30yuS0 sNYF(R҆3gܹsܶUQ y_[ʻ([[Sp8"**xW`oo?'>Os<&!.A 62CHE푷p)19cY=8vUDDДҢ,9zBbLJ>~%ت Xϖ{!ML'8{  vJ l!'T[㽧bD1hV!Fx;L18p&F,g >&`qkGπ[aK$93ձG \UA4 )OIB LgΜa3Eoo\өrN !ƩǟDQhB6+?s_^}Uo&!- Q+KϾ;G11H Ğ?Clb cV c"ӸhzHf3#igAvG(#$[e 2^nܼ78"CDi^]ȻNC)[Ǔ2"i3JO?~o1 Hr'T Xy}mu /@+qءpfvc0a'NjZĨ49QlЅ]Ts iNۘ? I~va(i ~ElHs;n߹[ogzRSxǏ( bZE—1?1^}o|QxZ#]j5;֡'UwٮfwIAM@Rn0ѹg)A>V++U4'Ҫo27kÏ(b7""]r_<|7!Y-z ,F73yjxPh6DU3IPֱqe XO#jp&c$!#I^f|ip!1Ry1ȩWɴqy\|%^sEicĭ7r9=8z=v g i +PWU{ݯ:yj[h*9!8³v_ uZϹ^ukh6AW`a8p̾at1UzQEy۔e^ r\t)O Z3H\~=i+@esk;8yQ?vԢe*9_ 8__Ň0 _4{pLm.إje;h4 s}8qPPRc򆛺OZ QGAE lrqz܋s'x".]O2iz >7n]BrPBq:7أcuMhP/Ý۷sayi +O|(+y) SOZ(=\{ih)[#jDǤu<@Y/Sl976 mڎd; ;e(Fٳ4TLXg}lQ@71y9m.1Flla{g KK8~ɑӮ/Jx_!Fkkx0 ̇GN㏟I/bB!Ș2\s BAZTR'E4Ж*ݲ hHG-~0cFbv\~/_&j).6*Xfkvu}! C?vGVҘ0z|c:W_ū*O?" ɫbw0tuqmB#d,]o ~Os i|hۀ͍ ܸyW.3s@-|g !ϵ5y:>d׮8zGSZд̘vi E=>Mlnmމrw\qKX^^ !f;8W"B@1Floma{{U:]/҃EUp0(Ӻ&O}h)xBiU3K嚚:h/|U#wCX6ٞ7,/-`1pOV<-ĊXFx_D:m>J#: #[;;|;Nw.u=-0Z9?#iK_ 𢡩pOFb 7;1]>4+<I1b*,11-`4a0Mq..:PVJ!LLc'cc'ru(]8pP PU*,EQHb !mikL))Y;BP?x)cjQOM~ %׶;iC?dB_C9a9,rrX尼!ay6 (a9,(Ѭ}IENDB`vagalume-0.8.6/data/buttons/0000755000000000000000000000000012233552617012712 500000000000000vagalume-0.8.6/data/buttons/small/0000755000000000000000000000000012233552617014022 500000000000000vagalume-0.8.6/data/buttons/small/process-stop.svg0000644000000000000000000002052212233552617017125 00000000000000 image/svg+xml Stop Process December 2006 Jakub Steiner Andreas Nilsson stop halt vagalume-0.8.6/data/buttons/small/process-stop.png0000644000000000000000000000542712233552617017121 00000000000000PNG  IHDR22?bKGDtIME . Lv IDAThkW[U]կa{lL Ha I! ([A%lA?hW`." lC` c=c3zˏ8|3U:|{ v-l/IV:/AFAQdrX4n}~ @tۤж Fz޲^(s Ğg3Sd n HhAa˚bA{մuPȡ<ʈr"'9ql151-.=+[|a5"YU)PX1?[^9oYMgr+ۮXnO6B^ nLpe!= y UKpj<`tˮM~"N=~#؋2$łP_5ѥ~9BA &_{^KMnMcG w^,{udr z€7m#xℏ&J‘K8?57C3isG|տ34\uG7h#jyx@f7ʸ(@[(W2 5rB10P+L]p5%ynK1Bu ClDGVFY 1uϹۋC>0iGJBpJqqYuUpn&6J rpY-i'ݷ;+1x * . }+([v UZgax0J A cw0{]Ar*ղ Xu;[9_X;p"$*(MXRp `[ht2+XсP&ߢKSBfz^tK7.# @y^^Hc᎝uaroxkwv!2>Lw'wao/~pMzr\ ѬW]SuQ3R"]mC[r=nI.L醷Px~`ZOsuweٜ } /&vGI:u Rt 8h(;y2ӧ(b~`_Knç+O\U N<cp~ء\J\+5B#O?u[%~nzNN1k?vgrёDOI:G9%5Gh铬cڋk8vY6mÇ?{V>Tܾ!geUψ9u)}/ *z[sm_Fy3V <3l7w-g'Um8~k==Q #bYF=Lqk>m%;^`uoRRej]9.2i/ʶGXyӵڙ RA~~q;~P҅KV$V߷W^E[5s酅w-߂Z $ s ro׮TU<Ѱ^\Pu"78N8>Ek6@(%z%-l[&`z03'N±Ñ[ȣuٖZ=0`2Ң5rm1h=N> -bI1,8\IENDB`vagalume-0.8.6/data/buttons/small/accessories-text-editor.svg0000644000000000000000000011077012233552617021242 00000000000000 image/svg+xml Lapo Calamandrei Text editor vagalume-0.8.6/data/buttons/small/document-save.svg0000644000000000000000000013303312233552617017240 00000000000000 image/svg+xml Jakub Steiner, Lapo Calamandrei Drive Harddisk hdd drive hard fixed media vagalume-0.8.6/data/buttons/small/emblem-favorite.png0000644000000000000000000000552612233552617017536 00000000000000PNG  IHDR22?bKGDtIME . Lv IDAThk\Y̙άwg^㭝I[]"6@eRUBHHTPi***DP@%HB+QVIqJӒۻfv\ÜYq?ңy/n{]+wF2+`c"S0 XZ y޺z/„3J  x X_]qo ooXg]/_ t>-tتR-E닫Zε^( 3Da],hCnVmTjϦOC했|7~b⡙l=qy]5pn^EB⧎{`L bZМ/Qy ZJ̝>K?9~'J9n=\2:ikZӸÛAYl!âA/J٭ b[!^[T7>qZ=x]"/x=7 gɏ\Nj@'Iپch Q7'XIIBz۞c0kxXXxXhcwzaS۶ V}(50yh;ĀN,GBD' D X0K)%5G?hniyHWҧ <ŋd=7~b~!]'so‘גAwG;nݞHBt7nGkq&} | x#!Va mϥY$3s0sA d;;A;ۀL犰G/VI'GA7brh4} e^y Os\-1umms+ZU#mZ}j 5L' ÃW-G>(܁ :IȎm6N_ :4H`0qҿCtF!"R0ٜ;I,cB]P"G(Ʋ(fn"9qбD  x*6I'\Zi@c|D1׃2J! l-ESt(aty$l5ey @$ߣ(ECD(\Ӭcn=U&MyHKo;A!FH=Df0v\t%.K'ڭ`DzMlv_#)aQ["XrH%IN/KK;9!ߔThXބV}IX9w0!CmBuG=cobjx/)v&+Zݝ=D>"|gQS4hF{\>Pױ~iαN_uOlffaeswq3F mgyr.|nQ U7˥tXKܡ>Ry$D2w%,ז׏î𺟃^)??4wϝ}{Htq)\,!r,Ek'$2.Ւ}o^> u7m]whk ħJ/O7cj#/6Ze§vH̞w]Ku҃}sY9^o^p`kQ1Y >w-$@!dͭ}B}eڵܕrjΛ*IENDB`vagalume-0.8.6/data/buttons/small/list-add.png0000644000000000000000000000143612233552617016155 00000000000000PNG  IHDR22?bKGDtIME . LvIDAThAOAlw[DAq`CW0`CGxxPo\H$~?11ތ1h  vC):1;nfo;vp8C6DWVVV;i)~uL=jAhFy\~vv_ؿ\axuPj "J%aN<+dl&&n ~8#32n8#32nKKKznn4hEzu)ܝ.ab#52{'Aw|ZџPJ+_1Ԣ?bu~8ܯhT4 2486zpT=zn@52cmZ_:Ĭ32Xajr Ţy>ރH @9}i3ժQ\#j h)Ix}+f7;'6nu8%k3q4Dg',ޟg8z4}qfꊒFnGF*J@$pI넙 g+B n"?wgz3VD)f#=cgZ ٬2 vk-+Wh\wFAцd'=e#5#IvwwJ1 @^ϊ^U*wg"8޳p8 image/svg+xml Lapo Calamandrei vagalume-0.8.6/data/buttons/small/document-save.png0000644000000000000000000000707512233552617017233 00000000000000PNG  IHDR22?bKGDtIME . Lv IDAThՙy]}?眻e7˛22^= E"D! bbBZFQTUJdiE@aq *-4R5iSBji@RgosNͼ`ow߽;#X!WVrr/:wVb#LǦ>{`qD#= g(?ұR_1 rMd+.=EFQmdT+r!@Pw݁8zE߽u u I4"4JvO[-h#M2@/@ AH>VVܴhhD4kD& " y54"@D׈X5Jxo]EFDIɧ 44>Wރ%%>8â$]6$8K}DʦK$nyԻviಀOaT]tmk:z|0B(\ _\l~j:ۋ:YZ7]<뒍{5 o~o{o֞a>F [ T+l!@G/:o3_Q7?䉝Fwlŀx+w8`uooq܆\ꬨۯS^}T mjxe5FY86gGF]/~a w_A}.`,c5xil+׫Oa$ Y/ p\ڔ3I\0ao@:zLbtlRiFǸ;l܀+wOd*;?z9urB<9?t7v`Cϓ=UU8WO9Wf~XF2VjmBcz{W f W* a ;vիWs%߂TH%qR0~3=u&vdov>u5kۍZIPC\)W!Zwg:BA p}K%5H)DE@4RD[k^gmg/<#eiD)wݺuAHhk+Ғ}' CdY,6n,~׎=an辋ܴl6G6%2A?\/.a!Qϓ{Y9x`&ֵW161JkKu"IHBdqx # a ҹ3A8`zI@}}8n{)Wh( X DQy."$$EC .$cd}zXvm|G?~YӒJٲeKR\)^XP*mr8 sqJ"@elj =y\ZƦYGe>"5kD4r .ʄI;(u> щr°ʚ5kKrnfvK 866Bgg7A4I5L6=B2::¡ÇB9r㈶6 q=q!!Z Bbf)r=I\b _,R͡"HMzI EҀLmRx `!eՔv,B>3֭[㐸o-jzWSQ%]Ri15޽|\Of;$IENDB`vagalume-0.8.6/data/buttons/small/mail-message-new.png0000644000000000000000000000663512233552617017615 00000000000000PNG  IHDR22?bKGDtIME . Lv ?IDAThݙُey_9tOO700 a `p0cĖWKyKɒ<$F6D! $B00=3e`w=k՗sC$FJO׽ԭ~-U*zo Q-c;C568(U7#]A{#Wo:p=clޔx眍MWFm8U=W;wux\skkR8GQd_}z._x?/_6Wk}l,W*E>2|/wlњ~'3w8&X% RU$>\gkd"HGoʹȡC<}V]~++uژjt lbM19"peOjQ >iDF?r~nWھP8@07nۖ "tP=jX@ C! sԀ@v[.-ݴ)Tw&nrU ߺ(;z5@Ybԟ.# \Bz$9ۈl'2h UVfU|zqg B y{6pD"Ep eCO܏17„੃!sTžu,I.SW2Y #9c=K=_ F܂tі4P_~;,CA 4!bVi cs17a6XAMQTIlp24pxY7Tlz8Ъ ={+s9=f 9h S؜Edn1_Me%3T皔1^74C6QvR:kt:~,"TB _| V*U[ޑdcL+=$?F>Q!Ϲp͹p. +"F(FF#}A<dyOyByJd{+R"(xQU{4# *,},[[js4;k@&>sҭ?eT'N! :QNTUԢ:A-jUVT:J`kX"REx<{jx" Fsbt΃XqeYYcZܹ0yQ뷧M`mF`S)aD0b1q8|@(u34r܅%W, (0  sb2Ut1)B>rUe:WYnȲ'k1J3:WAJIWV5Ö%X[`D˵DŽaM ܴa 1Qqq> ϭ=o>ֶjEI#Zvq "2 up0DPn[DXi. EX@ ;jŽ9'22: B EAQdyJ˘v_1Vj4+;G;L5D o(͖'*Nķj50)Lk-y^!(E(kl*"&@hŹW(ù(Pe/(3lxo~U%Ij*E^JfEJQuQN5'k#R1Xqc?a$ٌ(+1?& uO[/cV;;Ap5װ|yJs,-teŌcNˈ0ҡLL(#j*xI^Dy`joDAbbaiigY6v10pX"T(ә!>A5 M;OT*dyd E3_Ǵ$ںm+gN! CL91[5 =$q @ytBsn in~ Ɨ^}-lhXO#kw"2G`8D 8JK!K x65qݏ wX˞{9~uƺHIsE(\AA@% vPZHArf&c(= uU #-[a%oرcϏ7Xys ~,fM{o;teͷ'bBDJEI9YK/f)IvE:a`L`{t.^WWy3|ameᅰxS}#}߈ٜc߾> 6w~0r^h4زe+zN~Gسq+dI>r67$׀ sFF 8kؿV{QYsy *JBv IOCˌ=ڰ*LEOgi"_dYJ!Mc L~4>bt:~?Bdy:hk 1Fm_PUq2o7HE^dy?By6UBJ;f5q1AsOGNq&6dg׫ŗ^'Ajjm0YOb1t7$KhuVx/kMÂA;w|(\­YSa:dyJ3wͩ֕m QN9ɍ7܈97~OLhaLx E].^jԽz34VkzTG,[ڑc!'vq=b0<46W8rH7>7[Z Õ5 NsNCT!lRt* ĬF-i!If"@$\5xR-aL2"B;f^_'DwӡU˭ Q*QI'wԛucb*LYt; *`bzǥI,q 9F_8'aXwK;֧r(ϐrJI+7a84+bu*ygGYHqV6c)c)#YݯxJL F8A6T2^ż_IENDB`vagalume-0.8.6/data/buttons/small/list-add.svg0000644000000000000000000001015012233552617016161 00000000000000 image/svg+xml vagalume-0.8.6/data/buttons/small/accessories-text-editor.png0000644000000000000000000000667112233552617021233 00000000000000PNG  IHDR22?bKGDtIME . Lv [IDATh{\}?ޙyx]?5xCLl \$b?"J%j6*Fhi@KkTD}UUEU )GI*Ə]}x3sw1I8wW]+vŮ/oT:t萶g )gx+B*|P$wJ)9x /Çㆩ?)=?8+`ز]bPMrQMsQbY/gvf5pJcv^{՟E"; BzkMS ?X*۾+Mkc~rO|w{77vy{k698ݱ' ujsGzo}Ϯ 7lv23䭷v_^jgz[":2i㆏o{oёe? HK<OJڎcyyյB(ұ0$4Y6nc2'OpM7ʑ#ܲ[޽7<ʖ-[a``3OӞN333KsL+ <( B{|ڴq(8{nщQ"0c/P'pvx1I 1e|bu:9wc=fzjc#]'lYGoo;?eUbS-FR=믿FjsGG4aݬI93tB@GG'poQ4MCn}Lf/L&coq4u%}C"74~bD8(k#{oq.r<}ؾ˲u˴طw? Y<~RJr{1 \0]D"ݷгL&_o^~z?1P^tn1u2?_erɯ>Q?rX#$2B+xa4 ۮi:86acUE! !Ķ Tz!ضMy9/m3 Dݷ Bwa뷿9ra]JR)%RJ*2<`6!8C\qGRqRT*h* J)eT}hf CTv6TUE 7Дj0 !PōW.!X1RoⷿDKuSn%Aw{!Te^h3Dva)],rcG)Bu&u]ZRF"ٸa#Lpd],qco;mV]TUuGVd:6 ivQp~wMѹ#s}©3'EUJwnf]PuLOړS)BX:k? /> ssłC.qܦ]#jۓD#%˱n]'c333MRR8(Y̲L3221a@-\o_9uT=WXt]1 IRbB޻ロfpT2CeYhF,ś-, !$ٓD6 image/svg+xml Favourites (emblem) 2005-02-01 Jakub Steiner http://jimmac.musichall.cz/ Andreas Nilsson <nisses.mail@home.se> vagalume-0.8.6/data/buttons/big/0000755000000000000000000000000012233552617013453 500000000000000vagalume-0.8.6/data/buttons/big/media-skip-forward.png0000644000000000000000000000724012233552617017571 00000000000000PNG  IHDR@@iqbKGDtIME )@4%0P><:NW9o!EQ 4t2!`s2M b簤9{{~VVV\W1oH|ssffޖjS;5uf8.:u3vHp 13N|j-pV֮v;;::_)AA1pΦO4.LZjZc@8 #_x~}\jȐ!rrr ~~Rv8pi*~_dddy7|ztpCkl/=z@; 0 Q$0㱙+Ec|{ ˃`(M555.tg#-ؾc%E^4 4ܵ˗=iO:9v=.˶haUU1;ځ򊲿QHWDnϟ?w}] RUUh"0c,~Wuvt  ƫKĔS g,|nqIHXe苣' +lg'(˖.s8/ 1Phȃ>?qD~)nuy<k,Y1[ac=x"MMZZqwӊhlɍE/_XX80`0Tc @hll@矢wuUQ 95L\UU233G=SK|1Ƹka" ^ )MkO/Ly5dw7v +,,,(((pnt](Dm|YFg~wy/Qf(sH/;;L|ߝ7o )류 Ds s}q$$s0ftuEgnG#;;?YX<1{&a׹5Rq#Ν[ϐP,θ \FQW_Cu|'MMί޽{m׮]źka{ yz<Q3XbpFc`D XF3;?cKn#ٛoYiemjWU#WHӄ)~khg=@%7#_qSy8q~8-SSk(f!Θ8UrIp.@~uF1}ڣTx n=`EQS,j.Ec[==BpDjLNr^bѺ_K45> ^w@(bRʤ%EŰl[>1%d0&~$™a兢 QbUݓvl$[Q\wfDC1' cK?U|Egq3V_;tM@|%gٷ\8; ;cl'բcƔ`uݞoYB#c+g8ىC֊1ֲ7@kkѨ5*ЧN'.ζt$e4uyF(&h`59SĶۮIka f0 OJK@J ) eLq@_ 9@v 1b`*2$JjRg@UX^^fJSÈb`d_+%FDɛ Ms!#5[$P;p8 UQx~ЗqTU/Vv(iVGNK XR&8Sxi.477a%: |&ozgW,'3DIʰ)M(˝_o69SM.T\|>9XR/KZ!2Nnso..ejf͚׷Ǘ$+ہR恮{D6P~^޶{뮽=6Ί=\z (JrdmǞԥ-TMs1B͗xuR_; {E9;jHċ'%Nw` ^Ó_w½{9O<2:%PEIqcu/TUEss.k8=lwg͜i-ψUJ90G8qrMMxeɢ豆Q#F7{֜G3 mYvBO  i)΍4Msݖ#.*s㦍,f5l|m-~Ӕ n.HV7_HEBDLRZ&\.>+ʥ2}wql%s]0ҚI&1HaAD3W,|~9]r#H!3MDah dhnja|ke}O<)@)5MEa2 dftj8rJ,IZ!RA4AP~gΜAe'_4A/?wrss[TKN,~P&FXQn,\l_)ˠ2dge |C^Jz}#Ϙ-R`//nfn5?@~>?} Y>P"M`~߿KFOLMn3+cTQ{_iطo/.+9qc5MĤ3]^ D"py,}Z|'Ͽ "S+g_j{4A~pe@9O1nv=];BW,Fp0SCGGg0c_jqw2呭ð+{}"Vpw'Rh]t}Ѧ9Oo~!am@ 1'~TiFiFiFiAKtIENDB`vagalume-0.8.6/data/buttons/big/media-playback-stop.png0000644000000000000000000000334112233552617017730 00000000000000PNG  IHDR@@iqbKGDtIME )53+v|イ^T 'm\~^_@8z'p?\խ?|=,4>$ MD!HAg= g}DH!*tRs CaZ5zR!'"~LQ!{Uyk2"fi.]`"`\26|MBt68!!z =̐e#Aҵ(a$.v]|\rEHU/0FD @OA!PdHtnUqp% Ak:n $4 NXZB۶vubXD[фj35ɱP" vmBW^UK BDq>4:ٮdk XV qѻYi޳A@P5e>ueQlv]ضm8KHxv{QЄ v2B`)29ͦ:c4@Eݟ| Q% "%T &!fP$KzݠVs`._L?ydtiЫ5f op08qq8j?;;^J!$T(ĥIQ8l[f 8S*̐\K&!C4BV Nr0͆fY(M Q'f1L$* jXp ut]7eā{2!(գ i~:BVBoRDs|<4I=!8r5w󃏀jŶme&QTUp$'u!EE3lby7((Mx:4JqǠ9^$ 4=`! =С0i>\"ӿQ-H1;e YU`LQ`EaoCR,˃=!"" IHrB]|V?#R\iߥmi>S)braLiޝEri2*%B=#y:eFkYj}Q2IMx_+HL->@< wu#j͕N1eֽ?wv4@SlQ>aQ+bjVzAq4&#PD Tg,nnDI)I!qF0l|c mw^U dɔUj;w&DDov[$R}_nr>/mHŁC'wzv!}>@dCJf4g3#F6Np3f̘1cƌ3f̘t&u=5nXIENDB`vagalume-0.8.6/data/buttons/big/media-skip-forward.svg0000644000000000000000000003352312233552617017607 00000000000000 image/svg+xml Lapo Calamandrei Next Song skip forward next vagalume-0.8.6/data/buttons/big/media-playback-start.svg0000644000000000000000000002336412233552617020122 00000000000000 image/svg+xml Lapo Calamandrei Play play playback start begin vagalume-0.8.6/data/buttons/big/media-playback-stop.svg0000644000000000000000000002326112233552617017746 00000000000000 image/svg+xml Lapo Calamandrei Stop stop end playback vagalume-0.8.6/data/buttons/big/media-playback-start.png0000644000000000000000000000501412233552617020077 00000000000000PNG  IHDR@@iqbKGDtIME )sQR=/X( ϝFrssg[XJIhv-v*+8y$!3, b`hpsAX-V̚9f͚]S!+~ɧwݻg3ݿMq',nU$VVu>@P `PGւ@&Ovv&q'}G}sFFFRҾuf`J Ԥ>gbPv A)??`A i׼Oo}ޙyyyϜ9Seԥ0``Rw)Q"(i R4ZZAXj-??yϯf4G"K)}`4Iqr^0$٠@&$3QtvEx֤9r?x_{3g< `]@)Qc&OHc?GRqH)! !%ѨHdܽ@&I1 p=(ɫĄL 'K)a0!7'6]SؼeS#>UYvb r3q_OcE 9\wya-Ѡ׸R!,IߙUkwln(i}#rB(g6c|]).E)RH"E)˿| S\IENDB`vagalume-0.8.6/data/vagalume.service.in0000644000000000000000000000010012233552617014713 00000000000000[D-BUS Service] Name=com.igalia.vagalume Exec=@BINDIR@/vagalume vagalume-0.8.6/data/vagalume.conf.in0000644000000000000000000000026212233552617014211 00000000000000 @VAGALUME_CONF_FULLPATH@ vagalume-0.8.6/data/vagalume.desktop.in.in0000644000000000000000000000053512233552617015345 00000000000000[Desktop Entry] Version=1.0 Type=Application Categories=Audio;AudioVideo;GNOME;GTK;Player; Name=Vagalume _GenericName=Last.fm Client _X-GNOME-FullName=Vagalume Last.fm Client Keywords=Lastfm;Librefm;Music;Player;Radio;Internet; Exec=@BINDIR@/vagalume %u Icon=vagalume MimeType=x-scheme-handler/lastfm; X-Icon-path=@PIXMAPDIR@ X-Window-Icon=vagalume vagalume-0.8.6/data/servers.xml.in0000644000000000000000000000334012233552617013754 00000000000000 Last.fm http://ws.audioscrobbler.com/ http://post.audioscrobbler.com/ c00772ea9e00787179ce56e53bc51ec7 10d704729842d9ef0129694be78d529a 0 0 Libre.fm http://alpha.libre.fm/ http://turtle.libre.fm/ db2c2184ad684eac4adce3ed1bb4a3a0 14dbb2640e6856bd56d2179db4dcc0ff 1 1 vagalume-0.8.6/data/vagalume-sb-plugin.desktop0000644000000000000000000000017012233552617016224 00000000000000[Desktop Entry] Name=Vagalume Last.fm Client Icon=vagalume Category=temporal Type=default X-Path=libvagalumesbplugin.so vagalume-0.8.6/ChangeLog0000644000000000000000000132721112233553556012007 00000000000000commit 25b4834d93b0b6e9cd73bacdf135d84143096530 Author: Alberto Garcia Date: Mon Oct 28 23:18:49 2013 +0200 === Released Vagalume 0.8.6 === NEWS | 10 ++++++++++ configure.ac | 2 +- debian/changelog | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) commit d0e85555b799ddbc14cf8273af25e58a7670cb17 Author: Alberto Garcia Date: Mon Oct 28 20:57:05 2013 +0200 Update README file README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 888380d1ca7398aa0b3fb158df9e45bf17820567 Author: Alberto Garcia Date: Mon Oct 28 20:54:28 2013 +0200 Update copyright years Makefile.am | 2 +- src/audio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 079c196095a3dc9142f5fada4a112f280b265e3f Author: Alberto Garcia Date: Mon Oct 28 20:44:26 2013 +0200 Update all translations po/ca.po | 20 +++++++------------- po/de.po | 18 +++++++----------- po/es.po | 18 +++++++----------- po/fi.po | 18 +++++++----------- po/fr.po | 20 +++++++------------- po/gl.po | 20 +++++++------------- po/it.po | 18 +++++++----------- po/lv.po | 19 +++++++------------ po/pl.po | 18 +++++++----------- po/pt.po | 19 +++++++------------ po/pt_BR.po | 20 +++++++------------- po/ru.po | 19 +++++++------------ 12 files changed, 84 insertions(+), 143 deletions(-) commit 6e9018f28c82a6abaedc5ca724064c2347b1925f Author: Alberto Garcia Date: Mon Oct 28 20:36:36 2013 +0200 Revert "Use the mouse wheel on the tray icon to change the volume" This doesn't make sense anymore now that the gstmixer support has been removed. src/vgl-tray-icon.c | 23 ----------------------- 1 file changed, 23 deletions(-) commit 4f8ef499aad05baa9def04495bb03a6644039fdc Author: Alberto Garcia Date: Mon Oct 28 14:57:51 2013 +0200 Pass subdir-objects parameter to automake configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1d1e2156c86c11b366db3581faae99f6c04c3f66 Author: Alberto Garcia Date: Mon Oct 28 14:45:25 2013 +0200 Make GStreamer 1.0 the default version configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit f4853db11ac9820395b60bf1bd4343f058b60949 Author: Alberto Garcia Date: Mon Oct 28 10:00:17 2013 +0200 Remove the gstmixer support This code is broken and is not even supported in GStreamer 1.0. configure.ac | 18 ---------- src/audio.c | 113 ---------------------------------------------------------- src/audio.h | 4 --- src/main.c | 10 ++---- vagalume.1 | 5 +-- 5 files changed, 3 insertions(+), 147 deletions(-) commit cff1bb5c55609a6a188c7d6e6bb55b435f0bb1e9 Author: Alberto Garcia Date: Mon Oct 28 09:37:53 2013 +0200 Remove the hack to stream MP3 instead of OGG from Jamendo This is no longer working, and it's anyway not needed since Vagalume now detects the audio format. This effectively fixes the Libre.fm support. src/protocol.c | 11 ----------- 1 file changed, 11 deletions(-) commit 48ba32c19486f7ed32e4545ba42fe254e0f51415 Author: Alberto Garcia Date: Mon Oct 28 09:37:38 2013 +0200 Use GStreamer decodebin and autoaudiosink elements This simplifies the audio code, removes the need to have a different setup in Maemo 5, and allows Vagalume to play any kind of audio format, not just MP3. Remove also the convert element, it is no longer necessary. debian/control | 4 ++-- src/audio.c | 45 +++++++++++++++------------------------------ src/audio.h | 4 ---- src/main.c | 10 ++-------- vagalume.1 | 3 --- 5 files changed, 19 insertions(+), 47 deletions(-) commit 4dc09429b8cdedce5d1e284708dcbcb3ee5d2d48 Author: Alberto Garcia Date: Sun Oct 13 17:17:55 2013 +0300 Don't use g_thread_init() in glib >= 2.32 This function has been deprecated for a while already src/main.c | 2 ++ 1 file changed, 2 insertions(+) commit 154908809376eea2805dd72953b940e39bd0b4d5 Author: Alberto Garcia Date: Tue Aug 27 10:42:41 2013 +0300 Add support for GStreamer 1.0 configure.ac | 34 ++++++++++++++++++++++++++++------ src/audio.c | 4 ++++ 2 files changed, 32 insertions(+), 6 deletions(-) commit faed71d8d979fdd3f99a6e6d26fb44a3f366d0c4 Author: Alberto Garcia Date: Sun Jun 9 14:21:38 2013 +0200 Add 'foreign' option to AM_INIT_AUTOMAKE Also clean up autogen.sh a bit. autogen.sh | 6 +++--- configure.ac | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit 5c874af5c1e5ccf60db98102bca5c4a3c01f058d Author: Alberto Garcia Date: Sun Jun 9 02:10:55 2013 +0200 Add AM_PROG_CC_C_O to configure.ac This removes an autoreconf warning. configure.ac | 1 + 1 file changed, 1 insertion(+) commit 151028378809fe8d0042c094c920a31895a0a09a Author: Alberto Garcia Date: Sat Jun 8 19:36:06 2013 +0200 Add Keywords field to the .desktop file data/vagalume.desktop.in.in | 1 + 1 file changed, 1 insertion(+) commit 42e548f5cba33d984ad9210ab4c09e6ddca9159d Author: Alberto Garcia Date: Sat Jun 8 19:08:45 2013 +0200 Use GTK+ 3 by default configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit fe5ab9a3279342f3b13163e6966aa2b3ee75d421 Author: Alberto Garcia Date: Sat Jun 8 18:50:04 2013 +0200 Replace mkinstalldirs with MKDIR_P in Makefile.am Makefile.am | 3 +-- configure.ac | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) commit 69c1871ffc24b3749b5e4f087c3bdbb151b29a4c Author: Alberto Garcia Date: Sat Jun 8 18:12:29 2013 +0200 Update copyright years and e-mail address AUTHORS | 2 +- README | 2 +- debian/control | 2 +- debian/control.maemo2 | 2 +- debian/control.maemo3 | 2 +- debian/control.maemo4 | 2 +- debian/control.maemo5 | 2 +- debian/copyright | 6 +++--- src/audio.c | 2 +- src/audio.h | 2 +- src/compat.c | 2 +- src/compat.h | 2 +- src/connection.c | 2 +- src/connection.h | 2 +- src/controller.c | 4 ++-- src/controller.h | 2 +- src/dbus.c | 2 +- src/dbus.h | 2 +- src/dlwin.c | 2 +- src/dlwin.h | 2 +- src/globaldefs.h | 2 +- src/http.c | 2 +- src/http.h | 2 +- src/imstatus.c | 2 +- src/imstatus.h | 2 +- src/lastfm-ws.c | 4 ++-- src/lastfm-ws.h | 4 ++-- src/main.c | 4 ++-- src/playlist.c | 2 +- src/playlist.h | 2 +- src/protocol.c | 4 ++-- src/protocol.h | 2 +- src/radio.c | 2 +- src/radio.h | 2 +- src/scrobbler.c | 2 +- src/scrobbler.h | 2 +- src/uimisc-gtk.c | 2 +- src/uimisc-hildon22.c | 2 +- src/uimisc.c | 6 +++--- src/uimisc.h | 2 +- src/userconfig.c | 2 +- src/userconfig.h | 2 +- src/util.c | 2 +- src/util.h | 2 +- src/vgl-bookmark-mgr.c | 2 +- src/vgl-bookmark-mgr.h | 2 +- src/vgl-bookmark-window.c | 2 +- src/vgl-bookmark-window.h | 2 +- src/vgl-main-menu-gtk.c | 2 +- src/vgl-main-menu-hildon22.c | 2 +- src/vgl-main-menu.h | 2 +- src/vgl-main-window.c | 2 +- src/vgl-main-window.h | 2 +- src/vgl-object.c | 2 +- src/vgl-object.h | 2 +- src/vgl-sb-plugin.c | 2 +- src/vgl-sb-plugin.h | 2 +- src/vgl-server.c | 2 +- src/vgl-server.h | 2 +- src/vgl-tray-icon.c | 4 ++-- src/vgl-tray-icon.h | 2 +- src/xmlrpc.c | 2 +- src/xmlrpc.h | 2 +- vagalume.1 | 2 +- 64 files changed, 74 insertions(+), 74 deletions(-) commit 7187d5d63bef8f86de2b188cbbe85243d04d58d2 Author: Alberto Garcia Date: Sat Jun 8 17:40:32 2013 +0200 Update all .po files The following translations have also been completed: - Finnish - French - Galician - German - Italian - Portuguese - Spanish po/ca.po | 116 +++++++++++++------------- po/de.po | 234 +++++++++++++++++++++++------------------------------ po/es.po | 120 ++++++++++++++------------- po/fi.po | 234 +++++++++++++++++++++++------------------------------ po/fr.po | 259 +++++++++++++++++++++++++++-------------------------------- po/gl.po | 120 ++++++++++++++------------- po/it.po | 120 ++++++++++++++------------- po/lv.po | 116 +++++++++++++------------- po/pl.po | 233 ++++++++++++++++++++++------------------------------- po/pt.po | 120 ++++++++++++++------------- po/pt_BR.po | 120 ++++++++++++++------------- po/ru.po | 116 +++++++++++++------------- 12 files changed, 916 insertions(+), 992 deletions(-) commit 8c8c202e8302706481cccce1ecdda3224567bad4 Author: Alberto Garcia Date: Fri Jun 7 19:14:24 2013 +0200 Fix all fuzzy translations po/ca.po | 5 ++-- po/pt_BR.po | 74 +++++++++++++++++++++++------------------------------------ po/ru.po | 5 ++-- 3 files changed, 33 insertions(+), 51 deletions(-) commit e31ce57d84f41a9c32c6989c127be455e14886c7 Author: Alberto Garcia Date: Mon Jan 21 13:12:28 2013 +0200 Ignore VAGALUME_DEBUG if G_MESSAGES_DEBUG is set src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 8813d4d291f58b4293ad12afbe9e32ac3a2963e4 Author: Alberto Garcia Date: Mon Jan 21 09:55:07 2013 +0200 Show explicit error message if the radio is geo restricted Since January 2013, the Last.fm radio streaming service is only available in a few selected countries: http://www.last.fm/announcements/radio2013 This patch shows an explicit error message in this case, instead of the generic "Invalid radio URL". src/controller.c | 32 +++++++++++++++++++++++--------- src/lastfm-ws.c | 22 +++++++++++++--------- src/lastfm-ws.h | 8 +++++++- 3 files changed, 43 insertions(+), 19 deletions(-) commit 557825d0ee34fc2267c6da93223fcd001b3ed9d7 Author: Alberto Garcia Date: Fri Jun 29 11:35:50 2012 +0300 Add generated files to CLEANFILES Makefile.am | 5 +++++ src/Makefile.am | 1 + 2 files changed, 6 insertions(+) commit 4a30d085854f72bb9ce7f9b45aade4ec92771bf3 Author: Erkan Yilmaz Date: Sun May 27 18:29:20 2012 +0200 Fix typo in README file README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 2572ca7e3a6ee3f017a556c0e8c26afc9785794d Author: Alberto Garcia Date: Wed Mar 28 17:09:29 2012 +0300 Fix typo in Portuguese translation po/pt.po | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 8de29582af1a68a276bf02b449599ca5c6a91b62 Author: Alberto Garcia Date: Fri Mar 9 17:05:34 2012 +0200 Use the mouse wheel on the tray icon to change the volume Fixes: https://bugs.maemo.org/show_bug.cgi?id=12585 src/vgl-tray-icon.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit b7ed3d4842235237ebf585f7cafc8ec4841a2ab3 Author: Alberto Garcia Date: Fri Mar 9 17:11:01 2012 +0200 Don't disconnect signal handlers when the tray icon is destroyed This is not necessary, we are already destroying the objects. src/vgl-tray-icon.c | 86 ++++++++++++++++----------------------------------- 1 file changed, 26 insertions(+), 60 deletions(-) commit 3bcdc1f08b7205cfe574e235cebfa6b25f9ff826 Author: Michel Alexandre Salim Date: Fri Mar 2 19:05:40 2012 +0700 Register vagalume as handler for lastfm:// URLs data/vagalume.desktop.in.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit c4765c92d2607166cd516a5de2ae40fd65c6dd2b Author: Michel Alexandre Salim Date: Sat Feb 4 01:00:17 2012 +0100 Remove deprecated category from desktop file data/vagalume.desktop.in.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ed9a26f0e01d98527410ed7783ee1ccc8d3fa313 Author: Alberto Garcia Date: Tue Dec 27 18:45:20 2011 +0100 Update hack to make Jamendo stream music in MP3 format src/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b5258ba0978f0d4fc6141804ad11f361e004abf9 Author: Alberto Garcia Date: Fri Nov 25 18:53:53 2011 +0200 Add GenericName and X-GNOME-FullName entries to the .desktop file Makefile.am | 6 ------ data/vagalume.desktop.in.in | 4 +++- po/ca.po | 8 ++++++-- po/de.po | 8 ++++++-- po/es.po | 8 ++++++-- po/fi.po | 8 ++++++-- po/fr.po | 8 ++++++-- po/gl.po | 8 ++++++-- po/it.po | 8 ++++++-- po/lv.po | 8 ++++++-- po/pl.po | 8 ++++++-- po/pt.po | 8 ++++++-- po/pt_BR.po | 8 ++++++-- po/ru.po | 8 ++++++-- 14 files changed, 75 insertions(+), 31 deletions(-) commit 538cbd248d28a2c39bb80ec888597e9f0569034b Author: Alberto Garcia Date: Tue Nov 22 20:37:21 2011 +0100 Add data/vagalume.desktop.in to POTFILES.skip This is necessary for 'make check' to work. po/POTFILES.skip | 1 + 1 file changed, 1 insertion(+) commit d62936d1109641cfddbd9fefc65ef15b1e79fbae Author: Alberto Garcia Date: Fri Jul 1 22:19:07 2011 +0300 Update copyright year src/uimisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8fd9232c59c52ddde727596bc7df26574f01da84 Author: Alberto Garcia Date: Thu Jun 30 21:58:27 2011 +0300 === Released Vagalume 0.8.5 === NEWS | 9 +++++++++ configure.ac | 2 +- debian/changelog | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) commit 01cb3d8087d1f4dd059bdb2abf72403ff27cd8bf Author: Alberto Garcia Date: Fri Jul 1 14:42:02 2011 +0300 Use proper return value in lastfm_ws_old_get_album_tags() src/lastfm-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8dfe566a06757b98c1ba8d2b84fd19446629de32 Author: Alberto Garcia Date: Fri Jul 1 12:52:27 2011 +0300 Fix compilation warning src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 05c7c2ba463bc63404ea1ade8eaa58463df0cef1 Author: Alberto Garcia Date: Tue Jun 28 11:40:31 2011 +0300 Updated Spanish translation po/es.po | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) commit 4a11469b9226661b0b22e9548313667c455a5ec4 Author: Alberto Garcia Date: Tue Jun 28 11:37:34 2011 +0300 Fix 'Low bitrate stream' help string po/ca.po | 7 ++++--- po/de.po | 12 +++++++----- po/fi.po | 11 ++++++----- po/fr.po | 11 ++++++----- po/gl.po | 12 +++++++----- po/it.po | 12 +++++++----- po/lv.po | 11 ++++++----- po/pl.po | 12 +++++++----- po/pt.po | 13 +++++++------ po/pt_BR.po | 7 ++++--- po/ru.po | 7 ++++--- src/uimisc-gtk.c | 5 +++-- 12 files changed, 68 insertions(+), 52 deletions(-) commit b300bb53d9b740b2bc5fecbeeb7a186745c342c4 Author: Andrea Grandi Date: Tue Jun 21 00:12:37 2011 +0300 Updated Italian translation po/it.po | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) commit 1f32f63939fd24d7e980ccb3547a5069a51caae4 Author: Amador Loureiro Blanco Date: Mon Jun 20 20:54:31 2011 +0300 Updated Galician translation po/gl.po | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) commit feb9418b97b4670f2020f40fa64550a631aa26aa Author: Oskar Welzl Date: Sun Jun 19 20:36:22 2011 +0300 Updated German translation po/de.po | 211 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 117 insertions(+), 94 deletions(-) commit d1c1013109be746e7a41b52af42195ab5afa0fbd Author: Julien Duponchelle Date: Fri Jun 17 20:41:58 2011 +0300 Updated French translation po/fr.po | 218 +++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 124 insertions(+), 94 deletions(-) commit 64ab63493a2291ac614e3e16dac1523c6093d3b1 Author: Alberto Garcia Date: Fri Jun 17 12:51:56 2011 +0300 vagalume.spec is very outdated, remove it INSTALL | 4 --- vagalume.spec | 88 --------------------------------------------------------- 2 files changed, 92 deletions(-) commit 5fc857c5407fd07a4f98d5ce877a35e695a21462 Author: Marcos Garcia Date: Fri Jun 17 11:43:13 2011 +0300 Updated Portuguese translation po/pt.po | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) commit 638d6a152f8eb8eeb114b4ffca71f94a6b5f5f53 Author: Alberto Garcia Date: Thu Jun 16 14:56:10 2011 +0300 Improve libnotify detection support Disable libnotify only if it depends on a GTK+ version different from the selected one. configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit ed4ee8baf39926b059f60739fb4cb670f8af195e Author: Alberto Garcia Date: Fri Jun 17 00:33:47 2011 +0300 Don't use gtk_status_icon_set_tooltip() in GTK+ >= 2.16 src/compat.h | 5 +++++ src/vgl-tray-icon.c | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) commit ad42f23231e2be2d79cc885f3dec3025b4c30aa4 Author: Alberto Garcia Date: Thu Jun 16 14:31:11 2011 +0300 Add dependencies on gstreamer0.10-gconf and gstreamer0.10-alsa gstreamer0.10-gconf is needed since recent versions of gstreamer0.10-plugins-good don't include the gconf plugin. gstreamer0.10-alsa provides the ALSA mixer plugin and is an alternative to the OSS plugin provided by gstreamer0.10-plugins-good debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b371626030c58316a654aa2d86d116f8fdd81992 Author: Alberto Garcia Date: Thu Jun 16 11:18:02 2011 +0300 Update debian/copyright and debian/control files * Update copyright years and link to the GPLv3 * Add build dependencies on libgtk-3-dev and libproxy-dev * Update Standards-Version * Add ${misc:Depends} to Depends fields debian/control | 6 +++--- debian/copyright | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) commit 4c9b4e189032d06117dc187c1f3a3c59227f251e Author: Pēteris Caune Date: Wed Jun 15 23:01:25 2011 +0300 Updated Latvian translation po/lv.po | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) commit 3310343cf2fbfe5375f720d18a6f0865d7593f93 Author: Alberto Garcia Date: Tue Jun 14 16:52:26 2011 +0300 Don't output debug messages unless VAGALUME_DEBUG is set src/main.c | 4 ++++ 1 file changed, 4 insertions(+) commit 980037745ae0fd6da1d1afdcb3b04570e90badcb Author: Dawid Pakuła Date: Tue Jun 14 11:32:09 2011 +0200 Updated Polish translation po/pl.po | 183 ++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 119 insertions(+), 64 deletions(-) commit ba3029cbd1842647293812ef3fff8c6260758c58 Author: Janne Mäkinen Date: Tue Jun 14 14:55:45 2011 +0300 Updated Finnish translation po/fi.po | 193 +++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 117 insertions(+), 76 deletions(-) commit 9d91fd149595cdd046d487195b4228d5440b0a6d Author: Alberto Garcia Date: Tue Jun 14 12:02:11 2011 +0300 Remove vagalume.pot and update all .po files po/ca.po | 416 ++++++++++++----------- po/de.po | 440 +++++++++++++----------- po/es.po | 440 +++++++++++++----------- po/fi.po | 440 +++++++++++++----------- po/fr.po | 440 +++++++++++++----------- po/gl.po | 440 +++++++++++++----------- po/it.po | 440 +++++++++++++----------- po/lv.po | 440 +++++++++++++----------- po/pl.po | 440 +++++++++++++----------- po/pt.po | 440 +++++++++++++----------- po/pt_BR.po | 440 +++++++++++++----------- po/ru.po | 438 +++++++++++++----------- po/vagalume.pot | 1020 ------------------------------------------------------- 13 files changed, 2865 insertions(+), 3409 deletions(-) commit 14c87babc5d34f4c58a931bb5fe9bd8a0e86f109 Author: Alberto Garcia Date: Wed Jun 8 22:28:54 2011 +0300 Add support for system-wide proxy using libproxy configure.ac | 20 ++++++++++++++ src/controller.c | 5 ++-- src/http.c | 68 +++++++++++++++++++++++++++++++++++++++------ src/http.h | 3 +- src/uimisc-gtk.c | 81 ++++++++++++++++++++++++++++++++++++++++++++---------- src/userconfig.c | 6 +++- src/userconfig.h | 1 + 7 files changed, 157 insertions(+), 27 deletions(-) commit 4684cf154132ba399b8d6bdada9b6df162942fd2 Author: Alberto Garcia Date: Tue Jun 14 10:52:20 2011 +0300 Add implementation of g_strcmp0() for older GLib versions configure.ac | 13 +++++++------ src/compat.c | 14 ++++++++++++++ src/compat.h | 10 ++++++++++ 3 files changed, 31 insertions(+), 6 deletions(-) commit c4ee84f03486bd8a6a2477624fef42f00ec121ca Author: Alberto Garcia Date: Wed Jun 8 21:54:11 2011 +0300 Add SOCKS proxy support src/http.c | 30 +++++++++++++++++++++++++----- src/uimisc-gtk.c | 9 +++++---- 2 files changed, 30 insertions(+), 9 deletions(-) commit 331615b30c1891312c41292a91b7857eebd6ad5b Author: Alberto Garcia Date: Fri May 27 16:54:15 2011 +0200 Include gdkkeysyms.h to properly detect the new GDK keysym macros src/compat.h | 1 + 1 file changed, 1 insertion(+) commit 325d2a6cd74bd3fe5952defdcc9c22cc9c93c2ae Author: Alberto Garcia Date: Fri May 27 15:27:31 2011 +0200 Generate a ChangeLog when running 'make dist' ChangeLog | 1 - Makefile.am | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) commit 20980ac04555e5a7d2081597c1973aa35ece12ed Author: Alberto Garcia Date: Sun Apr 3 14:51:25 2011 +0300 Update copyright years src/compat.c | 2 +- src/compat.h | 2 +- src/controller.c | 2 +- src/lastfm-ws.c | 2 +- src/lastfm-ws.h | 2 +- src/uimisc-gtk.c | 2 +- src/uimisc-hildon22.c | 2 +- src/userconfig.c | 2 +- src/userconfig.h | 2 +- src/vgl-bookmark-window.c | 2 +- src/vgl-main-menu-gtk.c | 2 +- src/vgl-main-menu-hildon22.c | 2 +- src/vgl-main-window.c | 2 +- src/vgl-tray-icon.c | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) commit dde4637eb891de3d0b11b8b1cfd886a45f547d39 Author: Alberto Garcia Date: Sun Apr 3 14:51:16 2011 +0300 Add reference to the N900 in the README file README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 258d34aad3cf7f75b959fbf3dec2eb1895d8a4ed Author: Alberto Garcia Date: Fri Mar 25 01:09:41 2011 +0200 Add GTK+ 3 support README | 2 +- configure.ac | 54 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 41 insertions(+), 15 deletions(-) commit af15ee73b335c03f10d03f39241d3df6ae815df4 Author: Alberto Garcia Date: Sun Apr 3 02:53:08 2011 +0300 Don't leak the GtkRcStyle object For this, all bg_pixmap_name strings should be allocated separately, since they are freed in gtk_rc_style_finalize() src/vgl-main-window.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit 278cc6f3add29c96a9c92f6b10f59b40ff57f85f Author: Alberto Garcia Date: Sun Apr 3 02:39:14 2011 +0300 Add support for GtkCssProvider to set the cover album background image src/vgl-main-window.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) commit c108cd2e13d3594f83ce901bf14c1f3e61e0fc99 Author: Alberto Garcia Date: Sun Apr 3 00:27:55 2011 +0300 Disable gtk_about_dialog_set_{url,email}_hook in GTK+ >= 2.18 GTK+ includes default hooks from 2.18 onwards, so there's no need to set our own. configure.ac | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) commit 1009834b24eac2e4f224955b6200163e5e219d6a Author: Alberto Garcia Date: Fri Mar 25 00:09:21 2011 +0200 Replace GtkComboBoxEntry with GtkComboBoxText src/compat.h | 2 ++ src/uimisc-gtk.c | 3 ++- src/uimisc.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) commit c8bd0f2e2497ee65844a568be3248595c78dc7e9 Author: Alberto Garcia Date: Thu Mar 24 23:48:15 2011 +0200 Add support for GtkComboBoxText to replace gtk_combo_box_*_text() src/compat.h | 10 ++++++++++ src/uimisc-gtk.c | 25 +++++++++++++++---------- 2 files changed, 25 insertions(+), 10 deletions(-) commit dfcad7ec68ced3c6109047e3dedbe933eb6868cf Author: Alberto Garcia Date: Thu Mar 24 23:02:48 2011 +0200 Add support for the GTK+ 3 progress bar src/compat.h | 8 ++++++++ src/vgl-main-window.c | 1 + 2 files changed, 9 insertions(+) commit 7d1521d3d38664695a059d1d08d7d93fd6245ace Author: Alberto Garcia Date: Thu Mar 24 22:31:11 2011 +0200 Replace GTK_WIDGET_IS_SENSITIVE with gtk_widget_is_sensitive() src/compat.h | 4 ++++ src/uimisc-gtk.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit a6a88bb4c2d879080a03fd0878b0d3e38c9a50d1 Author: Alberto Garcia Date: Thu Mar 24 22:22:22 2011 +0200 Use gtk_widget_set_tooltip_text() when possible configure.ac | 2 ++ src/compat.c | 18 ++++++++++++++++++ src/compat.h | 11 +++++++++++ src/vgl-main-window.c | 11 ++++------- 4 files changed, 35 insertions(+), 7 deletions(-) commit 91219fad5534f2adb1601143c3c9c30635571290 Author: Alberto Garcia Date: Wed Mar 23 02:02:02 2011 +0200 Replace all GDK_* keysyms by the new GDK_KEY_* macros src/compat.h | 19 +++++++++++++++++++ src/vgl-main-menu-gtk.c | 21 +++++++++++---------- src/vgl-main-menu-hildon22.c | 2 +- src/vgl-main-window.c | 30 +++++++++++++++--------------- 4 files changed, 46 insertions(+), 26 deletions(-) commit 14365d8ef342caaed48e6b84289bf6cdc83f55b5 Author: Alberto Garcia Date: Wed Mar 23 01:58:13 2011 +0200 Replace all direct accesses to GtkBin->child src/uimisc-gtk.c | 28 ++++++++++++++-------------- src/uimisc.c | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) commit 7e9e9c60f31060613d5f03b9bcf5bcd5d9265f84 Author: Alberto Garcia Date: Wed Mar 23 01:46:35 2011 +0200 Replace all direct accesses to GtkDialog->{vbox,action_area} configure.ac | 2 ++ src/compat.h | 7 ++++++ src/uimisc-gtk.c | 48 ++++++++++++++++++++++-------------------- src/uimisc-hildon22.c | 31 +++++++++++++++------------ src/uimisc.c | 15 +++++++------ src/vgl-bookmark-window.c | 5 +++-- src/vgl-main-menu-hildon22.c | 6 ++++-- 7 files changed, 68 insertions(+), 46 deletions(-) commit dbdbb43724285bfae12692f04c99fe3223c38688 Author: Alberto Garcia Date: Wed Mar 16 09:33:23 2011 +0200 Add support for low bitrate streams Fixes: https://bugs.maemo.org/show_bug.cgi?id=10905 src/controller.c | 10 ++++++++-- src/lastfm-ws.c | 4 +++- src/lastfm-ws.h | 1 + src/uimisc-gtk.c | 18 ++++++++++++++---- src/uimisc-hildon22.c | 11 ++++++++++- src/userconfig.c | 5 ++++- src/userconfig.h | 1 + 7 files changed, 41 insertions(+), 9 deletions(-) commit 5819a5514037004518db2a42c2f7c38ab030fabc Author: Serkan Kaba Date: Mon Mar 14 02:05:05 2011 +0200 Fix compilation with libnotify >= 0.7.0 Fixes: https://bugs.maemo.org/show_bug.cgi?id=12050 src/vgl-tray-icon.c | 7 +++++++ 1 file changed, 7 insertions(+) commit d5270d452756c76e81b9d229ea2e9b050162907b Author: Carles Muñoz Gorriz Date: Tue Jan 18 00:05:40 2011 +0100 Added Catalan translation Fixes: https://bugs.maemo.org/show_bug.cgi?id=11796 TRANSLATORS | 3 + po/LINGUAS | 1 + po/ca.po | 1094 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.c | 9 +- vagalume.spec | 2 + 5 files changed, 1105 insertions(+), 4 deletions(-) commit 6888c47ca7fa390c833a2af08c3c17fe82695f4d Author: Alberto Garcia Date: Sun Dec 26 20:41:18 2010 +0100 === Released Vagalume 0.8.4 === NEWS | 7 +++++++ configure.ac | 2 +- debian/changelog | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) commit eb388f2bd905c8ed844ea5516e70af728d58af6f Author: Alberto Garcia Date: Sun Dec 26 20:41:15 2010 +0100 Updated watch file debian/watch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 039201c007cf63710d4ad29c05a73754868a9dd8 Author: Alberto Garcia Date: Sun Dec 26 17:07:22 2010 +0100 Remove MAINTAINERCLEANFILES from Makefile.am Makefile.am | 28 ---------------------------- src/Makefile.am | 3 --- 2 files changed, 31 deletions(-) commit a43e535fe4056d57a4c6fb38da6392a8f4aa7de5 Author: Alberto Garcia Date: Sun Dec 26 16:55:45 2010 +0100 Configure EXTRA_DIST variables properly Makefile.am | 21 ++++++++++++++++++++- src/Makefile.am | 3 ++- 2 files changed, 22 insertions(+), 2 deletions(-) commit 47831b3425de0450ba1b351a6b8a6c9aa26cbebc Author: Alberto Garcia Date: Wed Nov 17 20:34:11 2010 +0100 Minor fix in Russian translation po/ru.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit e9e43e4aba9a6131146491682dbc2f9f1f7babfd Author: Vitaly Petrov Date: Wed Nov 17 19:30:42 2010 +0100 Updated Russian translation po/ru.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit b8a0b0cba8738bddad4778c17bb14dda32b097b6 Author: Marcos Garcia Date: Tue Nov 9 17:49:10 2010 +0100 Updated Portuguese translation po/pt.po | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) commit 32564f0fab11a5cdc827e027672c6ae9f6b01179 Author: Dawid Pakuła Date: Sun Nov 7 16:55:12 2010 +0100 Updated Polish translation po/pl.po | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) commit 7c85a89ca2f3630552d39c232f8109251da98114 Author: Janne Mäkinen Date: Fri Nov 5 18:51:53 2010 +0100 Updated Finnish translation po/fi.po | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) commit fc81df8a7e529c1265b0ba33f51592bd18615c74 Author: Alberto Garcia Date: Fri Nov 5 18:44:07 2010 +0100 Updated Spanish translation po/es.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit fb962f57208417e5dc484e064da8a1fe233247de Author: Andrea Grandi Date: Wed Nov 3 17:11:17 2010 +0100 Updated Italian translation po/it.po | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) commit eb90282f779a2b05b4a7289beb8792cb335c2c04 Author: Julien Duponchelle Date: Wed Nov 3 13:59:19 2010 +0100 Updated French translation po/fr.po | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) commit 84a19332a0b0445a5c07fbaca10dbb10b8bc9404 Author: Oskar Welzl Date: Wed Nov 3 11:05:02 2010 +0100 Updated German translation po/de.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit a8e459ca3715d6c1b0f6b7b3456cc6c42039243e Author: Amador Loureiro Blanco Date: Tue Nov 2 13:00:04 2010 +0100 Updated Galician translation po/gl.po | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) commit 12c63c7634f15bfeed5012ce582be6f051176354 Author: Alberto Garcia Date: Tue Nov 2 12:57:45 2010 +0100 Update vagalume.pot and all .po files po/de.po | 418 +++++++------- po/es.po | 1653 ++++++++++++++++++++++++++++--------------------------- po/fi.po | 353 ++++++------ po/fr.po | 443 ++++++++------- po/gl.po | 428 +++++++------- po/it.po | 353 ++++++------ po/lv.po | 353 ++++++------ po/pl.po | 421 +++++++------- po/pt.po | 353 ++++++------ po/pt_BR.po | 353 ++++++------ po/ru.po | 163 +++--- po/vagalume.pot | 353 ++++++------ 12 files changed, 2864 insertions(+), 2780 deletions(-) commit 174e194ee682ed5f97c1728b1f6b285b00481901 Author: Alberto Garcia Date: Tue Nov 2 11:29:51 2010 +0100 Update TODO TODO | 3 +++ 1 file changed, 3 insertions(+) commit b678c14b2292b63ba76aaf36147b8e4ca0fa1de2 Author: Alberto Garcia Date: Tue Nov 2 10:49:29 2010 +0100 Add tooltips to artist, track and album labels src/vgl-main-window.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit b43548fa1131878363fb691ec343416693639444 Author: Alberto Garcia Date: Sat Oct 30 16:49:38 2010 +0200 Add support for the new 'Mix' radio scripts/vagalumectl | 4 +++- src/radio.c | 4 +++- src/radio.h | 3 ++- src/vgl-main-menu-gtk.c | 14 ++++++++++++-- src/vgl-main-menu-hildon22.c | 20 +++++++++++++++----- vagalumectl.1 | 5 ++++- 6 files changed, 39 insertions(+), 11 deletions(-) commit cc8ac43263f8c5a85e535f10e2d3cbc09a50690b Author: Alberto Garcia Date: Fri Aug 20 19:39:16 2010 +0200 Use xmlFreeDoc() to free an xmlDoc * src/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b8dfa9a17930ea43a3b8417936caf675d9801b1d Author: Alberto Garcia Date: Tue Jul 20 18:27:35 2010 +0200 Add desktop widget to the TODO list TODO | 1 + 1 file changed, 1 insertion(+) commit b193fb6703e4dae2e598f8083c7168abf02dc2ba Author: Alberto Garcia Date: Fri Jul 9 13:35:11 2010 +0100 Read the error code from the Last.fm response and look for auth errors Fixes: #10889 (Display a better error message when password is wrong) src/lastfm-ws.c | 57 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 18 deletions(-) commit 20aabf2da683099299c4511c39283be59b457705 Author: Dawid Pakuła Date: Fri Jun 18 11:37:47 2010 +0200 Updated Polish translation po/pl.po | 251 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 137 insertions(+), 114 deletions(-) commit 342a5d9e2b5730a26d6d89bfabbc3a790073d180 Author: Alberto Garcia Date: Fri Jun 11 17:37:10 2010 +0200 Add keyboard shortcuts for all common actions to the Maemo 5 version Fixes: #10429 (Shortcuts not working in n900) src/vgl-main-menu-hildon22.c | 5 ++++- src/vgl-main-window.c | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) commit c73fd9dcd0b764bd8d033ded1a183dff3fc315ac Author: Ricardo Mones Date: Tue May 4 00:06:20 2010 +0100 Updated Spanish translation TRANSLATORS | 1 + po/es.po | 1672 ++++++++++++++++++++++++++++------------------------------ src/uimisc.c | 3 +- 3 files changed, 818 insertions(+), 858 deletions(-) commit 6b437ffedb30ed4b9aeee859ca47ed31e9abd8e4 Author: Michel Alexandre Salim Date: Sun Mar 28 15:05:41 2010 +0200 Fix dead assignment to local variable 'artist' When track artist is overridden by album artist, the intention is to use the new value, not track->artist, in the submitted query src/lastfm-ws.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 602e3f5f1d34beebfa195b27e20f542c97ba7d11 Author: Alberto Garcia Date: Wed Feb 17 00:11:41 2010 +0000 Improve the detection of when to fall back to the old Last.fm API Instead of falling back only when there's an error setting a radio station, do it also when there's an error retrieving a playlist. In both cases, don't do anything if the user is a subscriber. Fixes: #8975 (In country USA selecting "play" results in error message) src/lastfm-ws.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit a7ae8b4fa64adb47f266d5aab09cb2b5516e82b2 Author: Alberto Garcia Date: Sat Feb 13 00:17:37 2010 +0100 Added Russian translation (by Sergei Ivanov and Vitaly Petrov) TRANSLATORS | 4 + po/LINGUAS | 1 + po/ru.po | 1067 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.c | 7 +- 4 files changed, 1077 insertions(+), 2 deletions(-) commit 86e3756d985840a629df17106dcaae3ec3b04144 Author: Alberto Garcia Date: Wed Feb 10 17:39:56 2010 +0100 Set a title to the Hildon 2.2 bookmarks dialog src/vgl-main-menu-hildon22.c | 1 + 1 file changed, 1 insertion(+) commit bef7d3870de913764a17345d721e35f5fe97ca0a Author: Alberto Garcia Date: Mon Feb 8 12:50:39 2010 +0100 Hack to make HildonTouchSelectorEntry work with empty lists In libhildon1 < 2.2.5 the 'done' button in HildonTouchSelectorEntry doesn't work if the tree model is empty. Fixes: #8882 (Music Tagged feature not working) src/uimisc-hildon22.c | 10 ++++++++-- src/vgl-main-menu-hildon22.c | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) commit 953bdc9e15ff84b4fdf133bb98578d64176d6db2 Author: Alberto Garcia Date: Sat Feb 6 14:51:13 2010 +0100 Update copyright year in about dialog src/uimisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 15348608cbd4f7a09138f7ccf3227d4c4f56a8cc Author: Marcos Garcia Date: Sat Feb 6 14:44:50 2010 +0100 Updated Portuguese translation po/pt.po | 89 +++++++++++++++++++++++++------------------------------------- 1 file changed, 36 insertions(+), 53 deletions(-) commit b8e51e2a6a1fe7455b459f422c192ecd9ee50fe0 Author: Alberto Garcia Date: Fri Feb 5 23:09:20 2010 +0100 === Released Vagalume 0.8.3 === NEWS | 4 ++++ configure.ac | 2 +- debian/changelog | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) commit a0b21082a94ed7daa88b426b991f868899bcc812 Author: Alberto Garcia Date: Fri Feb 5 23:05:36 2010 +0100 Remove the old ChangeLog file ChangeLog.1 | 6026 ----------------------------------------------------------- 1 file changed, 6026 deletions(-) commit 04a352c033d027fcf8487949066a80158ed736be Author: Pēteris Caune Date: Fri Feb 5 22:59:57 2010 +0100 Updated Latvian translation po/lv.po | 85 +++++++++++++++++++++++++------------------------------------- 1 file changed, 34 insertions(+), 51 deletions(-) commit a9b76c29aca98b9e17d68fdb92576b62a27a5dd3 Author: Julien Duponchelle Date: Thu Feb 4 12:11:02 2010 +0100 Updated French translation po/fr.po | 259 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 135 insertions(+), 124 deletions(-) commit 9547fd9cb94b7b654590c5064238ad065226afe2 Author: Alberto Garcia Date: Wed Feb 3 21:02:09 2010 +0100 Update copyrights README | 6 +++++- debian/copyright | 6 +++--- src/Makefile.am | 2 +- src/audio.c | 2 +- src/controller.c | 2 +- src/controller.h | 2 +- src/globaldefs.h | 2 +- src/main.c | 2 +- src/uimisc-gtk.c | 2 +- src/uimisc-hildon22.c | 2 +- src/uimisc.c | 2 +- src/uimisc.h | 2 +- src/userconfig.c | 2 +- src/vgl-bookmark-window.c | 2 +- src/vgl-main-menu-gtk.c | 2 +- src/vgl-main-menu-hildon22.c | 2 +- src/vgl-main-menu.h | 2 +- src/vgl-main-window.c | 2 +- src/vgl-object.c | 2 +- src/vgl-object.h | 2 +- 20 files changed, 26 insertions(+), 22 deletions(-) commit 3334066331bf475a4ad5a6e050f5b37dd3faf1a0 Author: Alberto Garcia Date: Wed Feb 3 20:18:50 2010 +0100 Minor Portuguese translation update po/pt.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 210eac55623d54877a922c914db248f93a66f30d Author: Alberto Garcia Date: Wed Feb 3 19:47:43 2010 +0100 Fix compilation problems src/audio.c | 2 ++ src/controller.c | 1 + src/uimisc-gtk.c | 2 ++ src/uimisc.c | 2 +- src/userconfig.c | 1 + src/vgl-object.c | 4 ++-- 6 files changed, 9 insertions(+), 3 deletions(-) commit ff06a75c7cbb6679f5fe7aa7ef519cb898959bbd Author: Alberto Garcia Date: Wed Feb 3 18:00:22 2010 +0100 Updated package description and added Homepage field debian/changelog | 9 +++++++++ debian/control | 4 +--- debian/control.maemo2 | 6 +++--- debian/control.maemo3 | 6 +++--- debian/control.maemo4 | 5 ++--- debian/control.maemo5 | 9 +++------ 6 files changed, 21 insertions(+), 18 deletions(-) commit 49aba021dfe50ea1cf4b218cc20852f70f434702 Author: Alberto Garcia Date: Wed Feb 3 01:06:49 2010 +0100 Updated Debian control files for Maemo 4 and 5 Added the Bugtracker, Maemo-Display-Name, and Description-de_DE fields. German translation by Oskar Welzl debian/control.maemo4 | 2 ++ debian/control.maemo5 | 20 ++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) commit 5890e6a5c144b929d61715c9ddc1c86f11b4a5ac Author: Oskar Welzl Date: Wed Feb 3 00:43:06 2010 +0100 Updated German translation po/de.po | 248 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 135 insertions(+), 113 deletions(-) commit 1f67c1cece9d866cdae488ac5a6e98a525711b32 Author: Andrea Grandi Date: Tue Feb 2 19:12:02 2010 +0100 Updated Italian translation po/it.po | 84 +++++++++++++++++++++++++------------------------------------- 1 file changed, 34 insertions(+), 50 deletions(-) commit e92999308302bfb10ef715b139cff3f738ad8d2f Author: Amador Loureiro Blanco Date: Tue Feb 2 19:10:06 2010 +0100 Updated Galician translation po/gl.po | 259 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 139 insertions(+), 120 deletions(-) commit d1d3c97ccf213a78372e0c74fc5950aff97d6b18 Author: Alberto Garcia Date: Tue Feb 2 13:51:23 2010 +0100 Fix translation strings po/de.po | 15 ++--- po/es.po | 15 ++--- po/fi.po | 168 ++++++++++++++++++----------------------------- po/fr.po | 15 ++--- po/gl.po | 15 ++--- po/it.po | 15 ++--- po/lv.po | 15 ++--- po/pl.po | 15 ++--- po/pt.po | 15 ++--- po/pt_BR.po | 15 ++--- po/vagalume.pot | 10 +-- src/uimisc-hildon22.c | 2 +- src/vgl-main-menu-gtk.c | 2 +- 13 files changed, 133 insertions(+), 184 deletions(-) commit 0e67c8fdc6a6d2163e7b3e6a816b30d59d11c53e Author: Janne Mäkinen Date: Tue Feb 2 13:48:54 2010 +0100 Updated Finnish translation po/fi.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit ad977a304969e789859c3382b857b26d9d80d017 Author: Janne Mäkinen Date: Tue Feb 2 13:22:34 2010 +0100 Updated Finnish translation po/fi.po | 242 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 131 insertions(+), 111 deletions(-) commit ad63a3677f874a989912595dbbb9626007c62b69 Author: Alberto Garcia Date: Tue Feb 2 12:01:54 2010 +0100 Update vagalume.pot and all .po files po/de.po | 775 +++++++++++++++++++++++++++------------------- po/es.po | 773 +++++++++++++++++++++++++++------------------- po/fi.po | 801 ++++++++++++++++++++++++++++------------------- po/fr.po | 822 +++++++++++++++++++++++++++++-------------------- po/gl.po | 809 ++++++++++++++++++++++++++++-------------------- po/it.po | 773 +++++++++++++++++++++++++++------------------- po/lv.po | 773 +++++++++++++++++++++++++++------------------- po/pl.po | 800 +++++++++++++++++++++++++++-------------------- po/pt.po | 781 +++++++++++++++++++++++++++------------------- po/pt_BR.po | 780 +++++++++++++++++++++++++++------------------- po/vagalume.pot | 684 +++++++++++++++++++++++----------------- src/uimisc-hildon22.c | 1 + 12 files changed, 5112 insertions(+), 3460 deletions(-) commit 1ca20ffffa3e7a3536deb0f2b0ddfccd0027f749 Author: Alberto Garcia Date: Mon Feb 1 11:29:17 2010 +0100 New config variable to decide whether to enable the volume key handler configure.ac | 7 +++++++ src/vgl-main-window.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) commit 66751e4a72538880b6d74a34c4e3aaa9af44524f Author: Alberto Garcia Date: Mon Feb 1 11:05:03 2010 +0100 Use the Gtk version to decide whether to set GtkAboutDialog:program-name configure.ac | 2 ++ src/uimisc.c | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) commit ff8fbac2b9b0608147fe3cdb77665fef8bec51c4 Author: Alberto Garcia Date: Sun Jan 31 14:33:41 2010 +0100 Show only the selected rows in the Hildon 2.2 IM selector button The "Disabled" row was being highlighted by default in usercfg_create_im_selector(). This patch clears the selection before deciding which ones to select. src/uimisc-hildon22.c | 1 + 1 file changed, 1 insertion(+) commit 491d3e65b5df68fee2d775f08592b506b2e1ca97 Author: Alberto Garcia Date: Fri Jan 29 21:52:48 2010 +0100 Set GtkAboutDialog:program-name to APP_NAME in Maemo 5 This is necessary since the 'name' property is no longer valid in Gtk 2.12 and the hack used to play music in silent mode (3cfd612) changes the app name to "FMRadio" src/uimisc.c | 3 +++ 1 file changed, 3 insertions(+) commit 3cfd61238845285622bf2e5157145d06f159d27a Author: Alberto Garcia Date: Fri Jan 29 18:28:53 2010 +0100 Hack to play music while in silent mode (N900) src/main.c | 2 ++ 1 file changed, 2 insertions(+) commit 54763eb55837c4445ab424f25b942a5574c9f85f Author: Alberto Garcia Date: Fri Jan 29 12:29:43 2010 +0100 Disable cast checks by default configure.ac | 10 ++++++++++ src/vgl-object.c | 10 ++++++++++ src/vgl-object.h | 2 ++ 3 files changed, 22 insertions(+) commit 8e7894a0b5b50b1122afd632d5c3cfb65536de93 Author: Alberto Garcia Date: Fri Jan 29 01:10:30 2010 +0100 Make the entry in the "Stop after" dialog accept only numbers src/uimisc.c | 3 +++ 1 file changed, 3 insertions(+) commit 04cc8a51734ce606c1e3a36c8148a1e6d9da1cf2 Author: Alberto Garcia Date: Sun Jan 24 19:20:19 2010 +0100 Hildon2.2 versions of all misc UI functions and dialogs po/POTFILES.in | 2 + src/Makefile.am | 4 +- src/uimisc-gtk.c | 1138 ++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc-hildon22.c | 1015 +++++++++++++++++++++++++++++++++++++++++++ src/uimisc.c | 1153 +------------------------------------------------ src/uimisc.h | 23 + 6 files changed, 2196 insertions(+), 1139 deletions(-) commit 925e6b4d6eedf9521725150638d21f4c26a5e72b Author: Alberto Garcia Date: Sun Jan 24 19:14:42 2010 +0100 New VglMainMenu class, with a new Hildon 2.2 application menu configure.ac | 2 + po/POTFILES.in | 2 + src/Makefile.am | 7 + src/controller.c | 10 + src/controller.h | 3 + src/vgl-main-menu-gtk.c | 464 ++++++++++++++++++++++++++++++++++++++ src/vgl-main-menu-hildon22.c | 457 ++++++++++++++++++++++++++++++++++++++ src/vgl-main-menu.h | 56 +++++ src/vgl-main-window.c | 503 ++---------------------------------------- 9 files changed, 1020 insertions(+), 484 deletions(-) commit 5a7301ff62dc4771f12bb772f3c2029feccec163 Author: Alberto Garcia Date: Sun Jan 24 18:43:38 2010 +0100 Add Hildon 2.2 style to the bookmark window src/globaldefs.h | 4 ++++ src/vgl-bookmark-window.c | 24 ++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) commit 40f645fc000229aaace13357b333c6e90c18a821 Author: Alberto Garcia Date: Sun Jan 24 17:46:03 2010 +0100 Added controller_play_others_radio_by_user() src/controller.c | 40 ++++++++++++++++++++++++++++++++++++++++ src/controller.h | 4 ++++ 2 files changed, 44 insertions(+) commit a31d391d5eb6b39d842baed4fca631e703c9b11f Author: Alberto Garcia Date: Sat Jan 23 18:07:39 2010 +0100 Disable GIO support in Maemo 5 configure.ac | 3 +++ 1 file changed, 3 insertions(+) commit 87f914e17721fc0af7aa020974f2a086e9e4324b Author: Alberto Garcia Date: Sun Jan 24 19:33:02 2010 +0100 Remove the ChangeLog file for good ChangeLog | 6027 +---------------------------------------------------------- ChangeLog.1 | 6026 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 6027 insertions(+), 6026 deletions(-) commit 07cc8999ed1a90230d842d35e0733a3e421c6726 Author: Alberto Garcia Date: Mon Dec 21 14:24:32 2009 +0100 === Released Vagalume 0.8.2 === ChangeLog | 4 ++++ NEWS | 4 ++++ configure.ac | 2 +- debian/changelog | 6 ++++++ 4 files changed, 15 insertions(+), 1 deletion(-) commit 33a234f5587eb0723d62b8fc0dda3e6aed54040d Author: Alberto Garcia Date: Mon Dec 21 14:14:52 2009 +0100 Create symlinks under /usr/bin in Maemo 5 ChangeLog | 5 +++++ Makefile.am | 4 ++++ 2 files changed, 9 insertions(+) commit 7b1a3c3404f5f3378169bdb4ef6c0523c5bcd7b8 Author: Alberto Garcia Date: Mon Dec 21 13:56:16 2009 +0100 Optify the locale directory in Maemo 5 ChangeLog | 5 +++++ configure.ac | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) commit 3c61dadc1893010304b69548b89754beffa17c68 Author: Alberto Garcia Date: Sat Dec 19 16:00:18 2009 +0100 Optify the bin directory in Maemo 5 ChangeLog | 5 +++++ configure.ac | 1 + 2 files changed, 6 insertions(+) commit 2537bc5529d9ba2ac4949da16ef10430b88d026e Author: Alberto Garcia Date: Sat Dec 19 15:45:37 2009 +0100 Convert the user name to lowercase when creating a new session ChangeLog | 5 +++++ src/lastfm-ws.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) commit 53371b8577d8c8d3c6c4927c4673666c75d639cb Author: Alberto Garcia Date: Wed Dec 16 14:00:47 2009 +0100 === Released Vagalume 0.8.1 === ChangeLog | 4 ++++ NEWS | 4 ++++ configure.ac | 2 +- debian/changelog | 6 ++++++ 4 files changed, 15 insertions(+), 1 deletion(-) commit eabc41d7cefabea8c09c316c69ac4165d5adb4c9 Author: Alberto Garcia Date: Wed Dec 16 13:06:32 2009 +0100 Install data files in /opt in the N900, since the rootfs is quite small Fixes #4900 (N900: Vagalume 0.8 uses to much space in root partition, not using /opt) ChangeLog | 7 +++++++ configure.ac | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) commit 692f139004cd7e545207a199aba2a324ba58f453 Author: Alberto Garcia Date: Tue Dec 15 16:29:32 2009 +0100 Fall back to the old streaming API if the new one doesn't work ChangeLog | 5 +++++ src/lastfm-ws.c | 6 ++++++ 2 files changed, 11 insertions(+) commit 73b08c06ec0832629dfef4c22352ebf5c65bc75d Author: Alberto Garcia Date: Mon Dec 14 00:48:36 2009 +0100 Add 'New upstream release' to debian/changelog debian/changelog | 1 + 1 file changed, 1 insertion(+) commit 609bae9e9109cc8e5363a3fecb5a83885424659a Author: Alberto Garcia Date: Sun Dec 13 23:42:06 2009 +0100 === Released Vagalume 0.8 === ChangeLog | 4 ++++ debian/changelog | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 4d22ab469b75dd2246489229d787cd4b2981281d Author: Alberto Garcia Date: Sun Dec 13 23:00:05 2009 +0100 Fix compilation warnings ChangeLog | 6 ++++++ src/compat.c | 2 ++ src/dlwin.c | 5 +++-- src/protocol.c | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) commit 11ff96e9073e15cb91475fae4679cf4e08c7dc80 Author: Alberto Garcia Date: Sun Dec 13 22:48:23 2009 +0100 Include gnome.mk from CDBS ChangeLog | 4 ++++ debian/rules | 1 + 2 files changed, 5 insertions(+) commit 93350f0569fcef49c29a511600d66de86183a406 Author: Alberto Garcia Date: Sun Dec 13 22:34:49 2009 +0100 Minor translation fixes ChangeLog | 5 +++++ po/gl.po | 4 ++-- po/pt.po | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) commit 98fed0d45579837f3e65f450d16aed78164a569a Author: Alberto Garcia Date: Sun Dec 13 20:32:42 2009 +0100 New menu entry to import a config file with server info ChangeLog | 9 +++ src/controller.c | 36 +++++++++ src/controller.h | 3 + src/uimisc.c | 51 +++++++++---- src/uimisc.h | 3 + src/userconfig.c | 2 +- src/vgl-main-window.c | 13 +++- src/vgl-server.c | 193 +++++++++++++++++++++++++++++++++---------------- src/vgl-server.h | 19 ++--- 9 files changed, 238 insertions(+), 91 deletions(-) commit 1e999c4413dd895a46a9da62f210c12712c295c3 Author: Alberto Garcia Date: Sun Dec 13 20:41:28 2009 +0100 Use 'Vagalume' in the 'Name' field of vagalume.desktop in Maemo 5 ChangeLog | 7 +++++++ Makefile.am | 6 ++++++ configure.ac | 1 + 3 files changed, 14 insertions(+) commit c27b8449a4a72ad8173b43751c53d4edb83a1cbb Author: Alberto Garcia Date: Sun Dec 13 20:04:33 2009 +0100 Increase HTTP timeout ChangeLog | 4 ++++ src/http.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit f66241770b293947dee947a7678a3e0de726da28 Author: Alberto Garcia Date: Sun Dec 13 18:11:06 2009 +0100 Removed unused flush_ui_events() function ChangeLog | 5 +++++ src/uimisc.c | 6 ------ src/uimisc.h | 3 --- 3 files changed, 5 insertions(+), 9 deletions(-) commit f208d48653e86b8c8f8e9cf6694db73f7288982a Author: Alberto Garcia Date: Fri Dec 11 01:47:48 2009 +0100 Update control files to use the new Vagalume icon ChangeLog | 5 +++++ debian/control.maemo2 | 41 +++++++++++++++++++++-------------------- debian/control.maemo3 | 41 +++++++++++++++++++++-------------------- debian/control.maemo4 | 41 +++++++++++++++++++++-------------------- debian/control.maemo5 | 41 +++++++++++++++++++++-------------------- 5 files changed, 89 insertions(+), 80 deletions(-) commit 8450bf80862c92691bb0140b8c7f22b8ce2a3837 Author: Alberto Garcia Date: Fri Dec 11 01:08:27 2009 +0100 Updated NEWS, configure.ac and debian/changelog for the v0.8 release ChangeLog | 6 ++++++ NEWS | 19 +++++++++++++++++++ configure.ac | 2 +- debian/changelog | 4 ++-- 4 files changed, 28 insertions(+), 3 deletions(-) commit 45e173f1ff08749fda70cfed715e4e6572a43bd3 Author: Otto Krüja Date: Thu Dec 10 20:26:40 2009 +0100 Make the corners of the Vagalume icon rounded ChangeLog | 5 + data/icons/26x26/vagalume.png | Bin 1200 -> 1257 bytes data/icons/48x48/vagalume.png | Bin 2987 -> 3231 bytes data/icons/scalable/vagalume.png | Bin 3044 -> 3318 bytes data/icons/vagalume.svg | 136 ++++++++++++++----- data/icons/vagalume.xpm | 269 ++++++++++++++++++++------------------ 6 files changed, 245 insertions(+), 165 deletions(-) commit 9b8c8b92074a121ac1c9a707df90461f18e2e38f Author: Alberto Garcia Date: Thu Dec 3 20:14:56 2009 +0100 Call hildon_gtk_init() in Maemo 5 ChangeLog | 4 ++++ src/main.c | 8 ++++++++ 2 files changed, 12 insertions(+) commit 11243199fe0cd2d43292d800352c54d7e230f930 Author: Amador Loureiro Blanco Date: Fri Nov 20 13:01:40 2009 +0100 Updated Galician translation ChangeLog | 4 + po/gl.po | 259 +++++++++++++++++++++++++++++-------------------------------- 2 files changed, 128 insertions(+), 135 deletions(-) commit e76bff4128c03394814aa4ac24d1dd7a1f74f644 Author: Alberto Garcia Date: Wed Nov 18 21:00:18 2009 +0100 Add a border to the contents of the main window excluding the menu bar ChangeLog | 6 ++++++ src/vgl-main-window.c | 21 ++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) commit ee75344df1b162f1640b27d06a6150306187918d Author: Alberto Garcia Date: Wed Nov 18 03:15:22 2009 +0100 Change method use to compute the number of failed tracks ChangeLog | 5 +++++ src/audio.c | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) commit da173785c48cb9839176657cb23b8f360b935778 Author: Alberto Garcia Date: Wed Nov 18 03:11:43 2009 +0100 Set a connection timeout to all HTTP calls ChangeLog | 7 +++++++ src/http.c | 35 ++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 17 deletions(-) commit 5e5928f2c3b0bb5692e4c2f18042d95dfa9279e1 Author: Alberto Garcia Date: Wed Nov 18 01:34:48 2009 +0100 Remove unneeded calls to g_signal_handlers_destroy() That function is already called by g_object_unref() among others ChangeLog | 7 +++++++ src/vgl-bookmark-mgr.c | 1 - src/vgl-bookmark-window.c | 1 - src/vgl-main-window.c | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) commit 7c5cd0e372ebd07340aee74336c312579074d36c Author: Janne Mäkinen Date: Tue Nov 17 17:50:10 2009 +0100 Updated Finnish translation ChangeLog | 4 ++ po/fi.po | 141 ++++++++++++++++++++++++++++--------------------------------- 2 files changed, 69 insertions(+), 76 deletions(-) commit fc0da3140c8408f92a3af545e47807c18067d602 Author: Alberto Garcia Date: Mon Nov 16 20:09:11 2009 +0100 Updated package description in Debian control files ChangeLog | 6 ++++++ debian/changelog | 1 + debian/control | 2 +- debian/control.maemo2 | 2 +- debian/control.maemo3 | 2 +- debian/control.maemo4 | 2 +- debian/control.maemo5 | 2 +- 7 files changed, 12 insertions(+), 5 deletions(-) commit cf1cfae92f78ad40849e624bc94a11c54f2e0261 Author: Alberto Garcia Date: Sun Nov 15 22:23:52 2009 +0100 New CD case image to place the album cover artwork Image designed by Otto Krüja ChangeLog | 11 + data/cover/1024x600/cover.png | Bin 9928 -> 42859 bytes data/cover/800x480/cover.png | Bin 6577 -> 38132 bytes data/cover/cover.svg | 1311 +++++++++++++++++++++++++++++++++++++++++ data/cover/desktop/cover.png | Bin 3698 -> 16427 bytes src/vgl-main-window.c | 24 +- 6 files changed, 1336 insertions(+), 10 deletions(-) commit 4ce7776434134f4d158290db1745895278bf1c6c Author: Alberto Garcia Date: Sun Nov 15 20:39:53 2009 +0100 Remove old copyright line ChangeLog | 5 +++++ src/vgl-main-window.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) commit b59d382354ae02fdb5259b4724c15380268d37a9 Author: Otto Krüja Date: Sun Nov 15 20:17:15 2009 +0100 New Vagalume icon AUTHORS | 5 +- ChangeLog | 10 + data/icons/26x26/vagalume.png | Bin 1628 -> 1200 bytes data/icons/48x48/vagalume.png | Bin 4021 -> 2987 bytes data/icons/scalable/vagalume.png | Bin 4130 -> 3044 bytes data/icons/vagalume.svg | 370 ++++++++++++++++++++++++++++++++ data/icons/vagalume.xpm | 430 ++++++++++++++------------------------ debian/control.maemo2 | 51 ++--- debian/control.maemo3 | 51 ++--- debian/control.maemo4 | 51 ++--- debian/control.maemo5 | 51 ++--- src/uimisc.c | 2 +- 12 files changed, 630 insertions(+), 391 deletions(-) commit 1cc7a66359ea195f637f93d46a4252b1dcef6a33 Author: Alberto Garcia Date: Tue Nov 3 15:57:59 2009 +0100 Maemo 5: make the progress bar smaller and the border thicker ChangeLog | 5 +++++ src/vgl-main-window.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) commit 40035a7085344dbaed5b8887db4d6b98d2264772 Author: Alberto Garcia Date: Tue Nov 3 15:23:29 2009 +0100 Install small icons under icons/hicolor/scalable/apps in Maemo 5 ChangeLog | 6 ++++++ Makefile.am | 6 ++---- configure.ac | 8 +++++++- 3 files changed, 15 insertions(+), 5 deletions(-) commit ac6f4a3b3711efc1c9eeaf0156a3d2287834653e Author: Alberto Garcia Date: Tue Nov 3 00:23:36 2009 +0100 Added control file for Maemo 5 ChangeLog | 6 ++++++ build-package.sh | 6 +++++- debian/control.maemo5 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) commit 277f706a0fe1c60fe54b3a4f99dba4db8abb6be0 Author: Alberto Garcia Date: Sun Nov 1 20:51:19 2009 +0100 Drop support for libgcrypt Computing of MD5 sums using libgcrypt has been dropped, since all recent (>= 2.16) GLib versions come with MD5 support using GChecksum. For older systems, the built-in implementation available in md5/md5.c is used. ChangeLog | 6 ++++++ configure.ac | 48 ++++++++---------------------------------------- src/util.c | 10 +--------- 3 files changed, 15 insertions(+), 49 deletions(-) commit 88a12a64167c7b90fcfd0cec1e8ef8875f0a10a0 Author: Alberto Garcia Date: Fri Oct 30 19:40:14 2009 +0100 Fix typo src/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 449e9ff1c40ce8d1bea8cf9db91b1927772773a6 Author: Alberto Garcia Date: Fri Oct 30 18:53:47 2009 +0100 Set GStreamer elements to play MP3 in Maemo 5 ChangeLog | 5 +++++ src/audio.c | 4 ++++ 2 files changed, 9 insertions(+) commit 2694202fe009b423c22a242ce21f0f22eacc9053 Author: Alberto Garcia Date: Fri Oct 30 18:04:50 2009 +0100 Disable the Maemo status bar plugin in Maemo 5 ChangeLog | 5 +++++ configure.ac | 55 ++++++++++++++++++++++++++++++------------------------- 2 files changed, 35 insertions(+), 25 deletions(-) commit 752e5fb24ff3b167c00c50adfb6622c3ad885fff Author: Alberto Garcia Date: Sat Oct 24 18:49:05 2009 +0200 Disable the Last.fm server in Maemo 5 Since May 2009, Last.fm doesn't allow streaming music to mobile phones: http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/517212/_/8966064 ChangeLog | 7 +++++++ Makefile.am | 10 ++++++++++ configure.ac | 2 ++ data/servers.xml | 48 ------------------------------------------------ data/servers.xml.in | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 48 deletions(-) commit 232208b763d7a7a323ae454a7da36364609572b4 Author: Alberto Garcia Date: Sat Oct 24 18:20:11 2009 +0200 Read the list of servers from a config file Now Vagalume reads servers.xml in ~/.vagalume and /usr/share/vagalume in order to obtain the list of servers it can connect to. ChangeLog | 11 ++++ Makefile.am | 2 +- data/servers.xml | 48 ++++++++++++++++ src/controller.c | 9 ++- src/vgl-server.c | 160 ++++++++++++++++++++++++++++++++++-------------------- src/vgl-server.h | 2 +- 6 files changed, 168 insertions(+), 64 deletions(-) commit 82990e112fb914b3560af1a0fd0b448ac60d5650 Author: Andrea Grandi Date: Sat Oct 24 17:41:48 2009 +0200 Updated Italian translation ChangeLog | 4 +++ po/it.po | 103 +++++++++++++++++++++++++++---------------------------------- 2 files changed, 50 insertions(+), 57 deletions(-) commit a7e5cdba032e8fdc7070e417983b8e8f084ce221 Author: Alberto Garcia Date: Thu Oct 22 01:52:09 2009 +0200 Settings dialog: change position of 'Help' button in Maemo 5 ChangeLog | 5 +++++ src/uimisc.c | 5 +++++ 2 files changed, 10 insertions(+) commit c290dd2493e7f00a51b9b3616b8a8ca8c3ae31f6 Author: Rodrigo Flores Date: Thu Oct 15 20:39:33 2009 +0200 Updated Portuguese (Brazilian) translation ChangeLog | 4 ++ po/pt_BR.po | 131 +++++++++++++++++++++++++++-------------------------------- 2 files changed, 64 insertions(+), 71 deletions(-) commit ce011023b45161ffc4d8d0b51018a17185a52956 Author: Marcos Garcia Date: Thu Oct 15 20:39:26 2009 +0200 Updated Portuguese translation ChangeLog | 4 +++ po/pt.po | 111 ++++++++++++++++++++++++++++--------------------------------- 2 files changed, 54 insertions(+), 61 deletions(-) commit 8d16dac3202b9e51218da2f7f85a781df4d2d80e Author: Julien Duponchelle Date: Thu Oct 15 20:39:15 2009 +0200 Updated French translation ChangeLog | 4 ++ po/fr.po | 169 +++++++++++++++++++++++++++---------------------------------- 2 files changed, 79 insertions(+), 94 deletions(-) commit f0dc95c3963f88dededad08f358c03a1150a2863 Author: Alberto Garcia Date: Thu Oct 15 20:39:06 2009 +0200 Detect Maemo 5 in configure.ac ChangeLog | 5 +++++ configure.ac | 16 +++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) commit 1a5c3018a92481b12ecd9067d6c99c9a5a4aada7 Author: Alberto Garcia Date: Thu Oct 15 20:38:57 2009 +0200 Use #ifdef HAVE_DSPMP3SINK rather than #ifdef MAEMO in audio.c ChangeLog | 6 ++++++ configure.ac | 4 ++++ src/audio.c | 14 +++++++------- 3 files changed, 17 insertions(+), 7 deletions(-) commit 7d8f53bbe7fe8059912830000c4c654e7dbcc40b Author: Pēteris Caune Date: Tue Oct 6 01:09:12 2009 +0200 Updated Latvian translation ChangeLog | 4 +++ po/lv.po | 105 +++++++++++++++++++++++++++---------------------------------- 2 files changed, 51 insertions(+), 58 deletions(-) commit 47632c317f8f5086ac397ee6c41a814e2574c544 Author: Oskar Welzl Date: Mon Oct 5 13:42:23 2009 +0200 Updated German translation ChangeLog | 4 ++ po/de.po | 133 ++++++++++++++++++++++++++++--------------------------------- 2 files changed, 65 insertions(+), 72 deletions(-) commit a5095305ba888ef02a507ee1fdda3f37bd4f8473 Author: Dawid Pakuła Date: Mon Oct 5 13:35:55 2009 +0200 Updated Polish translation ChangeLog | 4 ++ po/pl.po | 154 +++++++++++++++++++++++++++++-------------------------------- 2 files changed, 76 insertions(+), 82 deletions(-) commit a527777a02b8d39e393879550cdda2dd300702f1 Author: Alberto Garcia Date: Fri Oct 2 19:12:30 2009 +0200 Updated .po files po/de.po | 612 +++++++++++++++++++++++++++++++--------------------- po/es.po | 612 +++++++++++++++++++++++++++++++--------------------- po/fi.po | 612 +++++++++++++++++++++++++++++++--------------------- po/fr.po | 628 +++++++++++++++++++++++++++++++---------------------- po/gl.po | 612 +++++++++++++++++++++++++++++++--------------------- po/it.po | 612 +++++++++++++++++++++++++++++++--------------------- po/lv.po | 612 +++++++++++++++++++++++++++++++--------------------- po/pl.po | 646 ++++++++++++++++++++++++++++++++----------------------- po/pt.po | 612 +++++++++++++++++++++++++++++++--------------------- po/pt_BR.po | 612 +++++++++++++++++++++++++++++++--------------------- po/vagalume.pot | 578 ++++++++++++++++++++++++++++--------------------- 11 files changed, 3988 insertions(+), 2760 deletions(-) commit 73ad97d3b877f59787988e7aaa5d5c26b0293dd8 Author: Alberto Garcia Date: Fri Oct 2 14:08:39 2009 +0200 Updated TODO TODO | 1 + 1 file changed, 1 insertion(+) commit 61fdac3f267325025b88ec0d9b255d56e1263d5d Author: Alberto Garcia Date: Thu Oct 1 17:03:07 2009 +0200 Encoding fixes ChangeLog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit fe72c522350d4d37d9796e3fb1b45007c7890ef7 Author: Víctor Manuel Jáquez Leal Date: Thu Oct 1 17:02:56 2009 +0200 Make refcount volatile to avoid strange compiler optimizations ChangeLog | 5 +++++ src/vgl-object.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit 75e95e9d3b05348840d8c6d81f40eeca7925bd39 Author: Alberto Garcia Date: Tue Sep 29 18:38:33 2009 +0200 Identify servers that only stream freely downloadable music ChangeLog | 20 ++++++++++++++++++++ src/lastfm-ws.c | 6 ++++-- src/protocol.c | 25 ++++++++++++++++++------- src/protocol.h | 9 ++++++--- src/vgl-server.c | 16 +++++++++++----- src/vgl-server.h | 4 +++- 6 files changed, 62 insertions(+), 18 deletions(-) commit 11560bd784669d5a63a488c9f83e787f59a95e99 Author: Alberto Garcia Date: Tue Sep 29 17:48:08 2009 +0200 Change the Jamendo stream URLs to MP3 when the playlist is being parsed ChangeLog | 7 +++++++ src/audio.c | 5 +---- src/protocol.c | 11 +++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) commit 9b7d7650890a80b9dd3fdba7c7277829bc2661cb Author: Alberto Garcia Date: Tue Sep 29 17:47:23 2009 +0200 Add idle handler before calling get_user_extradata() ChangeLog | 5 +++++ src/controller.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) commit 91b5248f012ed9949035a45742fa5d8bfd69d66a Author: Alberto Garcia Date: Sat Sep 19 07:37:34 2009 +0200 Make sure that a string is NULL-terminated in the download window ChangeLog | 6 ++++++ src/dlwin.c | 2 ++ 2 files changed, 8 insertions(+) commit a883b224dbdaacf1bdeb25c2a07492a3046d1958 Author: Alberto Garcia Date: Sat Sep 19 07:37:29 2009 +0200 Remove unused GMainLoop in audio.c ChangeLog | 5 +++++ src/audio.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) commit 06bff779aa0d9a3fe8d1f15f85713362b8c55f3b Author: Alberto Garcia Date: Fri Sep 18 20:58:07 2009 +0200 Implementations of gdk_threads_add_* for old systems ChangeLog | 10 +++++ configure.ac | 2 + src/Makefile.am | 1 + src/audio.c | 1 + src/compat.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++ src/compat.h | 51 +++++++++++++++++++++++++ src/controller.c | 1 + src/dbus.c | 1 + src/dlwin.c | 1 + src/globaldefs.h | 5 --- src/uimisc.c | 1 + src/vgl-main-window.c | 1 + src/vgl-tray-icon.c | 1 + 13 files changed, 172 insertions(+), 5 deletions(-) commit b231e4449c0e5bad9edaade1ee74fc9ed2d5b517 Author: Alberto Garcia Date: Fri Sep 18 20:29:16 2009 +0200 Use g_ascii_strcasecmp() instead of strcasecmp() ChangeLog | 6 ++++++ src/audio.c | 2 +- src/lastfm-ws.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) commit 7c045d4fbc20e84a956bc51b95a326cc315481db Author: Alberto Garcia Date: Fri Sep 18 20:10:36 2009 +0200 Several improvements in the download window code ChangeLog | 13 +++++++ src/dlwin.c | 119 ++++++++++++++++++++++++++++++++++++----------------------- 2 files changed, 85 insertions(+), 47 deletions(-) commit fc13c527619ab178c591c37ff772a42c9fd5dc16 Author: Alberto Garcia Date: Fri Sep 18 20:10:24 2009 +0200 Regression fix: return custom playlist if available ChangeLog | 5 +++++ src/lastfm-ws.c | 1 + 2 files changed, 6 insertions(+) commit 3c09e185ec39749c1ff9262cb17a1cacb69363f4 Author: Alberto Garcia Date: Fri Sep 18 14:30:10 2009 +0200 Use gdk_threads_add_timeout() to add timeouts ChangeLog | 15 +++++++++++++++ configure.ac | 10 +++++----- src/controller.c | 4 ++-- src/globaldefs.h | 6 +++--- src/vgl-main-window.c | 2 +- 5 files changed, 26 insertions(+), 11 deletions(-) commit 7981ca4fea3514dcd2f2f57ac7fe7155330764ef Author: Alberto Garcia Date: Fri Sep 18 14:29:58 2009 +0200 Use an idle handler to show the tray icon notification ChangeLog | 9 ++++++++ src/vgl-tray-icon.c | 63 +++++++++++++++++++++++++++------------------------ 2 files changed, 42 insertions(+), 30 deletions(-) commit 3fb46255557656c76c6af90e41fe870fc7d062aa Author: Alberto Garcia Date: Fri Sep 18 14:29:38 2009 +0200 Use an idle handler to fill the combos in the tagging window ChangeLog | 7 +++++++ src/uimisc.c | 64 +++++++++++++++++++++++++++++++++------------------------- 2 files changed, 44 insertions(+), 27 deletions(-) commit 26b04d033bfe7a793e89b453145ebfb663b43d16 Author: Alberto Garcia Date: Fri Sep 18 14:29:29 2009 +0200 Use an idle hander for everything done after creating a new session ChangeLog | 7 ++++ src/controller.c | 93 ++++++++++++++++++++++++++++++------------------------ 2 files changed, 59 insertions(+), 41 deletions(-) commit c4fd49d8bec4e44e9f4ea3348df4060b51ee2297 Author: Alberto Garcia Date: Fri Sep 18 14:29:23 2009 +0200 Use the gdk_threads_* API to install all DBUS idle handlers ChangeLog | 5 +++++ src/dbus.c | 69 +++++++++++++++++++++--------------------------------------- 2 files changed, 29 insertions(+), 45 deletions(-) commit 653b3e28ec1053deb6d6513bdc7dd08c11e7b2a4 Author: Alberto Garcia Date: Fri Sep 18 14:29:14 2009 +0200 Run the GStreamer EOS and state changed handlers from the main loop ChangeLog | 7 +++++++ src/audio.c | 36 ++++++++++++++++++++++++------------ 2 files changed, 31 insertions(+), 12 deletions(-) commit 93a432f391f6d08bc21588d4744da539cd294ae6 Author: Alberto Garcia Date: Fri Sep 18 14:29:03 2009 +0200 Move almost everything done when setting a new radio to the main loop ChangeLog | 9 ++++++ src/controller.c | 88 ++++++++++++++++++++++++++++++++---------------------- 2 files changed, 62 insertions(+), 35 deletions(-) commit f89e58b4953c4847ce3ca2bedc63d4c58be49984 Author: Alberto Garcia Date: Fri Sep 18 14:28:55 2009 +0200 Use an idle handler to start/stop playing after retrieving a new playlist ChangeLog | 9 ++++++++ src/controller.c | 62 +++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 52 insertions(+), 19 deletions(-) commit 7755edd25eeb056e1aaaa9263d36a689a2c99375 Author: Alberto Garcia Date: Fri Sep 18 14:28:40 2009 +0200 Use an idle handler to update the UI after adding a track to a playlist ChangeLog | 7 +++++++ src/controller.c | 41 ++++++++++++++++++++++++++--------------- 2 files changed, 33 insertions(+), 15 deletions(-) commit 6f3ef9b5f96280d468bdf72c7b29306ad1d2f277 Author: Alberto Garcia Date: Fri Sep 18 14:28:31 2009 +0200 Use an idle handler to show information banners ChangeLog | 7 +++++++ src/controller.c | 43 +++++++++++++++++++++++++------------------ 2 files changed, 32 insertions(+), 18 deletions(-) commit 659575d538ddc874f535801b9c8faab31496d425 Author: Alberto Garcia Date: Fri Sep 18 14:28:17 2009 +0200 Set the album cover in the main window using an idle handler ChangeLog | 9 +++++++++ src/controller.c | 50 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 43 insertions(+), 16 deletions(-) commit b18b9246234cebac6bb98f5b2b4111f6bfdaf14f Author: Alberto Garcia Date: Mon Sep 14 20:55:06 2009 +0200 Explain that Vagalume also supports other compatible services ChangeLog | 16 ++++++++++++++++ README | 5 +++-- debian/control | 3 +++ debian/control.maemo2 | 3 +++ debian/control.maemo3 | 3 +++ debian/control.maemo4 | 3 +++ src/controller.c | 14 +++++++++----- src/uimisc.c | 9 +++++---- vagalume.1 | 7 +++++-- 9 files changed, 50 insertions(+), 13 deletions(-) commit e9e78e2ac7e52e7c537ecd611e7671a797e4d7e5 Author: Alberto Garcia Date: Tue Sep 8 22:27:35 2009 +0200 Ignore GST_MESSAGE_STREAM_STATUS ChangeLog | 5 +++++ src/audio.c | 1 + 2 files changed, 6 insertions(+) commit 0a8bcc96c063adec9907b1be61525177641a50d4 Author: Alberto Garcia Date: Tue Sep 8 22:27:26 2009 +0200 Use an int marshaller for the track-stopped signal ChangeLog | 5 +++++ src/controller.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit de2e2366c173085e575db539dec132a4f38ffb54 Author: Alberto Garcia Date: Sat Sep 5 03:55:38 2009 +0200 Fix typo src/vgl-object.c | 2 +- src/vgl-object.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit a38e79e52fd07cbc28c0f47494b31bafe81c0b82 Author: Alberto Garcia Date: Sat Sep 5 03:54:39 2009 +0200 Make tagwin a VglObject ChangeLog | 5 +++++ src/uimisc.c | 30 +++++------------------------- 2 files changed, 10 insertions(+), 25 deletions(-) commit ddc0ca4811530437015c2507650293605cdc47f4 Author: Alberto Garcia Date: Sat Sep 5 03:54:35 2009 +0200 Make RspSession a VglObject ChangeLog | 5 +++++ src/scrobbler.c | 49 ++++++++++++++++++------------------------------- 2 files changed, 23 insertions(+), 31 deletions(-) commit f9fa248d1531a685afb5ffe49508daa9b2c35f04 Author: Alberto Garcia Date: Sat Sep 5 03:54:31 2009 +0200 Make LastfmTrack a VglObject ChangeLog | 11 +++++++++++ src/controller.c | 40 ++++++++++++++++++++-------------------- src/imstatus.c | 8 ++++---- src/playlist.c | 46 +++++++++------------------------------------- src/playlist.h | 10 ++-------- src/protocol.c | 2 +- src/scrobbler.c | 8 ++++---- src/uimisc.c | 4 ++-- src/vgl-tray-icon.c | 4 ++-- 9 files changed, 55 insertions(+), 78 deletions(-) commit 2304a79a3f71e0d6276081f3810c221528b64700 Author: Alberto Garcia Date: Sat Sep 5 03:54:24 2009 +0200 Make LastfmWsSession a VglObject ChangeLog | 8 ++++++++ src/controller.c | 32 ++++++++++++++++---------------- src/lastfm-ws.c | 46 +++++++++++++++++----------------------------- src/lastfm-ws.h | 6 ------ src/scrobbler.c | 12 ++++++------ src/uimisc.c | 4 ++-- 6 files changed, 49 insertions(+), 59 deletions(-) commit 4577270ced91798aca7ac401e188b63c8d5d4679 Author: Alberto Garcia Date: Sat Sep 5 03:54:17 2009 +0200 Make VglServer a VglObject ChangeLog | 9 +++++++++ src/controller.c | 12 ++++++------ src/lastfm-ws.c | 4 ++-- src/scrobbler.c | 6 +++--- src/userconfig.c | 8 ++++---- src/vgl-server.c | 48 ++++++++++++++++-------------------------------- src/vgl-server.h | 11 ++--------- 7 files changed, 42 insertions(+), 56 deletions(-) commit b191383d4a604f5e8fb4e6135b1bc2ff866efa43 Author: Alberto Garcia Date: Sat Sep 5 03:54:12 2009 +0200 VglObject, a very minimalistic implementation of ref-counted objects ChangeLog | 7 +++++++ src/Makefile.am | 1 + src/vgl-object.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/vgl-object.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 102 insertions(+) commit a41c776b93e0ae424fb194e28d43ad509ccc0ba5 Author: Alberto Garcia Date: Sat Sep 5 03:54:06 2009 +0200 Define VglServerData struct for storing built-in server information ChangeLog | 6 ++++++ src/vgl-server.c | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) commit f4f323e0d82adbb5b836034c2fa0d31ac71de3b5 Author: Alberto Garcia Date: Fri Sep 4 02:22:57 2009 +0200 Add a combo box to the settings dialog to select the server ChangeLog | 9 +++++++++ src/controller.c | 10 ++++++++-- src/uimisc.c | 43 ++++++++++++++++++++++++++++++++++++++----- 3 files changed, 55 insertions(+), 7 deletions(-) commit de8da055cb7640b530e41b95ee92daac8f97e9e4 Author: Alberto Garcia Date: Fri Sep 4 02:22:44 2009 +0200 Add support for the legacy streaming API on a per-server basis ChangeLog | 20 ++++++++++++++++++++ src/audio.c | 6 +++++- src/lastfm-ws.c | 32 +++++++++++++++++++++++--------- src/protocol.c | 6 ++---- src/protocol.h | 1 + src/vgl-server.c | 35 +++++++++++++++++++++++------------ src/vgl-server.h | 5 ++++- 7 files changed, 78 insertions(+), 27 deletions(-) commit 47afeb9d4cd04a47eeef10fb3416efd5ff2585c6 Author: Alberto Garcia Date: Fri Sep 4 02:22:31 2009 +0200 Initial support for different Last.fm-compatible servers ChangeLog | 31 +++++++++ src/Makefile.am | 1 + src/controller.c | 16 ++++- src/lastfm-ws.c | 154 +++++++++++++++++++++-------------------- src/lastfm-ws.h | 27 +++++--- src/scrobbler.c | 15 ++-- src/uimisc.c | 3 +- src/userconfig.c | 40 ++++++++++- src/userconfig.h | 7 ++ src/vgl-server.c | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/vgl-server.h | 61 ++++++++++++++++ 11 files changed, 461 insertions(+), 97 deletions(-) commit 78ab59c9490c2548e47d09864ec3fd66ac4e806c Author: Alberto Garcia Date: Fri Sep 4 02:22:20 2009 +0200 Check for NULL in lastfm_set_radio() ChangeLog | 5 +++++ src/protocol.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit fd7a1cf53deb05352bcf0b52c97100b6a5f15cb0 Author: Alberto Garcia Date: Fri Sep 4 02:22:11 2009 +0200 Bring back legacy streaming functions ChangeLog | 7 +++++ src/protocol.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/protocol.h | 10 +++++++ 3 files changed, 103 insertions(+) commit a40ecb93639ee5adef67a01a52c692b644f7e86a Author: Alberto Garcia Date: Tue Aug 11 18:44:49 2009 +0200 autogen.sh: run ./configure unless the NOCONFIGURE variable is set ChangeLog | 10 ++++++++++ autogen.sh | 9 ++++++++- debian/changelog | 1 + debian/rules | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) commit 830e3630f2fad800fcf06d5eaac2b1b33e9bb79a Author: Alberto Garcia Date: Fri Jun 12 20:04:58 2009 +0200 Add support for others' recommendations radios ChangeLog | 8 ++++++++ src/controller.c | 6 +++++- src/vgl-main-window.c | 7 ++++++- 3 files changed, 19 insertions(+), 2 deletions(-) commit b595596a42d9ef3954d5eb03a2c49a26f4829524 Author: Alberto Garcia Date: Sat May 16 19:55:08 2009 +0200 Follow HTTP redirections ChangeLog | 6 ++++++ src/http.c | 3 +++ 2 files changed, 9 insertions(+) commit 170e2303c8ae45d61238f7ae8ff7c3650f53b695 Author: Alberto Garcia Date: Fri May 15 00:38:40 2009 +0200 Discard a track after 50 unsuccessful tries to scrobble it ChangeLog | 5 +++++ src/scrobbler.c | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) commit ff2a6ebc184fcae1fa6cae31c15f96161b9b31e6 Author: Alberto Garcia Date: Wed May 13 01:06:12 2009 +0200 Sleep between retries when scrobbling doesn't work ChangeLog | 5 +++++ src/scrobbler.c | 1 + 2 files changed, 6 insertions(+) commit 6fd9d56d1f368270adef070c13184f3f10f7eb05 Author: Alberto Garcia Date: Wed May 13 00:26:04 2009 +0200 Rename lastfm_radio to LastfmRadio ChangeLog | 9 +++++++++ src/controller.c | 8 ++++---- src/controller.h | 4 ++-- src/radio.c | 4 ++-- src/radio.h | 6 +++--- src/vgl-main-window.c | 4 ++-- 6 files changed, 22 insertions(+), 13 deletions(-) commit 51bc8938cfa354bcbd06b20d4ee71f1f7d29a1c7 Author: Alberto Garcia Date: Thu May 7 22:46:31 2009 +0200 Create two different targets for marshal.c and marshal.h in Makefile.am ChangeLog | 5 +++++ src/Makefile.am | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) commit 5e069c10186941272e36fac16bd1cf6a0505eaae Author: Alberto Garcia Date: Tue May 5 01:06:59 2009 +0200 Refactor code a bit in controller_play_radio_by_url_thread() ChangeLog | 5 +++++ src/controller.c | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) commit f63de3f9c1bdbedd6bdb50aa0940f3398e787b89 Author: Alberto Garcia Date: Tue May 5 01:06:54 2009 +0200 Use lastfm_ws_radio_tune() for custom playlists too ChangeLog | 13 +++++++++++++ src/controller.c | 18 ------------------ src/lastfm-ws.c | 29 +++++++++++++++++++++++++++++ src/protocol.c | 1 + src/protocol.h | 1 + 5 files changed, 44 insertions(+), 18 deletions(-) commit a6341cd8fe64044d90b3019f989a9fe472a36a58 Author: Alberto Garcia Date: Tue May 5 01:06:41 2009 +0200 Store radio name in LastfmWsSession object ChangeLog | 11 +++++++++++ src/controller.c | 9 +++------ src/lastfm-ws.c | 31 +++++++++++++++++++------------ src/lastfm-ws.h | 8 +++----- 4 files changed, 36 insertions(+), 23 deletions(-) commit b7e89d60c72d62bc4895fd57e273772ca24b2c98 Author: Alberto Garcia Date: Fri May 1 14:44:11 2009 +0200 Set main window border only when using HildonWindow ChangeLog | 8 ++++++++ src/vgl-main-window.c | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) commit c75bdf109bfd47ad0fe72d9fe51211cd72aa599a Author: Alberto Garcia Date: Thu Apr 30 00:47:55 2009 +0200 Don't call lastfm_ws_session_unref() on a NULL pointer ChangeLog | 5 +++++ src/controller.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) commit e18afc731f7c81b5586f88b24453557d69ce3f42 Author: Javier Jardon Date: Thu Apr 30 00:47:47 2009 +0200 Replace deprecated calls to gtk_menu_append() ChangeLog | 5 +++++ src/vgl-tray-icon.c | 33 ++++++++++++++++++--------------- 2 files changed, 23 insertions(+), 15 deletions(-) commit 8cabe627ad7e10ff6642667d9c177e5fd068f262 Author: Alberto Garcia Date: Sat Apr 25 18:38:29 2009 +0200 Fix tagging (include session object in TagData struct) ChangeLog | 7 +++++++ src/controller.c | 21 +++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) commit 0eff06cf360d6c5d985b3cb45731de4b781bdee1 Author: Alberto Garcia Date: Sat Apr 25 18:38:24 2009 +0200 Remove unused includes and definitions. Mark xmlrpc.c as legacy API ChangeLog | 9 +++++++++ src/controller.c | 6 ------ src/controller.h | 1 - src/vgl-main-window.c | 1 - src/xmlrpc.c | 4 ++-- src/xmlrpc.h | 4 ++-- 6 files changed, 13 insertions(+), 12 deletions(-) commit 70d3400cd39fcbe93b92854af8677433ae3cc2f9 Author: Alberto Garcia Date: Sat Apr 25 18:38:19 2009 +0200 Use the new lastfm_ws_add_to_playlist() method in the controller ChangeLog | 6 ++++++ src/controller.c | 51 ++++++++++++++++++++++++++++++++------------------- 2 files changed, 38 insertions(+), 19 deletions(-) commit 45e97ced59c57b995abb87d5404ef1ac625c2342 Author: Alberto Garcia Date: Sat Apr 25 18:38:14 2009 +0200 Method to add a track to a playlist using the new API ChangeLog | 7 +++++++ src/lastfm-ws.c | 10 ++++++++++ src/lastfm-ws.h | 4 ++++ 3 files changed, 21 insertions(+) commit 9e0f667dfcb35ca5ea697ae2246afb56ca5676cd Author: Alberto Garcia Date: Fri Apr 24 14:59:35 2009 +0200 Use the new lastfm_ws_tag_track() method in the controller ChangeLog | 5 +++++ src/controller.c | 45 +++++++++++++++++++++++---------------------- 2 files changed, 28 insertions(+), 22 deletions(-) commit 8066a8fc64710f98ad86f8f075d9bd84824cc3a2 Author: Alberto Garcia Date: Fri Apr 24 14:59:29 2009 +0200 Method to tag tracks using the new API ChangeLog | 7 +++++++ src/lastfm-ws.c | 13 +++++++++++++ src/lastfm-ws.h | 6 ++++++ 3 files changed, 26 insertions(+) commit 0ce500d78b7bea6d3f80a389c69bc29307d27ffe Author: Alberto Garcia Date: Thu Apr 23 22:42:36 2009 +0200 Use the old API to share (recommend) albums ChangeLog | 10 ++++++++++ src/lastfm-ws.c | 7 +++++-- src/xmlrpc.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ src/xmlrpc.h | 8 ++++++++ 4 files changed, 72 insertions(+), 2 deletions(-) commit 6d4047edcc901f7f41dd0a5df78d086b9578f4eb Author: Alberto Garcia Date: Thu Apr 23 22:42:30 2009 +0200 Store password in LastfmWsSession object ChangeLog | 7 +++++++ src/lastfm-ws.c | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) commit 6139af1ba861fdc3c4db6dcc218319fe191e1b7b Author: Alberto Garcia Date: Thu Apr 23 15:51:19 2009 +0200 Remove deprecated methods to love, ban and recommend ChangeLog | 5 ++++ src/xmlrpc.c | 79 ---------------------------------------------------------- src/xmlrpc.h | 14 ----------- 3 files changed, 5 insertions(+), 93 deletions(-) commit 20bda2ceb9fce77b37a5df3e9869aff464a38349 Author: Alberto Garcia Date: Thu Apr 23 15:51:13 2009 +0200 Use the recommend (share) method from the v2.0 API ChangeLog | 6 ++++++ src/controller.c | 34 +++++++++++++++++----------------- 2 files changed, 23 insertions(+), 17 deletions(-) commit 2f49ede4f8bc84f580854831b4ab93d21633b621 Author: Alberto Garcia Date: Thu Apr 23 15:51:07 2009 +0200 Use love/ban methods from the v2.0 API ChangeLog | 6 ++++++ src/scrobbler.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 56 insertions(+), 4 deletions(-) commit f283ab60263d8c6eb85a4f1cdffd25034c8ebe98 Author: Alberto Garcia Date: Thu Apr 23 15:51:01 2009 +0200 Make the session object parameter of the 'connected' signal ChangeLog | 6 ++++++ src/controller.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) commit 895c25975fdb0f928b97ecb2f14c70c24e4e763f Author: Alberto Garcia Date: Thu Apr 23 01:08:54 2009 +0200 Remove unused methods from the legacy streaming API ChangeLog | 7 ++++ src/protocol.c | 105 +------------------------------------------------------- src/protocol.h | 17 ++------- 3 files changed, 10 insertions(+), 119 deletions(-) commit ad47a2585921ae7c5eb043f04e774447f2a30aa8 Author: Alberto Garcia Date: Thu Apr 23 01:08:49 2009 +0200 Use the v2.0 Last.fm API to stream music ChangeLog | 22 +++++++++++ src/controller.c | 116 ++++++++++++++++-------------------------------------- src/lastfm-ws.c | 28 +++++++++---- src/lastfm-ws.h | 7 +++- src/protocol.c | 2 - src/protocol.h | 1 - 6 files changed, 84 insertions(+), 92 deletions(-) commit 32d73d2a174262b3b166923e5c5dfe79eeaa1b9c Author: Alberto Garcia Date: Wed Apr 22 23:58:18 2009 +0200 New methods for streaming radio using the v2.0 Last.fm API ChangeLog | 7 +++++++ src/lastfm-ws.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/lastfm-ws.h | 12 +++++++++++ 3 files changed, 80 insertions(+) commit 2b259c228249d67039c0837e315db730028e6c25 Author: Alberto Garcia Date: Wed Apr 22 23:58:13 2009 +0200 Add support for the new Last.fm playlist format ChangeLog | 9 +++ src/protocol.c | 186 ++++++++++++++++++++++++++++++++++++++++---------------- src/protocol.h | 5 ++ 3 files changed, 149 insertions(+), 51 deletions(-) commit b5fee8d0b5d5e5a77e7c3f890523e74f83c341f5 Author: Alberto Garcia Date: Wed Apr 22 23:58:08 2009 +0200 Moved get_language_code() from protocol.c to util.c ChangeLog | 7 +++++++ src/protocol.c | 26 -------------------------- src/util.c | 24 ++++++++++++++++++++++++ src/util.h | 3 +++ 4 files changed, 34 insertions(+), 26 deletions(-) commit da7811904e4dfc965fecccef236ad91466863b73 Author: Alberto Garcia Date: Mon Apr 20 23:25:28 2009 +0200 Use the v2.0 Last.fm API to get track tags (but keep v1.0 for album tags) ChangeLog | 15 ++++ src/Makefile.am | 3 +- src/lastfm-ws.c | 49 ++++++++++- src/metadata.c | 257 ------------------------------------------------------- src/metadata.h | 38 -------- src/uimisc.c | 3 +- 6 files changed, 63 insertions(+), 302 deletions(-) commit 2b756b94cd24b292fa3ad8ac225aa6b3519784db Author: Alberto Garcia Date: Mon Apr 20 02:05:40 2009 +0200 Use lastfm_ws_get_user_track_tags() instead of lastfm_get_user_track_tags() ChangeLog | 17 +++++++++++++++++ src/controller.c | 17 ++++++++++++++--- src/metadata.c | 6 ++++-- src/metadata.h | 2 +- src/uimisc.c | 11 ++++++++--- src/uimisc.h | 2 ++ 6 files changed, 46 insertions(+), 9 deletions(-) commit 624762408cfad72ed093fe1b7989fbb70a1e3e35 Author: Alberto Garcia Date: Mon Apr 20 02:05:34 2009 +0200 Create a LastfmWsSession in the controller to use the Last.fm Web Services ChangeLog | 6 ++++++ src/controller.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) commit 26880b1ca66f3fb430ade1c840d7e9089fd37f4b Author: Alberto Garcia Date: Mon Apr 20 02:05:29 2009 +0200 Don't send the usercfg-changed signal if the configuration hasn't changed ChangeLog | 10 ++++++++++ src/controller.c | 15 +++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) commit f8fe565848f68afc7ad73fa6c4a5a0519657f220 Author: Alberto Garcia Date: Mon Apr 20 00:39:08 2009 +0200 Move lastfm_get_track_cover_image() from metadata.c to util.c ChangeLog | 8 +++++++ src/controller.c | 1 - src/metadata.c | 58 --------------------------------------------------- src/metadata.h | 5 +---- src/util.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/util.h | 4 ++++ src/vgl-tray-icon.c | 1 - 7 files changed, 71 insertions(+), 64 deletions(-) commit 42185928695b4e35bc7fce5956b0289667c0b1b3 Author: Alberto Garcia Date: Tue Apr 7 01:03:40 2009 +0200 Update copyright years src/metadata.c | 2 +- src/playlist.h | 2 +- src/scrobbler.c | 2 -- src/util.c | 2 +- src/util.h | 2 +- src/xmlrpc.c | 2 +- 6 files changed, 5 insertions(+), 7 deletions(-) commit 25869b938fdc96a9253233e928ed9df45654baf9 Author: Alberto Garcia Date: Sun Apr 5 23:58:31 2009 +0200 Use lastfm_ws_get_friends()/lastfm_ws_get_user_tags() from the new API ChangeLog | 9 +++++++++ src/Makefile.am | 1 + src/controller.c | 5 +++-- src/metadata.c | 8 ++++++-- src/metadata.h | 2 ++ 5 files changed, 21 insertions(+), 4 deletions(-) commit 049573087a5c8a246cac44b13002130a754e614d Author: Alberto Garcia Date: Sun Apr 5 22:58:58 2009 +0200 Return a boolean with the response status code of lastfm_ws_http_request() ChangeLog | 5 +++++ src/lastfm-ws.c | 23 +++++++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) commit cc9ffd09826395be29fbce4e75b747e02e31ca8e Author: Alberto Garcia Date: Sun Apr 5 21:55:07 2009 +0200 Initial implementation of the Last.fm Web Services API v2.0 ChangeLog | 6 + src/lastfm-ws.c | 780 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/lastfm-ws.h | 87 +++++++ 3 files changed, 873 insertions(+) commit 12cbc08c060dd6db712abc5689ddc451cc1018b7 Author: Alberto Garcia Date: Sun Apr 5 18:42:28 2009 +0200 Rename request_type to LastfmTrackComponent ChangeLog | 9 ++++++++ src/controller.c | 16 ++++++------- src/metadata.c | 34 ++++++++++++++-------------- src/metadata.h | 14 ++++++------ src/playlist.h | 8 +++---- src/uimisc.c | 66 +++++++++++++++++++++++++++++------------------------- src/uimisc.h | 24 ++++++++++---------- src/xmlrpc.c | 30 ++++++++++++------------- src/xmlrpc.h | 22 +++++++++--------- 9 files changed, 118 insertions(+), 105 deletions(-) commit 43e06f23cd6948d77200ed5fb0ded04c6fdc049f Author: Alberto Garcia Date: Sun Apr 5 16:39:03 2009 +0200 Love/ban rating was being reset before scrobbling a track. Fixed. ChangeLog | 5 +++++ src/controller.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) commit 71eac028ce338c3497d191f9b281e101c95b2f8f Author: Alberto Garcia Date: Sun Apr 5 15:38:05 2009 +0200 Add optional 'retbufsize' param to http_post_buffer() ChangeLog | 8 ++++++++ src/http.c | 12 ++++++++---- src/http.h | 3 ++- src/scrobbler.c | 4 ++-- src/xmlrpc.c | 2 +- 5 files changed, 21 insertions(+), 8 deletions(-) commit e1cdd6453442887b57fbe2b6979569afd0404ee8 Author: Alberto Garcia Date: Sat Apr 4 20:13:13 2009 +0200 Use arrays instead of pointers for static strings ChangeLog | 10 ++++++++++ src/metadata.c | 16 ++++++++-------- src/protocol.c | 10 +++++----- src/scrobbler.c | 2 +- src/uimisc.c | 10 +++++----- src/vgl-main-window.c | 2 +- src/xmlrpc.c | 2 +- 7 files changed, 31 insertions(+), 21 deletions(-) commit 3654b0ba775fa6c4011edbcc5e1bab49fbb46f57 Author: Alberto Garcia Date: Sat Apr 4 20:13:04 2009 +0200 Check for empty free track URLs in lastfm_parse_track() ChangeLog | 5 +++++ src/protocol.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit db0bd5febda24a1e2e3c0441566bbaadf392a737 Author: Alberto Garcia Date: Sat Apr 4 15:44:07 2009 +0200 Allow empty lists in xml_find_node() ChangeLog | 5 +++++ src/util.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit e13e98f3b93393a915d8f876880aa413544853e8 Author: Alberto Garcia Date: Fri Apr 3 18:32:23 2009 +0200 Change all function declarations to use the same formatting rules. ChangeLog | 5 ++ src/audio.c | 46 +++++++------- src/audio.h | 50 +++++++++++---- src/connection.c | 15 +++-- src/connection.h | 20 ++++-- src/controller.c | 135 +++++++++++++++++++++-------------------- src/controller.h | 144 +++++++++++++++++++++++++++++++++----------- src/dbus.c | 61 ++++++++++--------- src/dbus.h | 23 +++++-- src/dlwin.c | 18 ++++-- src/dlwin.h | 12 +++- src/http.c | 39 ++++++++---- src/http.h | 48 +++++++++++---- src/imstatus.c | 34 +++++++---- src/imstatus.h | 3 +- src/main.c | 7 ++- src/metadata.c | 26 +++++--- src/metadata.h | 29 ++++++--- src/playlist.c | 28 +++++---- src/playlist.h | 48 +++++++++++---- src/protocol.c | 36 ++++++----- src/protocol.h | 35 +++++++---- src/radio.c | 11 ++-- src/radio.h | 18 ++++-- src/scrobbler.c | 53 ++++++++++------ src/scrobbler.h | 3 +- src/uimisc.c | 147 +++++++++++++++++++++++++++++---------------- src/uimisc.h | 108 ++++++++++++++++++++++++--------- src/userconfig.c | 36 ++++++----- src/userconfig.h | 45 ++++++++++---- src/util.c | 70 ++++++++++++++------- src/util.h | 101 ++++++++++++++++++++++++------- src/vgl-bookmark-mgr.c | 56 ++++++++++------- src/vgl-bookmark-mgr.h | 49 +++++++++++---- src/vgl-bookmark-window.c | 60 +++++++++++------- src/vgl-bookmark-window.h | 6 +- src/vgl-main-window.c | 147 +++++++++++++++++++++++++++++---------------- src/vgl-main-window.h | 67 +++++++++++++++------ src/vgl-sb-plugin.c | 67 ++++++++++++--------- src/vgl-sb-plugin.h | 3 +- src/vgl-tray-icon.c | 58 +++++++++++------- src/vgl-tray-icon.h | 6 +- src/xmlrpc.c | 39 ++++++++---- src/xmlrpc.h | 34 ++++++++--- 44 files changed, 1369 insertions(+), 677 deletions(-) commit e629f7806e3d7f4138639534819017e8baf59e0b Author: Alberto Garcia Date: Fri Apr 3 17:08:37 2009 +0200 Replace xmlStrcmp() by xmlStrEqual() for speed and readability ChangeLog | 9 +++++++++ src/metadata.c | 8 ++++---- src/protocol.c | 6 +++--- src/userconfig.c | 4 ++-- src/util.c | 2 +- src/vgl-bookmark-mgr.c | 6 +++--- 6 files changed, 22 insertions(+), 13 deletions(-) commit 42029375b11eb6da13ec0477aee2194c65387ac4 Author: Alberto Garcia Date: Fri Mar 27 17:18:45 2009 +0200 Updated French translation, by Jean-Alexandre Angles d'Auriac ChangeLog | 7 +++ TRANSLATORS | 1 + po/fr.po | 159 +++++++++++++++++++++++++++++----------------------------- src/uimisc.c | 3 +- 4 files changed, 90 insertions(+), 80 deletions(-) commit 382f698b5914b671d4c3d1878c3925316fcc7df5 Author: Alberto Garcia Date: Sat Mar 21 03:45:04 2009 +0200 Fix infinite loop in parse_xml_tags() ChangeLog | 4 ++++ src/metadata.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 2a87974a714428d009bce8576bc70429b4c521b4 Author: Alberto Garcia Date: Wed Mar 18 02:12:57 2009 +0200 Refactor lastfm_parse_playlist() and parse_xml_tags() using xml_get_* ChangeLog | 6 ++++++ src/metadata.c | 35 ++++++++----------------------- src/protocol.c | 63 +++++++++++++++++++++++++------------------------------- 3 files changed, 43 insertions(+), 61 deletions(-) commit 78add7d37d86b5f93b11b825bd4557bf6b0f5bb5 Author: Alberto Garcia Date: Wed Mar 18 01:25:43 2009 +0200 Don't make xml_get_string() free the value parameter, return NULL instead ChangeLog | 10 ++++++++++ src/metadata.c | 6 ++---- src/protocol.c | 4 ++-- src/userconfig.c | 30 ++++++++++++++++++++++-------- src/util.c | 37 +++++++++++++++++-------------------- src/vgl-bookmark-mgr.c | 5 ++--- 6 files changed, 55 insertions(+), 37 deletions(-) commit 00649f9117f04d4a4822084ffaaafe4711b07f95 Author: Alberto Garcia Date: Wed Mar 18 00:22:44 2009 +0200 Refactor lastfm_parse_track() code using xml functions in util.c ChangeLog | 5 +++ src/protocol.c | 95 ++++++++++++++++++++++++-------------------------------- 2 files changed, 45 insertions(+), 55 deletions(-) commit c9db5de202beae9a837110309bf0d1ab6a687290 Author: Alberto Garcia Date: Wed Mar 18 00:22:39 2009 +0200 Added xml_find_node(), xml_add_glong() and xml_get_glong() ChangeLog | 7 ++++++ src/util.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------- src/util.h | 4 ++++ 3 files changed, 76 insertions(+), 10 deletions(-) commit e4cbd46a1f59f6b66ec62fd2900e73a769b7d487 Author: Alberto Garcia Date: Sat Mar 14 20:55:08 2009 +0200 Refactor code using xml_add_string() and xml_get_string() ChangeLog | 9 +++++++++ src/metadata.c | 20 +++++++------------- src/vgl-bookmark-mgr.c | 48 +++++++----------------------------------------- src/xmlrpc.c | 14 ++------------ 4 files changed, 25 insertions(+), 66 deletions(-) commit 85d3f336df2369c947e7cd33144a2ac2e6344916 Author: Alberto Garcia Date: Sat Mar 14 20:55:02 2009 +0200 xml_{add,get}_*: extra checks for parameters. Return node in xml_get_* ChangeLog | 10 ++++++++++ src/util.c | 22 +++++++++++++++------- src/util.h | 8 ++++---- 3 files changed, 29 insertions(+), 11 deletions(-) commit c5627206540a1bbac53eb1727fb10038bbf25d1f Author: Alberto Garcia Date: Sat Mar 14 20:54:56 2009 +0200 Moved xml_{add,get}_{string,bool} from userconfig.c to util.c ChangeLog | 9 ++++++ src/userconfig.c | 63 ------------------------------------- src/util.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/util.h | 8 +++++ 4 files changed, 108 insertions(+), 63 deletions(-) commit 630a52b9a5f1ba20d5665a592b3d00ba5b7bda16 Author: Alberto Garcia Date: Fri Mar 13 17:44:03 2009 +0200 Added Polish translation, by Dawid Pakuła ChangeLog | 8 + TRANSLATORS | 3 + po/LINGUAS | 1 + po/pl.po | 856 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.c | 5 +- 5 files changed, 871 insertions(+), 2 deletions(-) commit 44d687251f9b08b984bd48cdbde348b56d817364 Author: Alberto Garcia Date: Fri Mar 6 18:12:16 2009 +0200 Use current artist as default value in the "Artists similar to" dialog ChangeLog | 8 ++++++++ src/controller.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) commit 0fe34a0ccd702aace6a2caf982aa9a6de4cd7e8d Author: Alberto Garcia Date: Fri Mar 6 03:23:26 2009 +0200 New 'playback-progress' signal, use it to update main win's progress bar ChangeLog | 17 +++++++++++++++++ src/Makefile.am | 9 +++++++++ src/controller.c | 27 +++++++++++++++++++-------- src/controller.h | 3 +++ src/marshal.list | 1 + src/vgl-main-window.c | 12 +++++++++--- src/vgl-main-window.h | 8 +++++--- 7 files changed, 63 insertions(+), 14 deletions(-) commit 6b5196f64648163770b9b4e164e1b05f4050e087 Author: Alberto Garcia Date: Thu Feb 26 23:29:53 2009 +0200 Merged changes from the 0.7.1 release ChangeLog | 11 +++++++++++ NEWS | 4 ++++ configure.ac | 2 +- debian/changelog | 8 +++++++- vagalume.spec | 5 ++++- 5 files changed, 27 insertions(+), 3 deletions(-) commit e6445f59796db851fd9b2cc94414afff71441324 Author: Alberto Garcia Date: Thu Feb 26 13:44:10 2009 +0200 Set version to 1.5 when requesting playlists. ChangeLog | 6 ++++++ src/protocol.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) commit a656404abb5e95f3c3a80958735271a72feb7b6f Author: Alberto Garcia Date: Thu Feb 26 02:55:45 2009 +0200 Send session cookie in all mp3 requests ChangeLog | 7 +++++++ src/controller.c | 12 +++--------- src/playlist.h | 1 - src/protocol.c | 8 ++------ 4 files changed, 12 insertions(+), 16 deletions(-) commit 62167281634bbad44dba77dd2a5f2be0b08418ec Author: Alberto Garcia Date: Tue Feb 24 21:45:04 2009 +0200 Get the radio name from the 'adjust radio' request ChangeLog | 18 ++++++++++++++++++ src/controller.c | 7 +++++-- src/protocol.c | 32 ++++++++++++++++++++++++-------- src/protocol.h | 6 ++++-- 4 files changed, 51 insertions(+), 12 deletions(-) commit de64f9e63a68b97bc876e6db3202eaee842a6580 Author: Heinrich Schwietering Date: Tue Feb 24 15:42:34 2009 +0200 vagalumectl: new commands to show and hide the player window ChangeLog | 5 +++++ scripts/vagalumectl | 6 ++++++ 2 files changed, 11 insertions(+) commit 298e70e2ca3c2eda3219a3bf6ba28d9605aef707 Author: Alberto Garcia Date: Mon Feb 23 14:50:51 2009 +0200 Fixed typos ChangeLog | 8 ++++++++ src/metadata.c | 2 +- src/uimisc.c | 2 +- src/vgl-bookmark-mgr.c | 2 +- src/xmlrpc.c | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) commit 32605a7be7995fac57ecfc6f3ea06afff346b306 Author: Alberto Garcia Date: Mon Feb 23 02:38:15 2009 +0200 Use g_static_mutex_get_mutex() instead of creating a separate GMutex ChangeLog | 5 +++++ src/metadata.c | 19 ++++++------------- 2 files changed, 11 insertions(+), 13 deletions(-) commit 4248c44ecc71d03a2b361b945ae50e90f68e07e5 Author: Alberto Garcia Date: Mon Feb 23 02:38:04 2009 +0200 Replace GMutex by faster g_atomic_* operations. ChangeLog | 8 ++++++++ src/audio.c | 18 +++++++----------- src/playlist.c | 14 +++++--------- src/scrobbler.c | 13 ++----------- 4 files changed, 22 insertions(+), 31 deletions(-) commit 645d2678fb5817f5c38d027b03f31994fadfb079 Author: Alberto Garcia Date: Wed Feb 11 03:12:21 2009 +0200 Update copyright on about dialog ChangeLog | 4 ++++ src/uimisc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit df3cdaf4500db556eb5f9efa05a99372d6f80474 Author: Alberto Garcia Date: Wed Feb 11 03:06:41 2009 +0200 Set Igalia as copyright holder ChangeLog | 11 +++++++++++ Makefile.am | 2 +- README | 4 ++-- debian/changelog | 1 + debian/copyright | 4 +++- scripts/vagalumectl | 3 ++- src/Makefile.am | 2 +- src/audio.c | 4 +++- src/audio.h | 4 +++- src/connection.c | 4 +++- src/connection.h | 4 +++- src/controller.c | 4 +++- src/controller.h | 4 +++- src/dbus.c | 6 ++++-- src/dbus.h | 5 ++++- src/dlwin.c | 4 +++- src/dlwin.h | 4 +++- src/globaldefs.h | 4 +++- src/http.c | 4 +++- src/http.h | 4 +++- src/imstatus.c | 6 ++++-- src/imstatus.h | 4 +++- src/main.c | 4 +++- src/metadata.c | 4 +++- src/metadata.h | 4 +++- src/playlist.c | 4 +++- src/playlist.h | 4 +++- src/protocol.c | 4 +++- src/protocol.h | 4 +++- src/radio.c | 4 +++- src/radio.h | 4 +++- src/scrobbler.c | 3 +++ src/scrobbler.h | 3 ++- src/uimisc.c | 3 ++- src/uimisc.h | 3 ++- src/userconfig.c | 3 ++- src/userconfig.h | 3 ++- src/util.c | 4 +++- src/util.h | 4 +++- src/vgl-bookmark-mgr.c | 4 +++- src/vgl-bookmark-mgr.h | 4 +++- src/vgl-bookmark-window.c | 4 +++- src/vgl-bookmark-window.h | 4 +++- src/vgl-main-window.c | 4 +++- src/vgl-main-window.h | 4 +++- src/vgl-sb-plugin.c | 5 ++++- src/vgl-sb-plugin.h | 5 ++++- src/vgl-tray-icon.c | 5 ++++- src/vgl-tray-icon.h | 5 ++++- src/xmlrpc.c | 4 +++- src/xmlrpc.h | 4 +++- 51 files changed, 155 insertions(+), 51 deletions(-) commit 5d6929f017adc46c053f778bf939561cf79b2c97 Author: Alberto Garcia Date: Tue Feb 10 14:10:13 2009 +0200 Mixer support for non-Maemo targets using GStreamer's GstMixer plugins ChangeLog | 22 ++++++++++ configure.ac | 13 ++++++ debian/changelog | 2 +- debian/control | 2 +- src/audio.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++++- src/audio.h | 2 + src/main.c | 10 ++++- src/vgl-main-window.c | 16 ++++++- vagalume.1 | 5 ++- 9 files changed, 181 insertions(+), 8 deletions(-) commit 305ba7fd4bfec0cc92823fa58760269147fffb0b Author: Alberto Garcia Date: Sat Jan 31 17:58:03 2009 +0200 Check for Gtk >= 2.12 to use gtk_entry_completion_set_inline_selection() ChangeLog | 6 ++++++ configure.ac | 11 +++++++++++ src/uimisc.c | 2 ++ 3 files changed, 19 insertions(+) commit b7c33572de0bc8dc943c07e4bf59d9ee6c2ace9f Author: Alberto Garcia Date: Sat Jan 31 17:41:14 2009 +0200 Check for NULL in the playlist (radio) title. ChangeLog | 6 ++++++ po/POTFILES.in | 1 + src/protocol.c | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) commit 17140e41e8f990bfb6f385874d27a3ebd6697401 Author: Alberto Garcia Date: Mon Jan 26 03:57:21 2009 +0200 Use reference counting to avoid copying the RspSession object ChangeLog | 7 +++++++ src/scrobbler.c | 63 ++++++++++++++++++++++++++++++------------------------- 2 files changed, 42 insertions(+), 28 deletions(-) commit feadeb3f37431b305be249bb75281ccc2e3f1379 Author: Alberto Garcia Date: Mon Jan 26 03:57:16 2009 +0200 Use VglController's signals for scrobbling. Keep queue of unsubmitted tracks ChangeLog | 19 +++ src/controller.c | 211 ++------------------------------ src/scrobbler.c | 354 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- src/scrobbler.h | 24 +--- 4 files changed, 372 insertions(+), 236 deletions(-) commit 7c0075af2f1bcdd4638b7c3d2c40e5fee290b372 Author: Alberto Garcia Date: Mon Jan 26 03:57:11 2009 +0200 Don't stop audio and emit "track-stopped" if no track is being played. ChangeLog | 5 +++++ src/controller.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) commit 5dfcf9097848ba20a1eb7d6249c2d16186805bf3 Author: Alberto Garcia Date: Mon Jan 26 03:57:06 2009 +0200 Include the RspRating in the "track-stopped" signal ChangeLog | 7 +++++++ src/controller.c | 7 ++++--- src/vgl-tray-icon.c | 3 ++- 3 files changed, 13 insertions(+), 4 deletions(-) commit 45841201a27fbf2b0e3e252e4344c1a4c3184c70 Author: Alberto Garcia Date: Mon Jan 26 03:57:01 2009 +0200 Fix memory leak in when reading the configuration file ChangeLog | 4 ++++ src/userconfig.c | 1 + 2 files changed, 5 insertions(+) commit 6340abfb782a04270d9e276dd6ac0755a40e95a2 Author: Alberto Garcia Date: Mon Jan 26 03:56:56 2009 +0200 Make sure that we don't return a pointer to a destroyed RspSession ChangeLog | 5 +++++ src/scrobbler.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) commit 99ce07163b139654b318cbb94914d829b464b7c0 Author: Alberto Garcia Date: Tue Jan 20 01:54:51 2009 +0200 Use CLAMP to ensure that a variable is between two values. ChangeLog | 6 ++++++ src/audio.c | 6 ++---- src/dlwin.c | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) commit f35008adda42bb1f7ac381eb4e6ac7af53de82b2 Author: Alberto Garcia Date: Sun Jan 18 19:36:07 2009 +0200 Use DEB_INSTALL_* variables instead of 'dirs' and 'docs' files ChangeLog | 6 ++++++ debian/changelog | 1 + debian/dirs | 1 - debian/docs | 6 ------ debian/rules | 3 +++ 5 files changed, 10 insertions(+), 7 deletions(-) commit 3ad547178d5b6a1ec57643dfcd6140cc834a1cc7 Author: Alberto Garcia Date: Thu Jan 8 21:14:39 2009 +0200 Use gconfaudiosink in Gnome ChangeLog | 6 ++++++ src/audio.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) commit 6185047145b25b732fdfb3cc275d97baf45c214f Author: Alberto Garcia Date: Tue Dec 23 01:45:17 2008 +0200 Autocompletion support for combo box entries. ChangeLog | 6 ++++++ src/uimisc.c | 40 +++++++++++++++++++++++++++------------- 2 files changed, 33 insertions(+), 13 deletions(-) commit d01926e879ab7aa063863ad8a3821b4112a7fac4 Author: Alberto Garcia Date: Tue Dec 23 01:01:54 2008 +0200 New menu option to play any user's tag radio ChangeLog | 9 ++++++++ src/controller.c | 40 +++++++++++++++++++++++++++++++-- src/uimisc.c | 60 +++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 2 ++ src/vgl-main-window.c | 7 +++++- 5 files changed, 115 insertions(+), 3 deletions(-) commit 85957b056b17e4a2e615cd60b98ff16dc0aac7eb Author: Alberto Garcia Date: Tue Nov 25 17:45:57 2008 +0200 Init DBUS threads even if "Set IM status" is not enabled. ChangeLog | 5 +++++ src/main.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) commit 98d9af4a25a0fbffed715fccaf24db50495a968f Author: Alberto Garcia Date: Sat Nov 22 14:41:49 2008 +0200 Minor optimization in imstatus:usercfg_changed_cb ChangeLog | 5 +++++ src/imstatus.c | 31 ++++++++++++++----------------- 2 files changed, 19 insertions(+), 17 deletions(-) commit c7d648576c8b0f65970714c746ba339299a2af9e Author: Alberto Garcia Date: Sat Nov 22 04:33:58 2008 +0200 Manage IM status updates using the signals emitted by the controller ChangeLog | 13 +++++++ src/Makefile.am | 3 +- src/controller.c | 14 +++---- src/imstatus.c | 109 ++++++++++++++++++++++++++++++++++++++---------------- src/imstatus.h | 16 +------- 5 files changed, 101 insertions(+), 54 deletions(-) commit ad3ff5cce721ac74d6efb5894c8ab3bedd97c463 Author: Alberto Garcia Date: Sat Nov 22 04:33:50 2008 +0200 Manage D-BUS notifications using the signals emitted by the controller ChangeLog | 13 +++++++++++++ src/Makefile.am | 3 +-- src/controller.c | 40 +++++++++++++++++++++------------------- src/dbus.c | 31 +++++++++++++++++++++++++++++-- src/dbus.h | 16 ++-------------- 5 files changed, 66 insertions(+), 37 deletions(-) commit 8b96bd5a0f71104400a04099618b7819e04c4138 Author: Alberto Garcia Date: Sat Nov 22 04:33:41 2008 +0200 Manage tray icon notifications using the signals emitted by the controller ChangeLog | 9 +++++++++ src/controller.c | 40 +++++---------------------------------- src/vgl-tray-icon.c | 52 ++++++++++++++++++++++++++++++++++++++++----------- src/vgl-tray-icon.h | 5 ++--- 4 files changed, 57 insertions(+), 49 deletions(-) commit 23e42fd72fd750be01d9082b53d7887b16190f5e Author: Alberto Garcia Date: Sat Nov 22 04:33:31 2008 +0200 Emit signals to notify changes in the controller ChangeLog | 14 +++++++++ src/controller.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/controller.h | 42 +++++++++++++++++++++++++++ 3 files changed, 141 insertions(+) commit a90ec628319f301c6ae231972f4a342d136f89b6 Author: Alberto Garcia Date: Sun Nov 9 07:35:14 2008 +0200 Fix translation string ChangeLog | 4 ++++ src/vgl-main-window.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit f5a792ac433997e48a1647b3dc3229d296088e21 Author: Alberto Garcia Date: Sun Nov 9 07:35:01 2008 +0200 Store all tray icon/status bar menu items and handlers using an array ChangeLog | 12 +++ src/vgl-sb-plugin.c | 216 ++++++++++++++++++++++------------------------ src/vgl-tray-icon.c | 235 ++++++++++++++++++++++----------------------------- 3 files changed, 212 insertions(+), 251 deletions(-) commit d5fdbdd9ddda277e5c38c524ffa5ea08b0c5abba Author: Alberto Garcia Date: Sun Nov 9 07:34:34 2008 +0200 Updated POTFILES.in ChangeLog | 4 ++++ po/POTFILES.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 14d3aec8b388e8daf1a85b94cf9165e13e9fb32a Author: Alberto Garcia Date: Sun Nov 9 05:43:45 2008 +0200 Use stock menu items for settings, stop, play and next ChangeLog | 9 +++++++++ src/uimisc.h | 8 -------- src/vgl-main-window.c | 13 +++++-------- src/vgl-tray-icon.c | 13 +++++-------- 4 files changed, 19 insertions(+), 24 deletions(-) commit 675dc17cc201e91d6305b8e48d945cfa79a72b95 Author: Alberto Garcia Date: Sun Nov 9 05:43:37 2008 +0200 Added Luca Bruno to AUTHORS file AUTHORS | 3 +++ ChangeLog | 4 ++++ 2 files changed, 7 insertions(+) commit 265b4330d26c6f5e5ee65c050fb492fec3f723c8 Author: Alberto Garcia Date: Sun Nov 9 05:43:31 2008 +0200 Added "About" to tray icon menu ChangeLog | 19 ++++++++++++ src/controller.c | 9 ++++++ src/controller.h | 1 + src/uimisc.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 1 + src/vgl-main-window.c | 77 ++---------------------------------------------- src/vgl-tray-icon.c | 17 +++++++++-- 7 files changed, 125 insertions(+), 77 deletions(-) commit 701fb31ce9b9d894a9afcc291e990b76f93a2f41 Author: Alberto Garcia Date: Sun Nov 9 05:43:21 2008 +0200 Make apply_icon_theme receive a GtkButton, not a GObject ChangeLog | 3 +++ src/vgl-main-window.c | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) commit ebd2453b16e20d7fdde424d73dc093bd6328d896 Author: Alberto Garcia Date: Sun Nov 9 05:43:14 2008 +0200 Pack help button in preferences as secondary button ChangeLog | 1 + src/uimisc.c | 2 ++ 2 files changed, 3 insertions(+) commit 02f5e6ffef29cfcd8438a4f503a40104aa2c7531 Author: Alberto Garcia Date: Sun Nov 9 05:43:07 2008 +0200 Reorder actions in the base dialog ChangeLog | 2 ++ src/uimisc.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) commit 73bbf775f15fd1c128d6c41cbf7e35df01ec0cac Author: Alberto Garcia Date: Sun Nov 9 05:43:00 2008 +0200 Add url and email hooks to the about dialog ChangeLog | 5 +++++ src/vgl-main-window.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+) commit 254a12e704969aaa28949efdea35ddbad6e271fd Author: Alberto Garcia Date: Sun Nov 9 05:42:53 2008 +0200 Added function launch_url using GIO ChangeLog | 4 ++++ configure.ac | 11 +++++++++++ src/util.c | 26 +++++++++++++++++++++++++- src/util.h | 9 +++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) commit f0561d325266a0c863fe80a5628a78abfc94208b Author: Alberto Garcia Date: Sun Nov 9 05:42:43 2008 +0200 Toggle window visibility with is_active() ChangeLog | 1 + src/vgl-main-window.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit bc86aeb91e2966929e3d4e2521c14013d1d13e0b Author: Alberto Garcia Date: Sun Nov 9 05:42:36 2008 +0200 Reorganize Actions menu items and images to them ChangeLog | 4 ++++ src/vgl-main-window.c | 62 ++++++++++++++++++++++++++++++++----------------- 2 files changed, 45 insertions(+), 21 deletions(-) commit c1eafa1ec24beb1840b5f9ff1ab2669b828ea1f3 Author: Luca Bruno Date: Sun Nov 9 05:42:29 2008 +0200 Generalize action menu items and remove show app in the tray icon popup menu ChangeLog | 11 +++++++ src/uimisc.c | 23 +++++++++++++ src/uimisc.h | 22 +++++++++++++ src/vgl-tray-icon.c | 90 ++++++++++++--------------------------------------- 4 files changed, 77 insertions(+), 69 deletions(-) commit 2aed4f1dd19fbc75335312f81f2447893149c81a Author: Alberto Garcia Date: Sat Nov 1 22:57:37 2008 +0200 Set main window type using a constructor property ChangeLog | 6 ++++++ src/vgl-main-window.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) commit bea5b16d497b1f61ecf0135c47216234680bc5dc Author: Alberto Garcia Date: Sat Nov 1 03:33:58 2008 +0200 Switched to cdbs ChangeLog | 10 +++++++ Makefile.am | 8 +++--- debian/changelog | 10 +++++++ debian/control | 2 +- debian/control.maemo2 | 2 +- debian/control.maemo3 | 2 +- debian/control.maemo4 | 2 +- debian/rules | 71 ++++--------------------------------------------- 8 files changed, 34 insertions(+), 73 deletions(-) commit 10b71318613df559a69290da74b517396bf60a7e Author: Alberto Garcia Date: Fri Oct 17 13:52:57 2008 +0200 Fixed Spanish translation ChangeLog | 4 ++++ po/es.po | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit c9c6dbad6bba64750cda18d467d053f1299dd52e Author: Alberto Garcia Date: Fri Oct 10 20:56:58 2008 +0200 Remove vagalume.desktop.in in maintainer-clean ChangeLog | 4 ++++ Makefile.am | 1 + 2 files changed, 5 insertions(+) commit 5eb6ec49d177f701eb32043496b5c71f05b67a0c Author: Alberto Garcia Date: Fri Oct 10 18:44:19 2008 +0200 Use intltool, add translation support for vagalume.desktop ChangeLog | 12 ++++++++++++ Makefile.am | 18 +++++++++--------- autogen.sh | 1 + configure.ac | 20 +++++++++----------- data/vagalume.desktop.in | 9 --------- data/vagalume.desktop.in.in | 9 +++++++++ debian/control | 2 +- debian/control.maemo2 | 2 +- debian/control.maemo3 | 2 +- debian/control.maemo4 | 2 +- po/LINGUAS | 9 +++++++++ po/POTFILES.in | 1 + 12 files changed, 54 insertions(+), 33 deletions(-) commit 231ddf07deff4f38237d958748ee7d66a498c4ff Author: Alberto Garcia Date: Fri Oct 10 15:51:20 2008 +0200 Add compatibility for GLib versions without g_timeout_add_seconds() ChangeLog | 10 ++++++++++ configure.ac | 11 +++++++++++ src/controller.c | 2 +- src/globaldefs.h | 5 +++++ 4 files changed, 27 insertions(+), 1 deletion(-) commit 3ffc92d53f0ff0351b7c73ec08481beb5cb127c9 Author: Alberto Garcia Date: Fri Oct 10 15:34:00 2008 +0200 Fix compilation error ChangeLog | 4 ++++ src/vgl-sb-plugin.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit e534b48c7248cfb632a8fd160976faacd694ffe0 Author: Alberto Garcia Date: Fri Oct 10 12:43:38 2008 +0200 Add priv field to object structures ChangeLog | 9 +++++++ src/vgl-bookmark-mgr.c | 32 +++++++++--------------- src/vgl-bookmark-mgr.h | 6 +++-- src/vgl-bookmark-window.c | 44 +++++++++++++------------------- src/vgl-bookmark-window.h | 6 +++-- src/vgl-main-window.c | 61 +++++++++++++++++++-------------------------- src/vgl-main-window.h | 6 +++-- src/vgl-sb-plugin.c | 30 +++++++++++----------- src/vgl-sb-plugin.h | 6 +++-- src/vgl-tray-icon.c | 21 ++++++++-------- src/vgl-tray-icon.h | 2 ++ 11 files changed, 105 insertions(+), 118 deletions(-) commit 2a7b783770ad20979ac9d41e39c3214f334808bb Author: Alberto Garcia Date: Tue Oct 7 02:29:34 2008 +0200 Use only one button in the download window ChangeLog | 5 +++ src/dlwin.c | 119 +++++++++++++++++++++++------------------------------------ 2 files changed, 52 insertions(+), 72 deletions(-) commit 38a6cf5f271f4c1f4f696f73742c0d2ad814b89e Author: Alberto Garcia Date: Mon Oct 6 03:16:43 2008 +0200 Don't make tables homogeneous in the settings dialog. ChangeLog | 7 +++++++ src/uimisc.c | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) commit acc8373f0d95a71351dbca0039ee099a73c705c5 Author: Alberto Garcia Date: Mon Oct 6 03:16:35 2008 +0200 Don't download a track if it's already being downloaded ChangeLog | 12 ++++++++++++ src/controller.c | 29 ++++++++++++++++++++++++++--- src/dlwin.c | 10 +++++++++- src/dlwin.h | 4 +++- src/playlist.h | 1 + 5 files changed, 51 insertions(+), 5 deletions(-) commit ede1ee0068835670877f7f9c0f3161adf7b3541c Author: Alberto Garcia Date: Mon Oct 6 03:16:27 2008 +0200 New configuration setting to download free tracks automatically ChangeLog | 19 +++++++++++ TODO | 1 - src/controller.c | 86 +++++++++++++++++++++++++++++++++++++++++++------ src/controller.h | 2 +- src/uimisc.c | 21 ++++++++---- src/userconfig.c | 7 +++- src/userconfig.h | 1 + src/vgl-main-window.c | 2 +- 8 files changed, 119 insertions(+), 20 deletions(-) commit 3e19f7d0eed0bb6f63134ed8674ddec84d49f527 Author: Alberto Garcia Date: Sun Sep 28 01:25:30 2008 +0200 New "Add bookmark" and "Bookmark this radio" menu entries ChangeLog | 14 +++++++++++++ src/controller.c | 52 ++++++++++++++++++++++++++++++++----------------- src/controller.h | 9 ++++++++- src/vgl-main-window.c | 29 +++++++++++++++++++-------- src/vgl-main-window.h | 2 +- 5 files changed, 78 insertions(+), 28 deletions(-) commit 81e9a493d4b4d186c6b59a028e254b40343fc946 Author: Alberto Garcia Date: Fri Sep 26 00:15:37 2008 +0200 Fix ChangeLog format ChangeLog | 1036 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 518 insertions(+), 518 deletions(-) commit 99582e6d356b92c201e0087c209c593c16c370aa Author: Alberto Garcia Date: Thu Sep 25 18:38:45 2008 +0200 Open output file in binary mode when downloading free tracks ChangeLog | 5 +++++ src/http.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit 640c23c8fe1d2a8f587896086d1530963f5d1b2d Author: Alberto Garcia Date: Tue Sep 9 01:28:38 2008 +0200 debian/control: Move Homepage field to the source paragraph. ChangeLog | 4 ++++ debian/control | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 72d905c9a5cec57f260662df5c0855168b6dd789 Author: Alberto Garcia Date: Sun Sep 7 17:23:51 2008 +0200 Hide error message if 'pidof' or 'pgrep' don't exist. ChangeLog | 5 +++++ scripts/vagalumectl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) commit 7aed3aa057f0aabb2c0145ef9c6c4d77de95da0c Author: Alberto Garcia Date: Sat Sep 6 04:17:42 2008 +0200 New feature to stop playback after a given time ("sleep timer") ChangeLog | 27 +++++++++ src/controller.c | 65 ++++++++++++++++++--- src/controller.h | 8 ++- src/uimisc.c | 153 +++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 3 + src/vgl-main-window.c | 16 ++---- 6 files changed, 253 insertions(+), 19 deletions(-) commit ffb3237ca58be6800e082fa1d6c5a99821875465 Author: Alberto Garcia Date: Fri Sep 5 14:23:55 2008 +0200 Add {station} keyword to the IM status template. ChangeLog | 6 ++++++ src/imstatus.c | 1 + src/uimisc.c | 1 + 3 files changed, 8 insertions(+) commit 005ad7edab2dc9358afeb8375abedb8350d219f5 Author: Alberto Garcia Date: Thu Sep 4 13:41:50 2008 +0200 2008-09-04 Alberto Garcia * scripts/vagalumectl: Use pgrep if pidof is not available. * configure.ac: Add configure setting to disable D-BUS support. (thanks, Bernhard Fröhlich) ChangeLog | 8 ++++++++ configure.ac | 25 ++++++++++++++++++------- scripts/vagalumectl | 16 ++++++++-------- 3 files changed, 34 insertions(+), 15 deletions(-) commit 0b3b4b248d0902672df8de764540cd4c19efaa13 Author: Alberto Garcia Date: Tue Sep 2 13:19:15 2008 +0200 2008-09-02 Alberto Garcia * debian/watch: Added debian/watch file * debian/control (Standards-Version): Updated to 3.8.0 ChangeLog | 6 ++++++ debian/control | 2 +- debian/watch | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) commit bbf213a52dd62a21837455adf5ca9f7cfac41963 Author: Alberto Garcia Date: Mon Sep 1 16:14:11 2008 +0200 === Released Vagalume 0.7 === ChangeLog | 4 ++++ NEWS | 2 +- debian/changelog | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) commit 8be7d32379485b125391174d0c7f4a95fe6a3064 Author: Tim Wegener Date: Mon Sep 1 16:08:00 2008 +0200 2008-09-01 Tim Wegener * vagalume.spec: Added 'libtool' to BuildRequires ChangeLog | 4 ++++ vagalume.spec | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit f3a91ebec6b9c6cd0ced91a7450477c5532fdf90 Author: Alberto Garcia Date: Mon Sep 1 13:33:12 2008 +0200 2008-09-01 Alberto Garcia * vagalume.spec: Updated for Vagalume 0.7 * NEWS: Fixed typo ChangeLog | 6 ++++++ NEWS | 2 +- vagalume.spec | 14 +++++++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) commit d9a2c5c7573cda542dcf5c0771b31faad9e69818 Author: Alberto Garcia Date: Sat Aug 30 02:35:01 2008 +0200 2008-08-30 Alberto Garcia * debian/changelog: Added entry for Vagalume 0.7 * debian/rules: Removed extra comments. * README: Updated README file. * INSTALL: Updated installation instructions ChangeLog | 10 ++++++++++ INSTALL | 25 ++++++++++++++++++------- README | 4 ++-- debian/changelog | 6 ++++++ debian/rules | 3 --- 5 files changed, 36 insertions(+), 12 deletions(-) commit fbf9087c6299f61150f0d4255f0cf2daf1a1c320 Author: Alberto Garcia Date: Sat Aug 30 02:08:58 2008 +0200 2008-08-30 Alberto Garcia * vagalume.1 * src/userconfig.c (get_cfg_filename): config renamed to config.xml ChangeLog | 5 +++++ src/userconfig.c | 2 +- vagalume.1 | 7 +++++-- 3 files changed, 11 insertions(+), 3 deletions(-) commit 5c97bebd7a04e8a205d90cfa8f2845f3f362a3b3 Author: Alberto Garcia Date: Sat Aug 30 02:00:58 2008 +0200 2008-08-30 Alberto Garcia * NEWS * configure.ac: Updated for the 0.7 release ChangeLog | 5 +++++ NEWS | 19 +++++++++++++++++++ configure.ac | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) commit 431c8dbc244d7ba21d6d933831340ad6f64111cf Author: Alberto Garcia Date: Sat Aug 30 01:32:53 2008 +0200 2008-08-30 Alberto Garcia * build-package.sh * debian/control.maemo2 * debian/control.maemo3 * debian/control.maemo4: Different control files for each Maemo version. ChangeLog | 8 ++++++++ build-package.sh | 14 +++++++++++++- debian/control.maemo | 46 ---------------------------------------------- debian/control.maemo2 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ debian/control.maemo3 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ debian/control.maemo4 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 159 insertions(+), 47 deletions(-) commit 51b73f7bfa034ecddebc414647ea11f34b7fab07 Author: Alberto Garcia Date: Fri Aug 29 18:54:50 2008 +0200 2008-08-29 Alberto Garcia * debian/rules: Change the variable used to choose the target platform. ChangeLog | 5 +++++ debian/rules | 12 +++--------- 2 files changed, 8 insertions(+), 9 deletions(-) commit 5665a5d32ad5502fe38eff8ede4d2f9c143fac23 Author: Alberto Garcia Date: Fri Aug 29 18:35:08 2008 +0200 2008-08-29 Alberto Garcia * src/controller.c (controller_stop_playing) (controller_quit_app): Don't update the window when the app is about to be shut down. This fixes a crash in Moblin. ChangeLog | 6 ++++++ src/controller.c | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) commit ccaef13c2a4e6a51435c91af5f52b84fb29c4e12 Author: Alberto Garcia Date: Fri Aug 29 17:56:06 2008 +0200 2008-08-29 Alberto Garcia * configure.ac: Enable dbus support for Moblin * moblin/*: Remove unnecessary files. ChangeLog | 5 +++++ configure.ac | 3 +++ moblin/create-moblin-vagalume-button.sh | 13 ------------- moblin/vagalume.desktop | 13 ------------- 4 files changed, 8 insertions(+), 26 deletions(-) commit 3c37fdcf9ead07cf7e996f073cf75e4833f19e5c Author: Alberto Garcia Date: Fri Aug 29 17:03:12 2008 +0200 2008-08-29 Alberto Garcia * src/vgl-bookmark-window.c (drag_end_cb, find_bookmark_by_id) (play_selected_row, edit_button_clicked, delete_button_clicked): Use gtk_tree_model_get() instead of gtk_tree_model_get_value() ChangeLog | 6 ++++++ src/vgl-bookmark-window.c | 39 +++++++++++---------------------------- 2 files changed, 17 insertions(+), 28 deletions(-) commit 0e19c2481cd19260db3a4d62d99783212bf8accd Author: Alberto Garcia Date: Fri Aug 29 14:01:10 2008 +0200 2008-08-29 Alberto Garcia * vagalumectl.1: Minor updates to the man page. ChangeLog | 4 ++++ vagalumectl.1 | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit 0e0ae0810ee9f963be0b487601ace229092140c4 Author: Alberto Garcia Date: Fri Aug 29 01:10:51 2008 +0200 2008-08-29 Alberto Garcia * Makefile.am * data/vagalume.desktop.in (X-Window-Icon): Use PIXMAPDIR instead of ICONDIR, which is no longer used. ChangeLog | 6 ++++++ Makefile.am | 2 +- data/vagalume.desktop.in | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) commit 1af0609e304eac3456f4f96494af22897d7419e3 Author: Alberto Garcia Date: Fri Aug 29 00:46:46 2008 +0200 2008-08-29 Alberto Garcia * data/vagalume.desktop.in * data/vagalume.desktop.maemo * data/vagalume.desktop.moblin * Makefile.am (data/vagalume.desktop): Create a different .desktop file in each platform. ChangeLog | 8 ++++++++ Makefile.am | 3 +++ data/vagalume.desktop.in | 9 --------- data/vagalume.desktop.maemo | 9 +++++++++ data/vagalume.desktop.moblin | 1 + 5 files changed, 21 insertions(+), 9 deletions(-) commit a01456eaa4665336881c6a3791e054f25ea59d17 Author: Alberto Garcia Date: Fri Aug 29 00:29:10 2008 +0200 2008-08-29 Alberto Garcia * INSTALL * Makefile.am * configure.ac * src/vgl-main-window.c: Add support for Moblin-based devices with a resolution of 800x480 ChangeLog | 8 ++++++++ INSTALL | 3 ++- Makefile.am | 2 +- configure.ac | 28 +++++++++++++++++++++++++++- data/cover/1024x600/cover.png | Bin 0 -> 9928 bytes data/cover/800x480/cover.png | Bin 0 -> 6577 bytes data/cover/desktop/cover.png | Bin 0 -> 3698 bytes data/gnome/cover.png | Bin 3698 -> 0 bytes data/maemo/cover.png | Bin 6577 -> 0 bytes data/moblin/cover.png | Bin 9928 -> 0 bytes src/vgl-main-window.c | 4 ++-- 11 files changed, 40 insertions(+), 5 deletions(-) commit 4aebee71b4828ecbcf767287a25ebc7a684a074c Author: Alberto Garcia Date: Thu Aug 28 15:51:56 2008 +0200 2008-08-28 Alberto Garcia * src/controller.c (controller_run_app): Use a weak pointer to set tray_icon to NULL. ChangeLog | 5 +++++ src/controller.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) commit 1fc824a05ed2322a37562e5338ef075c45406a0d Author: Alberto Garcia Date: Thu Aug 28 15:38:43 2008 +0200 2008-08-28 Alberto Garcia * src/vgl-main-window.c (vgl_main_window_init) (vgl_main_window_destroy): Don't call gtk_main_quit() after destroying the window, let the handler of the "destroy" signal do it. * src/controller.c (controller_run_app): Use a weak pointer to set mainwin to NULL after it has been destroyed. ChangeLog | 11 +++++++++++ src/controller.c | 2 +- src/vgl-main-window.c | 3 +-- 3 files changed, 13 insertions(+), 3 deletions(-) commit 8b7939df3774dae0edf629902e3fc371139bf0e2 Author: Alberto Garcia Date: Mon Aug 18 22:51:15 2008 +0200 2008-08-18 Alberto Garcia * src/util.c (lastfm_url_encode): Minor updates. * TODO: Update TODO file. ChangeLog | 6 ++++++ TODO | 1 - src/util.c | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) commit 2751ce6f99892e87b594094efd29af3c3849b6f2 Author: Alberto Garcia Date: Mon Aug 18 21:48:32 2008 +0200 2008-08-18 Alberto Garcia * src/playlist.h * src/playlist.c (lastfm_track_destroy) (lastfm_track_set_cover_image) * src/protocol.c (lastfm_parse_track): Make all pointers in LastfmTrack const. ChangeLog | 8 ++++++++ src/playlist.c | 22 +++++++++++----------- src/playlist.h | 20 ++++++++++---------- src/protocol.c | 6 ++++-- 4 files changed, 33 insertions(+), 23 deletions(-) commit 6a85e4ba81c0db3ca6c771d84d68f3d2b8c9df1b Author: Alberto Garcia Date: Mon Aug 18 21:11:48 2008 +0200 2008-08-18 Alberto Garcia * src/controller.c (renew_rsp_session): New function to renew a RSP session. (scrobble_track_thread) (set_nowplaying_thread): Renew the RSP session if it has expired. * src/scrobbler.c (rsp_set_nowplaying, rsp_scrobble): Detect correctly the BADSESSION response. Fixes: #2554 ChangeLog | 12 ++++++++++++ src/controller.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- src/scrobbler.c | 4 ++-- 3 files changed, 63 insertions(+), 6 deletions(-) commit f3df6dcd4e9f49ebd1dbc11f193fd71f1f73e547 Author: Alberto Garcia Date: Mon Aug 18 04:11:15 2008 +0200 2008-08-18 Alberto Garcia * src/metadata.c (lastfm_get_user_track_tags) (lastfm_get_track_tags) * src/xmlrpc.c (tag_track, recommend_track): When dealing with album data, use the artist name from the album rather than the one from the track. * src/playlist.h * src/playlist.c (lastfm_track_destroy) * src/protocol.c (lastfm_parse_track): Store the artist's album rather than the album page URL. ChangeLog | 14 ++++++++++++++ src/metadata.c | 10 ++++++++-- src/playlist.c | 4 +++- src/playlist.h | 3 ++- src/protocol.c | 25 +++++++++++++++++++++---- src/xmlrpc.c | 18 ++++-------------- 6 files changed, 52 insertions(+), 22 deletions(-) commit d89dec011780fc5b58ba3ae3f24099c23aa1bdd2 Author: Alberto Garcia Date: Mon Aug 18 03:17:11 2008 +0200 2008-08-18 Alberto Garcia * src/vgl-main-window.c (vgl_main_window_set_state): Enable the bookmarks menu when stopped or playing. ChangeLog | 5 +++++ src/vgl-main-window.c | 2 ++ 2 files changed, 7 insertions(+) commit 0e934ff956d09f53afad12cd2355ebdf0f39c50e Author: Alberto Garcia Date: Mon Aug 18 03:10:35 2008 +0200 2008-08-18 Alberto Garcia * src/util.h * src/util.c (lastfm_url_decode, lastfm_url_encode) * src/protocol.c (lastfm_parse_playlist): New functions to encode/decode using Last.fm URL format. * src/playlist.h * src/playlist.c (lastfm_track_destroy) * src/protocol.c (lastfm_parse_track): Store the album URL in LastfmTrack. * src/xmlrpc.c (tag_track): When tagging an album, get the artist name from the Last.fm album URL rather thant using the interpreter of the current song. * src/metadata.c (lastfm_get_track_tags): Use Last.fm URL encoding to get existing tags. Fixes: #2741 ChangeLog | 21 ++++++++++++++++ src/metadata.c | 7 +++--- src/playlist.c | 1 + src/playlist.h | 1 + src/protocol.c | 18 ++++++-------- src/util.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- src/util.h | 2 ++ src/xmlrpc.c | 18 ++++++++++++-- 8 files changed, 124 insertions(+), 17 deletions(-) commit 01b500eb46c2a25917dbea1a3991211851e6f10e Author: Alberto Garcia Date: Mon Aug 18 02:43:58 2008 +0200 2008-08-18 Alberto Garcia * src/vgl-bookmark-mgr.h * src/vgl-bookmark-window.c (vgl_bookmark_window_close) * src/vgl-bookmark-mgr.c (vgl_bookmark_mgr_load_from_disk) (vgl_bookmark_mgr_save_to_disk, vgl_bookmark_mgr_init) (vgl_bookmark_mgr_finalize, vgl_bookmark_mgr_add_bookmark) (vgl_bookmark_mgr_remove_bookmark) (vgl_bookmark_mgr_change_bookmark, vgl_bookmark_mgr_reorder): New 'dirty' flag: don't save the bookmark file unless it has been modified. * src/vgl-main-window.c (create_main_menu) (vgl_main_window_set_state): Disable the whole bookmarks menu when the UI is in connecting state. * src/controller.c (controller_add_bookmark): Save bookmark file after adding a new bookmark from the menu. (controller_run_app): Save bookmark file before closing the app, if necessary. ChangeLog | 22 ++++++++++++++++++++++ src/controller.c | 2 ++ src/vgl-bookmark-mgr.c | 23 ++++++++++++++++++++--- src/vgl-bookmark-mgr.h | 2 +- src/vgl-bookmark-window.c | 2 +- src/vgl-main-window.c | 6 +++--- 6 files changed, 49 insertions(+), 8 deletions(-) commit c84f8eb325ac39496b874258cd6acbfe41202d2b Author: Alberto Garcia Date: Sat Aug 16 23:23:54 2008 +0200 2008-08-16 Alberto Garcia * src/controller.c * src/imstatus.[ch] * src/uimisc.[ch] * src/userconfig.[ch] * src/vgl-bookmark-mgr.c More type renames: lastfm_usercfg -> VglUserCfg ChangeLog | 10 +++++++++ src/controller.c | 8 +++---- src/imstatus.c | 2 +- src/imstatus.h | 4 ++-- src/uimisc.c | 28 ++++++++++++------------- src/uimisc.h | 2 +- src/userconfig.c | 54 ++++++++++++++++++++++++------------------------ src/userconfig.h | 22 ++++++++++---------- src/vgl-bookmark-mgr.c | 2 +- 9 files changed, 71 insertions(+), 61 deletions(-) commit c4eb76fc55a245464c462e592de357120dd875f1 Author: Alberto Garcia Date: Sat Aug 16 22:57:12 2008 +0200 2008-08-16 Alberto Garcia * src/controller.c * src/protocol.[ch] * src/scrobbler.[ch]: More type renames: lastfm_session -> LastfmSession lastfm_err -> LastfmErr ChangeLog | 9 +++++++++ src/controller.c | 14 +++++++------- src/protocol.c | 28 ++++++++++++++-------------- src/protocol.h | 18 +++++++++--------- src/scrobbler.c | 2 +- src/scrobbler.h | 2 +- 6 files changed, 41 insertions(+), 32 deletions(-) commit 4c2b8a51d667e2ff68b3a1a6d058142a55136744 Author: Alberto Garcia Date: Sat Aug 16 22:45:48 2008 +0200 2008-08-16 Alberto Garcia * src/scrobbler.h * src/scrobbler.c (rsp_set_nowplaying, rsp_scrobble): Return a value indicating whether the operation was successful or not. ChangeLog | 6 ++++++ src/scrobbler.c | 20 ++++++++++++++++---- src/scrobbler.h | 12 +++++++++--- 3 files changed, 31 insertions(+), 7 deletions(-) commit 255853f3c12e2c8ddbe6fa3cf8d2068d5b88fb61 Author: Alberto Garcia Date: Sat Aug 16 22:34:41 2008 +0200 * src/controller.[ch] * src/dbus.[ch] * src/imstatus.[ch] * src/metadata.[ch] * src/playlist.[ch] * src/protocol.[ch] * src/scrobbler.[ch] * src/uimisc.[ch] * src/vgl-main-window.[ch] * src/vgl-tray-icon.[ch] * src/xmlrpc.[ch]: Data types renamed: lastfm_pls -> LastfmPls lastfm_track -> LastfmTrack rsp_session -> RspSession rsp_rating -> RspRating ChangeLog | 19 +++++++++++++++++ src/controller.c | 56 ++++++++++++++++++++++++------------------------- src/controller.h | 2 +- src/dbus.c | 4 ++-- src/dbus.h | 4 ++-- src/imstatus.c | 4 ++-- src/imstatus.h | 4 ++-- src/metadata.c | 6 +++--- src/metadata.h | 6 +++--- src/playlist.c | 52 ++++++++++++++++++++++----------------------- src/playlist.h | 26 +++++++++++------------ src/protocol.c | 16 +++++++------- src/protocol.h | 4 ++-- src/scrobbler.c | 22 +++++++++---------- src/scrobbler.h | 16 +++++++------- src/uimisc.c | 8 +++---- src/uimisc.h | 4 ++-- src/vgl-main-window.c | 4 ++-- src/vgl-main-window.h | 2 +- src/vgl-tray-icon.c | 8 +++---- src/vgl-tray-icon.h | 2 +- src/xmlrpc.c | 8 +++---- src/xmlrpc.h | 8 +++---- 23 files changed, 152 insertions(+), 133 deletions(-) commit f9fce2b25a5f6d3b54ce38c64f49d67fee3a6027 Author: Pēteris Caune Date: Wed Aug 13 03:08:58 2008 +0200 * po/lv.po: Update translation ChangeLog | 4 ++++ po/lv.po | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) commit 352cf1385c4f07ec8ad7077b4118e1c1ca6107c3 Author: Alberto Garcia Date: Sun Aug 10 17:01:02 2008 +0200 * po/de.po, po/fi.po, po/fr.po, po/gl.po, po/it.po, po/lv.po: Update translations. ChangeLog | 5 +++++ po/de.po | 6 +++--- po/fi.po | 6 +++--- po/fr.po | 6 +++--- po/gl.po | 4 ++-- po/it.po | 6 +++--- po/lv.po | 6 +++--- 7 files changed, 22 insertions(+), 17 deletions(-) commit 6f5b7fc1aee67b155f9e9fe2461f3fea3ee17731 Author: Alberto Garcia Date: Thu Aug 7 18:04:26 2008 +0200 * configure.ac: Define desktopentrydir in Moblin build ChangeLog | 4 ++++ configure.ac | 2 ++ 2 files changed, 6 insertions(+) commit 1d5fc4ce1600cac5e3eb214a731214e4b099d31c Author: Alberto Garcia Date: Wed Aug 6 17:02:06 2008 +0200 * src/dbus.h: Fix compilation error. ChangeLog | 4 ++++ src/dbus.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 10a6c933b51f57dfb787986f019cd204577348f1 Author: Alberto Garcia Date: Fri Jul 25 01:30:46 2008 +0200 * README * scripts/vagalumectl * src/radio.c * src/radio.h * src/vgl-main-window.c * vagalumectl.1 * po/vagalume.pot, po/de.po, po/es.po, po/fi.po, po/fr.po * po/gl.po, po/it.po, po/lv.po, po/pt.po, po/pt_BR.po: Rename "personal radio" to "library" as per Last.fm update ChangeLog | 10 ++++++++++ README | 2 +- po/de.po | 18 ++++++------------ po/es.po | 12 ++++++------ po/fi.po | 16 +++++++++++----- po/fr.po | 12 ++++++------ po/gl.po | 12 ++++++------ po/it.po | 12 ++++++------ po/lv.po | 12 ++++++------ po/pt.po | 18 ++++++------------ po/pt_BR.po | 18 ++++++------------ po/vagalume.pot | 6 +++--- scripts/vagalumectl | 4 ++-- src/radio.c | 2 +- src/radio.h | 2 +- src/vgl-main-window.c | 20 ++++++++++---------- vagalumectl.1 | 6 +++--- 17 files changed, 90 insertions(+), 92 deletions(-) commit 7722267b659515692d21e8fa32e6d596faba859c Author: Alberto Garcia Date: Fri Jul 25 00:55:03 2008 +0200 * po/fi.po, po/pt.po: Add missing ellipsis ChangeLog | 4 ++++ po/fi.po | 4 ++-- po/pt.po | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) commit 0e24a8aac7c6143cc932207f492e0a9ad2518a04 Author: Alberto Garcia Date: Wed Jul 23 18:13:22 2008 +0200 * src/userconfig.c (lastfm_usercfg_read, lastfm_usercfg_write, get_cfg_filename) (xml_get_bool, xml_get_string, xml_add_bool, xml_add_string): New, XML-based configuration file. The old file is converted to the new one and deleted if necessary. (lastfm_old_usercfg_read, get_old_cfg_filename): Legacy functions to read the old configuration file. * src/util.h * src/util.c (obfuscate_string): New function to obfuscate strings. Used for passwords in the new config file. * configure.ac * data/vagalume-rfs.sh.in * data/vagalume.conf.in: Replace config file with config dir. * vagalume.1: Update location of the config file. ChangeLog | 20 ++++ configure.ac | 8 +- data/vagalume-rfs.sh.in | 2 +- data/vagalume.conf.in | 2 +- src/userconfig.c | 257 +++++++++++++++++++++++++++++++++++++---------- src/util.c | 25 +++++ src/util.h | 1 + vagalume.1 | 2 +- 8 files changed, 256 insertions(+), 61 deletions(-) commit ec97fcc0f6e3d9c038b574ba0d920a0fb98130ab Author: Alberto Garcia Date: Tue Jul 22 00:51:13 2008 +0200 * scripts/vagalumectl: Renamed 'tag' to 'globaltag' ChangeLog | 4 ++++ scripts/vagalumectl | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) commit 3bea5b66e8021f0478c65df08a3afde7eca6b9e4 Author: Alberto Garcia Date: Wed Jul 16 00:02:16 2008 +0200 (update ChangeLog) ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) commit 8353c33f73e205beefcfd6e10bd003f42da51011 Author: Alberto Garcia Date: Tue Jul 15 23:58:32 2008 +0200 * po/de.po, po/es.po, po/fi.po, po/fr.po, po/gl.po, po/it.po * po/lv.po, po/pt.po, po/pt_BR.po, po/vagalume.pot * src/vgl-main-window.c: Updated translation string po/de.po | 182 +++++++++++++++++++------------------- po/es.po | 230 +++++++++++++++++++++++-------------------------- po/fi.po | 218 +++++++++++++++++++++++----------------------- po/fr.po | 181 +++++++++++++++++++------------------- po/gl.po | 227 ++++++++++++++++++++++-------------------------- po/it.po | 181 +++++++++++++++++++------------------- po/lv.po | 181 +++++++++++++++++++------------------- po/pt.po | 185 ++++++++++++++++++++------------------- po/pt_BR.po | 180 +++++++++++++++++++------------------- po/vagalume.pot | 174 ++++++++++++++++++------------------- src/vgl-main-window.c | 4 +- 11 files changed, 953 insertions(+), 990 deletions(-) commit 1780d4ba9e11267087aae2e54a8b8597a57b0298 Author: Oscar A. Mata T. Date: Tue Jul 15 00:52:38 2008 +0200 * po/es.po: Updated Spanish translation ChangeLog | 4 +++ po/es.po | 117 ++++++++++++++++++++++++++++++++----------------------------- 2 files changed, 66 insertions(+), 55 deletions(-) commit b8556c477a5dc17dc37601ac8560d8b99acb7851 Author: Alberto Garcia Date: Thu Jul 10 12:13:46 2008 +0200 * po/fi.po: Minor translation fixes. ChangeLog | 2 ++ po/fi.po | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) commit 037c8e5dda32c2e143b4b74ccf42a164493ca54f Author: Alberto Garcia Date: Thu Jul 10 11:25:00 2008 +0200 * src/dbus.h * src/dbus.c (lastfm_dbus_init): Return a different value if Vagalume is already running. (lastfm_dbus_play_radio_url): New function to change the current radio station of a running instance. * src/controller.c (controller_run_app): If you run vagalume from the command line and it is already running, change the current radio station. * debian/gconf-defaults: Use vagalume instead of vagalumectl to handle lastfm:// URLs. * TODO: Remove things that have already been implemented. ChangeLog | 19 +++++++++++++++++++ TODO | 2 -- debian/gconf-defaults | 2 +- src/controller.c | 26 +++++++++++++++++--------- src/dbus.c | 30 ++++++++++++++++++++++++------ src/dbus.h | 16 ++++++++++++---- 6 files changed, 73 insertions(+), 22 deletions(-) commit 7c4b2f0d26ff7c075f81143b9959d221cac242b1 Author: Julien Duponchelle Date: Mon Jul 7 12:02:04 2008 +0200 * po/fr.po: Updated French translation ChangeLog | 2 ++ po/fr.po | 62 +++++++++++++++++++++++++++++-------------------------------- 2 files changed, 31 insertions(+), 33 deletions(-) commit 1a7881937ac1d2a80103a010973d5adfd366a5c6 Author: Rodrigo Flores Date: Mon Jul 7 11:51:01 2008 +0200 * po/pt_BR.po: Updated Brazilian Portuguese translation ChangeLog | 3 +++ po/pt_BR.po | 35 ++++++++++++++++------------------- 2 files changed, 19 insertions(+), 19 deletions(-) commit 3da4525ff86dc91d2288ac30d34d972d91723cc5 Author: Alberto Garcia Date: Mon Jul 7 02:51:44 2008 +0200 * debian/control: Added 'Homepage:' field ChangeLog | 4 ++++ debian/control | 1 + 2 files changed, 5 insertions(+) commit 1518371f545c41d79cabdba3de6f91001c43ec4e Author: Oskar Welzl Date: Sun Jul 6 01:38:40 2008 +0200 * po/de.po: Updated German translation ChangeLog | 4 ++++ po/de.po | 38 +++++++++++++++++--------------------- 2 files changed, 21 insertions(+), 21 deletions(-) commit c503fb57976e0ba340ff5bc0276428645a17e001 Author: Alberto Garcia Date: Fri Jul 4 13:05:13 2008 +0200 Fix Build-Depends for Maemo debian/control.maemo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5171b1d2976c8f9785f6bba5f5915828e634c69d Author: Alberto Garcia Date: Fri Jul 4 12:26:51 2008 +0200 * debian/control.maemo (Build-Depends): Updated Build-Depends for Maemo. ChangeLog | 5 +++++ debian/control.maemo | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) commit bd7794011e389ee53e077b254c1f462ac6182a96 Author: Alberto Garcia Date: Wed Jul 2 22:26:32 2008 +0200 =?utf-8?q?*=20TRANSLATORS =20*=20po/fi.po =20*=20src/vgl-main-window.c:=20Updated=20Finnish=20translation=20(by=20Mika =20Tapoj=C3=83=E2=82=ACrvi=20and=20Tommi=20Franttila)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ChangeLog | 5 + TRANSLATORS | 2 + po/fi.po | 396 ++++++++++++++++++++++++------------------------- src/vgl-main-window.c | 4 +- 4 files changed, 206 insertions(+), 201 deletions(-) commit ec703a51eb2b5d9449e5a52266a334385dea0304 Author: Marcos Garcia Date: Wed Jul 2 20:30:57 2008 +0200 * po/pt.po: Updated Portuguese translation ChangeLog | 4 ++++ po/pt.po | 43 ++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) commit ab2b1dfacb66e2b380a935453686ceed805536a6 Author: Amador Loureiro Blanco Date: Mon Jun 30 23:51:52 2008 +0200 * po/gl.po: Updated Galician translation ChangeLog | 2 + po/gl.po | 124 ++++++++++++++++++++++++++++++++----------------------------- 2 files changed, 68 insertions(+), 58 deletions(-) commit c21afed595a8bab0d9e3a540b83e1587d4b8be41 Author: Alberto Garcia Date: Mon Jun 30 16:20:17 2008 +0200 * src/xmlrpc.c (tag_track) * src/controller.c (controller_tag_track): Allow removing all tags from a track. Fixes #2655. ChangeLog | 6 ++++++ src/controller.c | 5 ++++- src/xmlrpc.c | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) commit 5c373c8dfabb6c08ab89a02803beb1a41fe9e26d Author: Alberto Garcia Date: Mon Jun 30 16:10:24 2008 +0200 * src/controller.h * src/controller.c (controller_run_app) * src/main.c (main): Move creation of main window from main() to controller_run_app() ChangeLog | 7 +++++++ src/controller.c | 6 +++--- src/controller.h | 2 +- src/main.c | 5 +---- 4 files changed, 12 insertions(+), 8 deletions(-) commit 301011bd502427c50f4f24e1790af01a0418dacf Author: Andrea Grandi Date: Mon Jun 30 15:21:40 2008 +0200 * po/it.po: Updated Italian translation ChangeLog | 2 ++ po/it.po | 40 ++++++++++++++++------------------------ 2 files changed, 18 insertions(+), 24 deletions(-) commit b0672a5d4dfa64354db45d5fb8833dec44c2559e Author: Pēteris Caune Date: Mon Jun 30 13:11:04 2008 +0200 * po/lv.po: Updated Latvian translation ChangeLog | 4 ++++ po/lv.po | 42 +++++++++++++++++------------------------- 2 files changed, 21 insertions(+), 25 deletions(-) commit f518466abf25d86f670f16fe7ed87a954adcf736 Author: Alberto Garcia Date: Mon Jun 30 11:34:26 2008 +0200 * po/de.po, po/es.po, po/fi.po, po/fr.po, po/gl.po, po/it.po * po/lv.po, po/pt.po, po/pt_BR.po, po/vagalume.pot: Update translation files ChangeLog | 6 + po/de.po | 718 +++++++++++++++++++++++++++------------------------ po/es.po | 757 +++++++++++++++++++++++++++++------------------------- po/fi.po | 718 +++++++++++++++++++++++++++------------------------ po/fr.po | 767 +++++++++++++++++++++++++++++-------------------------- po/gl.po | 718 +++++++++++++++++++++++++++------------------------ po/it.po | 718 +++++++++++++++++++++++++++------------------------ po/lv.po | 726 ++++++++++++++++++++++++++++------------------------ po/pt.po | 718 +++++++++++++++++++++++++++------------------------ po/pt_BR.po | 718 +++++++++++++++++++++++++++------------------------ po/vagalume.pot | 677 ++++++++++++++++++++++++++---------------------- 11 files changed, 3917 insertions(+), 3324 deletions(-) commit e33863d7e7a7d2064408ffbe7e7126cfc373f548 Author: Alberto Garcia Date: Fri Jun 27 12:16:43 2008 +0200 * scripts/vagalumectl: Check for dbus-send * debian/control: Add build dependency on libdbus-glib-1-dev and recommend dbus. ChangeLog | 5 +++++ debian/control | 3 ++- scripts/vagalumectl | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) commit 20c19006ddeace7900b0aa975abd6f9f1d4fc894 Author: Alberto Garcia Date: Fri Jun 27 10:29:52 2008 +0200 * src/vgl-bookmark-window.c (vgl_bookmark_window_init): Enable searching in the treeview. ChangeLog | 3 +++ src/vgl-bookmark-window.c | 1 + 2 files changed, 4 insertions(+) commit 0fe3c372631d74f01f6711582942fcf8e4d0218b Author: Alberto Garcia Date: Fri Jun 27 02:17:26 2008 +0200 * src/vgl-bookmark-mgr.c (vgl_bookmark_mgr_get_instance): Move static bookmark_mgr variable here and clear it using a weak pointer. (vgl_bookmark_mgr_load_from_disk): Check version number of bookmark file. (vgl_bookmark_mgr_save_to_disk): Store revision number of bookmark file. ChangeLog | 6 ++++++ src/vgl-bookmark-mgr.c | 31 ++++++++++++++++++++----------- 2 files changed, 26 insertions(+), 11 deletions(-) commit 58024947607e5bb337bb875c53859f60daddc47b Author: Alberto Garcia Date: Fri Jun 27 01:43:22 2008 +0200 * src/vgl-bookmark-mgr.h * src/vgl-bookmark-mgr.c (vgl_bookmark_mgr_reorder): New function to reorder items in the bookmark list. (vgl_bookmark_mgr_find_bookmark_node, vgl_bookmark_compare): Use g_list_find_custom() to find bookmarks. * src/vgl-bookmark-window.c (vgl_bookmark_window_init) (vgl_bookmark_window_finalize): Disconnect signal handlers using their ID. (drag_end_cb): Reorder items in the bookmark manager after a drag and drop. ChangeLog | 16 +++++++++++++ src/vgl-bookmark-mgr.c | 53 ++++++++++++++++++++++++++++++++++-------- src/vgl-bookmark-mgr.h | 1 + src/vgl-bookmark-window.c | 56 ++++++++++++++++++++++++++++++++++++++------- 4 files changed, 109 insertions(+), 17 deletions(-) commit 6b60442105d7f2700efd163c6a6e8d1e5bd04482 Author: Alberto Garcia Date: Thu Jun 26 01:54:38 2008 +0200 * src/vgl-bookmark-window.c (vgl_bookmark_window_new): Set a default height. ChangeLog | 5 +++++ src/vgl-bookmark-window.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) commit 2984f586bbc8648ee1da9ea3646919501c583ae2 Author: Alberto Garcia Date: Wed Jun 25 20:44:27 2008 +0200 * src/vgl-bookmark-mgr.c (vgl_bookmark_mgr_save_to_disk): Add version number to the XML file. ChangeLog | 3 +++ src/vgl-bookmark-mgr.c | 1 + 2 files changed, 4 insertions(+) commit dbb00ac192f345abd7e9a7ea3c4eddcfb280f7ed Author: Alberto Garcia Date: Wed Jun 25 20:39:37 2008 +0200 * src/vgl-bookmark-window.c (vgl_bookmark_window_show): Rename 'bookmark_window' to just 'win'. ChangeLog | 1 + src/vgl-bookmark-window.c | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) commit 2264d825cbbb8d8a3c99cb9fe266a37ee9a585db Author: Alberto Garcia Date: Wed Jun 25 20:32:53 2008 +0200 * src/vgl-bookmark-window.c (vgl_bookmark_window_show): Move the static bookmark_window variable to vgl_bookmark_window_show() and clear it using a weak pointer. (play_selected_row, close_button_clicked, vgl_bookmark_window_init) (vgl_bookmark_window_close): Make vgl_bookmark_window_close() receive the window to be destroyed instead of using the singleton. ChangeLog | 9 +++++++++ src/vgl-bookmark-window.c | 25 ++++++++++++------------- 2 files changed, 21 insertions(+), 13 deletions(-) commit b20a97144801c04de7aefbf4988f896d07dcc7d5 Author: Alberto Garcia Date: Wed Jun 25 20:18:05 2008 +0200 * configure.ac: Don't enable media player keys if there's no D-BUS support. ChangeLog | 5 +++++ configure.ac | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) commit 29c148796709dd362e634392d39831f7db1c1bc5 Author: Mario Sanchez Prada Date: Wed Jun 25 20:06:25 2008 +0200 * configure.ac: * src/dbus.c: * src/dbus.h: Add support for the media player keys present in some keyboards via the Gnome Settings Daemon. ChangeLog | 8 +++ configure.ac | 3 ++ src/dbus.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- src/dbus.h | 17 +++++++ 4 files changed, 177 insertions(+), 4 deletions(-) commit 526f3e5652a87498bd591c30dce363586f93f9e3 Author: Alberto Garcia Date: Thu Jun 19 15:11:16 2008 +0200 * Makefile.am: Install vagalumectl manpage only in the Gnome version ChangeLog | 3 +++ Makefile.am | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) commit 93359ee2f8bdcf07f501166b140e310915a5bd54 Author: Alberto Garcia Date: Thu Jun 19 00:27:24 2008 +0200 * ChangeLog: added ChangeLog file ChangeLog | 2430 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2430 insertions(+) commit 705900f01b7114058063c2195977649dedbafc15 Author: Alberto Garcia Date: Wed Jun 18 23:18:26 2008 +0200 Added ChangeLog for the old repository ChangeLog | 1594 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ debian/rules | 2 +- 2 files changed, 1595 insertions(+), 1 deletion(-) commit 2bd82c5cf29ab4cbc8b2d4dca81b78e5a252f85a Author: Mario Sanchez Prada Date: Wed Jun 18 21:57:18 2008 +0200 Add manpage for vagalumectl Makefile.am | 6 +- contrib/vagalumectl | 164 --------------------------------------------------- scripts/vagalumectl | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++ vagalume.1 | 7 +-- vagalumectl.1 | 123 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 294 insertions(+), 170 deletions(-) commit ed5952bb5bb966d2780c3b1e470629b0b7aa678e Author: Alberto Garcia Date: Wed Jun 18 15:42:03 2008 +0200 Make the treeview in the bookmark window reorderable src/vgl-bookmark-window.c | 1 + 1 file changed, 1 insertion(+) commit 470439c4a5064b8d21199e884d80ab884d62e95e Author: Alberto Garcia Date: Wed Jun 18 15:19:35 2008 +0200 Instructions to compile Vagalume for Moblin INSTALL | 2 ++ 1 file changed, 2 insertions(+) commit f60b272fe390c22c9b832df99662829e195276f1 Author: Alberto Garcia Date: Wed Jun 18 15:12:17 2008 +0200 Test whether to install vagalume.service in Gnome configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit eeb47465808ab41e99632cd3d515058c72dbe8ab Author: Alberto Garcia Date: Wed Jun 18 14:55:54 2008 +0200 Install lastfm:// URL handler debian/gconf-defaults | 3 +++ debian/rules | 1 + 2 files changed, 4 insertions(+) commit 9d8a5250d613ee3932344d8dd1c2755b83c3bb98 Author: Mario Sanchez Prada Date: Wed Jun 18 14:21:06 2008 +0200 * Broadcast Vagalume status via dbus * Clear the VglSbPlugin using dispose() instead of finalize() * Fix interactive mode in love/ban dbus handlers src/dbus.c | 64 +++++----- src/dbus.h | 16 +-- src/vgl-sb-plugin.c | 348 +++++++++++++++++++++++++++++---------------------- 3 files changed, 241 insertions(+), 187 deletions(-) commit 15857e54dfcd2b7b2931e2c7d39084e61c52fcbf Author: Alberto Garcia Date: Wed Jun 18 13:21:21 2008 +0200 Added Moblin version of cover.png Makefile.am | 3 +-- data/moblin/cover.png | Bin 0 -> 9928 bytes 2 files changed, 1 insertion(+), 2 deletions(-) commit 32d34b194ac17157f5ec456bf26236438fde869a Author: Alberto Garcia Date: Wed Jun 18 00:45:32 2008 +0200 Fix compilation problem with dbus < 1.0 configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) commit 7d4b6579c666b47241dfb63a9b9e9e0a14113806 Author: Alberto Garcia Date: Wed Jun 18 00:19:10 2008 +0200 Experimental Moblin support (thanks to Costas Stylianou) Makefile.am | 3 ++- README | 3 +++ THANKS | 2 ++ configure.ac | 26 ++++++++++++++++++++++++-- moblin/create-moblin-vagalume-button.sh | 13 +++++++++++++ moblin/vagalume.desktop | 13 +++++++++++++ src/uimisc.c | 23 ++++++++++++++--------- src/vgl-main-window.c | 25 +++++++++++++++++-------- src/vgl-main-window.h | 12 ++++++------ 9 files changed, 94 insertions(+), 26 deletions(-) commit 640f5467e05a3da55d3afe14eb0fe9b54c0750b4 Author: Alberto Garcia Date: Tue Jun 17 17:34:12 2008 +0200 Bookmarks file renamed to bookmarks.xml src/vgl-bookmark-mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9fe95eb7b6c814e7f00ae5b6c6e47d7221b48f68 Author: Alberto Garcia Date: Mon Jun 16 12:07:27 2008 +0200 Fix includes in dbus.{ch} src/dbus.c | 1 + src/dbus.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6ff9b5146aceaf779a791b781fbaf5a470bca0a3 Author: Mario Sanchez Prada Date: Sun Jun 15 16:25:33 2008 +0200 D-BUS support for the Desktop version configure.ac | 3 +- contrib/vagalumectl | 4 +- src/controller.c | 30 ++++- src/dbus.c | 338 ++++++++++++++++++++++++++------------------------- src/dbus.h | 4 +- 5 files changed, 209 insertions(+), 170 deletions(-) commit 1a5f389ef06c589204981742f4db99bb3137585f Author: Mario Sanchez Prada Date: Thu Jun 12 20:11:42 2008 +0200 vagalumectl: Fix playurl call contrib/vagalumectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d9f58df9ac9190c289416176b063771daad12c19 Author: Alberto Garcia Date: Thu Jun 12 02:50:35 2008 +0200 Rename vagalume-sb-plugin and vagalume-tray-icon to vgl-* po/POTFILES.in | 4 +- src/Makefile.am | 4 +- src/controller.c | 16 +- src/globaldefs.h | 2 +- src/vagalume-sb-plugin.c | 797 ---------------------------------------------- src/vagalume-sb-plugin.h | 36 --- src/vagalume-tray-icon.c | 642 ------------------------------------- src/vagalume-tray-icon.h | 49 --- src/vgl-sb-plugin.c | 796 +++++++++++++++++++++++++++++++++++++++++++++ src/vgl-sb-plugin.h | 36 +++ src/vgl-tray-icon.c | 642 +++++++++++++++++++++++++++++++++++++ src/vgl-tray-icon.h | 49 +++ 12 files changed, 1536 insertions(+), 1537 deletions(-) commit 705dde74953a9a20a4305a7bf6fe0e43a4884390 Author: Alberto Garcia Date: Wed Jun 11 15:52:52 2008 +0200 Bookmarks: play selected row when double clicking on it src/vgl-bookmark-window.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) commit 7cb2d7af87d54e70686b3b2e8e35c77ccbbbcfa9 Author: Alberto Garcia Date: Fri Jun 6 16:14:31 2008 +0200 Create cfg directory if it doesn't exist src/userconfig.c | 3 +++ src/vgl-bookmark-mgr.c | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) commit 551901916d253821ada6448025ed31712709bb48 Author: Alberto Garcia Date: Fri Jun 6 15:57:19 2008 +0200 * {read,write}_usercfg renamed to lastfm_usercfg_{read,write} * New functions: get_home_directory() and lastfm_usercfg_get_cfgdir() * VglBookmarkMgr: load and save bookmarks to disk src/controller.c | 4 +- src/userconfig.c | 27 ++++++---- src/userconfig.h | 6 ++- src/util.c | 17 ++++++ src/util.h | 1 + src/vgl-bookmark-mgr.c | 127 +++++++++++++++++++++++++++++++++++++++++++++ src/vgl-bookmark-mgr.h | 1 + src/vgl-bookmark-window.c | 5 ++ 8 files changed, 175 insertions(+), 13 deletions(-) commit 7e484dee4889b0be332f76caea681a861cce0162 Author: Alberto Garcia Date: Mon Jun 2 19:23:11 2008 +0200 Fix typo in POTFILES.in po/POTFILES.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 16ca9dd1ac587fa44d7780a34c615b4f7f01e173 Author: Alberto Garcia Date: Sun May 25 21:30:01 2008 +0200 Added French translation (by Julien Duponchelle) TRANSLATORS | 3 + configure.ac | 2 +- po/fr.po | 808 +++++++++++++++++++++++++++++++++++++++++++++++++ src/vgl-main-window.c | 2 + 4 files changed, 814 insertions(+), 1 deletion(-) commit b8b57109e5a0a446b8da1cb7b6277aeb4de018c0 Author: Alberto Garcia Date: Fri May 23 02:04:56 2008 +0200 Show the 'edit bookmark' dialog when adding a bookmark from the main menu src/controller.c | 9 ++++-- src/uimisc.c | 64 ++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 2 ++ src/vgl-bookmark-window.c | 75 ++------------------------------------------- 4 files changed, 75 insertions(+), 75 deletions(-) commit cb27c49012ce2f3fc9e81856500e3e53d3d277b3 Author: Alberto Garcia Date: Thu May 22 02:33:51 2008 +0200 New menu option to bookmark the current artist src/controller.c | 25 ++++++++++++++++++++----- src/controller.h | 2 +- src/playlist.h | 1 + src/protocol.c | 2 ++ src/vgl-main-window.c | 23 +++++++++++++++++------ 5 files changed, 41 insertions(+), 12 deletions(-) commit 4f41775293e73f9e2319287901b106f0c14425a6 Author: Alberto Garcia Date: Thu May 22 02:07:15 2008 +0200 New menu option to bookmark the current track src/controller.c | 18 ++++++++++++++++++ src/controller.h | 1 + src/vgl-main-window.c | 18 ++++++++++++++++-- 3 files changed, 35 insertions(+), 2 deletions(-) commit a62163e087822c6b880215b1554ebc41fcdc0001 Author: Alberto Garcia Date: Thu May 22 01:54:42 2008 +0200 * Load the existing bookmarks when creating the bookmark window * Destroy the window instead of just hiding it * Disconnect signal handlers when destroying the window * Maintain order when adding elements to the bookmark manager src/vgl-bookmark-mgr.c | 2 +- src/vgl-bookmark-window.c | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) commit ee282807268aadbf2727d2ff45c07edc1a74edb3 Author: Alberto Garcia Date: Thu May 22 01:30:01 2008 +0200 Bookmark window: manager bookmarks through the bookmark manager src/vgl-bookmark-window.c | 103 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 92 insertions(+), 11 deletions(-) commit 2b5eddc6b719a848564a6c33ddb42d6c3f64f432 Author: Alberto Garcia Date: Wed May 21 11:08:46 2008 +0200 Updated TODO TODO | 2 ++ 1 file changed, 2 insertions(+) commit fa96a9b33002f78fa04e1b144b4c2aa55b1bfc96 Author: Alberto Garcia Date: Wed May 21 02:16:36 2008 +0200 Added new method (and signal) to change a bookmark in the bookmark manager src/vgl-bookmark-mgr.c | 88 ++++++++++++++++++++++++++++++++++++------------ src/vgl-bookmark-mgr.h | 2 ++ 2 files changed, 68 insertions(+), 22 deletions(-) commit 9cf1a7063a1aa2665efe42f079663cb4a42e8b83 Author: Alberto Garcia Date: Wed May 21 01:52:53 2008 +0200 Added bookmark-removed and bookmark-added signals to the bookmark manager src/vgl-bookmark-mgr.c | 25 ++++++++++++++++++++++++- src/vgl-bookmark-mgr.h | 12 ++++++------ 2 files changed, 30 insertions(+), 7 deletions(-) commit d19473f315a3e72668df3903edc4de5a7f700b00 Author: Alberto Garcia Date: Wed May 21 00:35:30 2008 +0200 New bookmark manager (basic version) src/Makefile.am | 1 + src/vgl-bookmark-mgr.c | 150 ++++++++++++++++++++++++++++++++++++++++++++++++ src/vgl-bookmark-mgr.h | 61 ++++++++++++++++++++ 3 files changed, 212 insertions(+) commit 37b56615336315afd002c091130fd180fca54785 Author: Alberto Garcia Date: Sun May 18 17:53:22 2008 +0200 Move GTK_WINDOW_TOPLEVEL to the vgl_main_window_init() src/vgl-main-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 31f7f5f2d8e47c9990f60693a2c5d2382601934e Author: Alberto Garcia Date: Sun May 18 17:29:27 2008 +0200 Stop playing the current track before setting another radio src/controller.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit bae9470cbe3d5854c63548dd9dcca0fae3aef71e Author: Alberto Garcia Date: Sun May 18 16:57:38 2008 +0200 When setting a new radio URL, use a thread src/controller.c | 64 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 13 deletions(-) commit a14c95b93635ffac18b837442042ddccc25877cb Author: Alberto Garcia Date: Sun May 18 03:29:56 2008 +0200 Update POTFILES.in po/POTFILES.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3291b8957d81272c8cff630ae241aa3ff616d3d4 Author: Alberto Garcia Date: Sun May 18 03:28:53 2008 +0200 mainwin.[ch] renamed to vgl-main-window.[ch] src/Makefile.am | 2 +- src/controller.h | 2 +- src/main.c | 2 +- src/mainwin.c | 1150 ------------------------------------------------- src/mainwin.h | 96 ----- src/vgl-main-window.c | 1150 +++++++++++++++++++++++++++++++++++++++++++++++++ src/vgl-main-window.h | 96 +++++ 7 files changed, 1249 insertions(+), 1249 deletions(-) commit 694d0f91f54d4c6b711aaae8b93fd31eb7f8fe55 Author: Alberto Garcia Date: Sun May 18 03:20:32 2008 +0200 lastfm_mainwin renamed to VglMainWindow and turned into a GtkWindow src/controller.c | 149 +++++++------- src/controller.h | 2 +- src/main.c | 6 +- src/mainwin.c | 568 ++++++++++++++++++++++++++++++------------------------ src/mainwin.h | 116 +++++++---- 5 files changed, 475 insertions(+), 366 deletions(-) commit d13544c2ecc4cc86f15435a2a69934a487b28676 Author: Oscar A. Mata T. Date: Sun May 18 01:07:58 2008 +0200 Update Spanish translation po/es.po | 123 +++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 69 insertions(+), 54 deletions(-) commit d4932efe19ce07871d5c76a637733617d4b00e93 Author: Alberto Garcia Date: Sun May 18 01:04:13 2008 +0200 New bookmark window (basic version) po/POTFILES.in | 1 + src/Makefile.am | 1 + src/controller.c | 11 ++ src/controller.h | 1 + src/mainwin.c | 22 ++- src/vgl-bookmark-window.c | 323 +++++++++++++++++++++++++++++++++++++++++++++ src/vgl-bookmark-window.h | 56 ++++++++ 7 files changed, 413 insertions(+), 2 deletions(-) commit 570718a180a4e1a06d529779d1cfaec3b3e6ab97 Author: Alberto Garcia Date: Sat May 17 17:38:43 2008 +0200 Minor changes in configure.ac configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 569c57b7176d9b66df70e1e58e6954ef99805251 Author: Alberto Garcia Date: Sat May 17 17:05:04 2008 +0200 Don't enable libgcrypt by default in Maemo configure.ac | 103 ++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 64 insertions(+), 39 deletions(-) commit e1d0bb22335818de9edd36d4c5c8fa5502edd8db Author: Alberto Garcia Date: Sat May 17 16:49:48 2008 +0200 Remove .a and .la files from the sbplugin src/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) commit eea27832c34c3f89ae6a8c15c8cfdfb0e7b6a27f Author: Alberto Garcia Date: Sat May 17 16:16:29 2008 +0200 * Remove es_MX.po after discussion with translators * Remove the vagalume.debhelper.log in the maintainer-clean target Makefile.am | 1 + TRANSLATORS | 5 +- configure.ac | 2 +- po/es_MX.po | 807 --------------------------------------------------------- src/mainwin.c | 9 +- vagalume.spec | 1 - 6 files changed, 7 insertions(+), 818 deletions(-) commit 2b4ba187d577c98695206b074d2a160ef6d4d4da Author: Alberto Garcia Date: Fri May 16 20:33:47 2008 +0200 Remove unneeded debhelper lines debian/rules | 16 ---------------- 1 file changed, 16 deletions(-) commit c43921d10df9d39a01021389251b6283199e83ec Author: Alberto Garcia Date: Fri May 16 13:53:04 2008 +0200 Fix typo in vagalumectl contrib/vagalumectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bb503093d4471019410447db1dc165f7fcb1955b Author: Alberto Garcia Date: Fri May 16 12:57:11 2008 +0200 Added Latvian translation (by Pēteris Caune) TRANSLATORS | 3 + configure.ac | 2 +- po/lv.po | 792 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 5 +- 4 files changed, 799 insertions(+), 3 deletions(-) commit 0eecc559c23200b363a0e331bdbb693c4f2b6113 Author: Alberto Garcia Date: Wed May 14 21:59:21 2008 +0200 Update release date NEWS | 2 +- debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 78744fc2c58eed6be4266100a470af0adbe944ac Author: Alberto Garcia Date: Wed May 14 20:08:35 2008 +0200 Make the tag dialog narrower, to fit some translations src/uimisc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 8b4d8bec83357e48f53d8d3108798d0fe692190b Author: Alberto Garcia Date: Wed May 14 17:45:34 2008 +0200 Init DBUS thread system at startup src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 66474c0ab75657c030b883997665a4b35a6bf57c Author: Alberto Garcia Date: Wed May 14 17:22:54 2008 +0200 imstatus: Use the global GDK lock instead of a static GMutex, as it seems that we cannot use dbus-glib from different threads at the same time src/imstatus.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) commit 12aca4e104da4c2c5814fc7532cb5ddba768fae0 Author: Alberto Garcia Date: Wed May 14 16:33:13 2008 +0200 Fixed Spanish (Venezuela) translation po/es.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 93e838c981e715a8dad1c11302e40ff7ec97fe4f Author: Alberto Garcia Date: Wed May 14 16:20:10 2008 +0200 imstatus: better clenaup when an error happens src/imstatus.c | 77 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 33 deletions(-) commit edd0bb772cd363872ee26c21993e05c3a1b257e1 Author: Alberto Garcia Date: Wed May 14 16:18:22 2008 +0200 Corrected Spanish (Mexico) translation po/es_MX.po | 103 +++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 64 insertions(+), 39 deletions(-) commit 20e06a0db5b2df5afc28675ea0b2870a4dc4f6d1 Author: Eduardo Rubio Garcia Date: Wed May 14 15:44:19 2008 +0200 Updated Spanish (Mexico) translation po/es_MX.po | 111 +++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 73 insertions(+), 38 deletions(-) commit d18387399584d7aa0b1dc56606bdb81cfa4e5667 Author: Alberto Garcia Date: Wed May 14 14:36:29 2008 +0200 Update vagalume.pot and all .po files po/de.po | 133 ++++++++++++++++++++++++----------------------- po/es.po | 112 +++++++++++++++++++--------------------- po/es_MX.po | 111 +++++++++++++++++++-------------------- po/fi.po | 153 +++++++++++++++++++++++------------------------------- po/gl.po | 155 ++++++++++++++++++++++++------------------------------- po/it.po | 111 +++++++++++++++++++-------------------- po/pt.po | 110 +++++++++++++++++++-------------------- po/pt_BR.po | 110 +++++++++++++++++++-------------------- po/vagalume.pot | 110 +++++++++++++++++++-------------------- 9 files changed, 520 insertions(+), 585 deletions(-) commit 7549661d6723dbc00f5abb840380926bef0bc5fb Author: Alberto Garcia Date: Wed May 14 14:10:29 2008 +0200 Rename es_VE.po to es.po Update vagalume.spec NEWS | 2 +- configure.ac | 2 +- po/es.po | 797 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/es_VE.po | 797 --------------------------------------------------------- src/mainwin.c | 2 +- vagalume.spec | 5 +- 6 files changed, 804 insertions(+), 801 deletions(-) commit 2d7dbc60eeabf5357b9bd9695b3f019b09ed841f Author: Alberto Garcia Date: Wed May 14 13:54:20 2008 +0200 Create vagalume-cud.sh symlink using automake, not dh_link Makefile.am | 7 +++++++ configure.ac | 6 +++++- debian/vagalume.links.in | 1 - 3 files changed, 12 insertions(+), 2 deletions(-) commit 08f9a876140209ccbdb0172c0060a6e88a54024d Author: Alberto Garcia Date: Wed May 14 11:55:46 2008 +0200 Updated es_VE and pt translations po/es_VE.po | 6 +++--- po/pt.po | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) commit 60f4e7266c6bba66cb86c210ecd8d6f24654251e Author: Alberto Garcia Date: Wed May 14 02:15:06 2008 +0200 Update NEWS, TODO, README and manpage NEWS | 6 ++++-- README | 3 +++ TODO | 1 - vagalume.1 | 17 +++++++++++++++-- 4 files changed, 22 insertions(+), 5 deletions(-) commit e1e665e42b9c92135682a2afce657588bfd3601b Author: Alberto Garcia Date: Wed May 14 00:09:39 2008 +0200 * Remove '&', '<' and '>' from song titles in notifications, it causes problems in some systems * Remove redundant check in the tray icon, track->album can never be NULL src/playlist.h | 2 +- src/vagalume-tray-icon.c | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) commit e5de236ae27ddf0b4cdd795b430e185d5c89eb03 Author: Amador Loureiro Blanco Date: Tue May 13 23:05:42 2008 +0200 Updated Galician translation TRANSLATORS | 1 + po/gl.po | 163 +++++++++++++++++++++++++++++++++++++-------------------- src/mainwin.c | 5 +- 3 files changed, 110 insertions(+), 59 deletions(-) commit 6d19dd76e65911941dc7f7c916762a05abbbfb01 Author: Amador Loureiro Blanco Date: Tue May 13 22:02:54 2008 +0200 Updated Galician translation po/gl.po | 189 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 101 insertions(+), 88 deletions(-) commit bcd0db55623bc3af58341e77beb0461d5d278e2c Author: Oskar Welzl Date: Tue May 13 21:32:14 2008 +0200 Updated German translation po/de.po | 157 +++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 94 insertions(+), 63 deletions(-) commit 73d69bfc099f9ab38aea992cccb275a02c5d3e76 Author: Alberto Garcia Date: Tue May 13 21:00:33 2008 +0200 Updated Oskar Welzl's e-mail address Deleted extra space in translatable string "retrieving ..." TRANSLATORS | 2 +- src/mainwin.c | 2 +- src/uimisc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 2293dd8730c88c4f65312a8a5d8b8da8f7e2101d Author: Alberto Garcia Date: Tue May 13 20:38:54 2008 +0200 string_replace_gstr(): * Don't call strlen() in each iteration, compute it just once * Don't rely on str->str being the same after an erase/insert, as it might change if a realloc happens, leading to memory corruption src/util.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit 3cb033f633aa6a1e8b16051f9a8434ce64c4c89d Author: Alberto Garcia Date: Tue May 13 18:10:14 2008 +0200 Updated Italian translation po/it.po | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) commit 2326fe430ce10f92e564cb5101741d22354f20a2 Author: Alberto Garcia Date: Tue May 13 18:00:57 2008 +0200 Updated gl, pt_BR and it translations po/gl.po | 5 +---- po/it.po | 45 +-------------------------------------------- po/pt_BR.po | 48 +----------------------------------------------- 3 files changed, 3 insertions(+), 95 deletions(-) commit 0e71636da1b7dc1ee6fd336262cff132caacc236 Author: Alberto Garcia Date: Tue May 13 17:59:30 2008 +0200 Updated de, pt_BR and es_VE translations po/de.po | 5 +---- po/es_VE.po | 62 ++++++++--------------------------------------------------- po/pt_BR.po | 14 +++++++------- 3 files changed, 16 insertions(+), 65 deletions(-) commit a57786f7f91c0f9c79bf9432b5db4e0be5ba77c2 Author: Alberto Garcia Date: Mon May 12 23:46:46 2008 +0200 Destroy the tray icon on shutdown src/controller.c | 4 ++++ src/vagalume-tray-icon.c | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) commit 71053488b4c8c53588b23866d1d9c3dd46802709 Author: Alberto Garcia Date: Mon May 12 23:16:19 2008 +0200 Fix leak in menu_enable_all_items() src/mainwin.c | 1 + 1 file changed, 1 insertion(+) commit da83e00148c88b1cdb03dd901d8333c9c4a2770f Author: Alberto Garcia Date: Mon May 12 22:55:47 2008 +0200 Updated Spanish (Mexico) translation po/es_MX.po | 111 +++++++++++++++++++++++++++-------------------------------- 1 file changed, 51 insertions(+), 60 deletions(-) commit 69fbb3b0e47e75d5b79f359a8ee5fe7ddf3bafdf Author: Alberto Garcia Date: Mon May 12 20:22:53 2008 +0200 Updated Finnish translation po/fi.po | 128 +++++++++++++++++++++++--------------------------------------- 1 file changed, 47 insertions(+), 81 deletions(-) commit e2df72c87e7c9b52e7dcd23c5a38f9bac5f0b4c9 Author: Alberto Garcia Date: Mon May 12 20:14:02 2008 +0200 Changed translators string and updated vagalume.pot and all translation files po/de.po | 138 +++++++++++++++--------------- po/es_MX.po | 138 +++++++++++++++--------------- po/es_VE.po | 197 ++++++++++++++++++++++++------------------- po/fi.po | 251 ++++++++++++++++++++++++++++--------------------------- po/gl.po | 138 +++++++++++++++--------------- po/it.po | 197 ++++++++++++++++++++++++------------------- po/pt.po | 164 +++++++++++++++--------------------- po/pt_BR.po | 197 ++++++++++++++++++++++++------------------- po/vagalume.pot | 142 +++++++++++++++---------------- src/mainwin.c | 27 +++--- 10 files changed, 813 insertions(+), 776 deletions(-) commit b58209d078aedbdc0d192aad213b259b8be573f1 Author: Alberto Garcia Date: Mon May 12 19:49:27 2008 +0200 Updated Finnish translation po/fi.po | 76 +++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 26 deletions(-) commit 1f28ecaf292dcf5a2269b25775ca29ca35a8ecea Author: Alberto Garcia Date: Mon May 12 19:27:12 2008 +0200 Updated vagalume.pot and all translation files po/de.po | 285 ++++++++++++++++--------------- po/es_MX.po | 371 ++++++++++++++++++++-------------------- po/es_VE.po | 325 ++++++++++++++++++------------------ po/fi.po | 318 +++++++++++++++++------------------ po/gl.po | 285 ++++++++++++++++--------------- po/it.po | 297 +++++++++++++++++---------------- po/pt.po | 501 +++++++++++++++++++++++++++++-------------------------- po/pt_BR.po | 296 ++++++++++++++++---------------- po/vagalume.pot | 287 ++++++++++++++++--------------- 9 files changed, 1523 insertions(+), 1442 deletions(-) commit d9412c9e7b2c8def234fc02578be3a2b81dbfea4 Author: Alberto Garcia Date: Mon May 12 19:02:47 2008 +0200 Update Finnish translation po/fi.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit cb249fea092858b96a44df2c835010e43f33baf7 Author: Alberto Garcia Date: Mon May 12 18:48:31 2008 +0200 Added Finnish translation (by Janne Mäkinen) TRANSLATORS | 3 + configure.ac | 2 +- po/fi.po | 820 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 1 + 4 files changed, 825 insertions(+), 1 deletion(-) commit 2d792f6252f2180b70379e9bb3799852eae021bd Author: Alberto Garcia Date: Mon May 12 17:15:48 2008 +0200 Updated Portuguese translation po/pt.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d49707afd9d32bbcaae132456585a1de276629d8 Author: Alberto Garcia Date: Mon May 12 15:51:11 2008 +0200 * Fix typo in German translation * Use the current language code to set the radio station po/de.po | 4 ++-- src/protocol.c | 27 ++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) commit 1f7752cff04f53f9434d38ed05f4d98662fedee5 Author: Alberto Garcia Date: Mon May 12 15:24:11 2008 +0200 im_clear_status(): Restore the original status message in all IM clients that have a saved status message, no matter if it's currently active in the configuration or not. src/controller.c | 4 +-- src/imstatus.c | 106 +++++++++++++++++++++++++++--------------------------- src/imstatus.h | 4 +-- 3 files changed, 57 insertions(+), 57 deletions(-) commit eb6313bbad4ab2a825f783cfdd4125e2dc02cdff Author: Alberto Garcia Date: Mon May 12 12:34:02 2008 +0200 Tray icon: lock the call to get_pixbuf_from_image() src/vagalume-tray-icon.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) commit 2602832225ef10d0acd6437859424f09df0803b7 Author: Alberto Garcia Date: Mon May 12 11:13:16 2008 +0200 get_pixbuf_from_image(): removed redundant code src/util.c | 2 -- 1 file changed, 2 deletions(-) commit 5fef0a6687bbe0a0957d6eb6d8e37117cb62d21b Author: Alberto Garcia Date: Mon May 12 11:10:15 2008 +0200 lastfm_get_track_cover_image(): Use the static mutex just once src/metadata.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) commit 6ec9bb2fbdb40e53a2492a8f1197f7d425e14b68 Author: Alberto Garcia Date: Mon May 12 03:57:11 2008 +0200 Set configure dependencies on debian/rules Don't call autogen.sh from build-package.sh, debian/rules will do it build-package.sh | 2 -- debian/rules | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) commit d556b29aa2f02eebcb7c4384952cbac8d781bfe4 Author: Alberto Garcia Date: Mon May 12 03:50:18 2008 +0200 Download the cover image using the new lastfm_get_track_cover_image(), which prevents the cover of the same track from being downloaded twice. src/controller.c | 10 ++++---- src/metadata.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++ src/metadata.h | 1 + src/playlist.c | 21 ++++++++++++++++ src/playlist.h | 4 ++++ src/vagalume-tray-icon.c | 18 +++++++------- 6 files changed, 98 insertions(+), 16 deletions(-) commit 70f64e7e47c9bd3cd91f709e75981b0c023ea83c Author: Alberto Garcia Date: Sun May 11 21:10:42 2008 +0200 Updated NEWS file with the pt and pt_BR translations NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b0fa185caff78d0b3bf2647cc8ad65d37208c9bf Author: Alberto Garcia Date: Sun May 11 21:05:35 2008 +0200 Added Portuguese translation (by Marcos Garcia) TRANSLATORS | 3 + configure.ac | 2 +- po/pt.po | 792 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 1 + 4 files changed, 797 insertions(+), 1 deletion(-) commit fbd2aa24105e76c44aea8c44cb480a3ddc9c2ba5 Author: Alberto Garcia Date: Sun May 11 16:08:28 2008 +0200 Added Portuguese (Brazil) translation (by Rodrigo Flores) TRANSLATORS | 3 + configure.ac | 2 +- po/pt_BR.po | 808 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 3 +- 4 files changed, 814 insertions(+), 2 deletions(-) commit d65204e75db43245f8ef16583832fee86685450c Author: Alberto Garcia Date: Sat May 10 16:21:26 2008 +0200 controller_show_cover(): pass the whole track instead of getcover_data src/controller.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) commit c0e8ee2d18114962611a54403787c1a21e370452 Author: Alberto Garcia Date: Sat May 10 15:14:47 2008 +0200 Documented get_pixbuf_from_image() src/util.c | 7 +++++++ 1 file changed, 7 insertions(+) commit a90d9328a10ede13e0b60e9c5b8615753a1a9b13 Author: Alberto Garcia Date: Sat May 10 15:12:04 2008 +0200 Refactored code using new function get_pixbuf_from_image() src/controller.c | 2 +- src/mainwin.c | 26 ++++---------------------- src/mainwin.h | 2 +- src/util.c | 28 ++++++++++++++++++++++++++++ src/util.h | 2 ++ src/vagalume-tray-icon.c | 34 +++++++--------------------------- 6 files changed, 43 insertions(+), 51 deletions(-) commit d4d167368b4fda598003698e4b748e941a06803d Author: Alberto Garcia Date: Fri May 9 22:26:44 2008 +0200 * Clear the IM status only when stopping playing, not when skipping * Don't set the IM status until the audio has started src/controller.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) commit c7b1d8f207c878f4163a9476666923ec1ab907d2 Author: Alberto Garcia Date: Fri May 9 21:53:43 2008 +0200 Better fix for the password problem src/userconfig.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit 5ab9da44b408fd56f794a89eb2e894082ae71ce1 Author: Alberto Garcia Date: Fri May 9 21:51:53 2008 +0200 Fix a problem when trying to store empty passwords src/userconfig.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 5847fc646bb456929233e3886637bef9ba2c3122 Author: Alberto Garcia Date: Fri May 9 21:17:21 2008 +0200 Fix debian/rules debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 61ab326c02f757ec2e5c509b5fe92a1f2982df26 Author: Alberto Garcia Date: Fri May 9 21:16:12 2008 +0200 Create the configure script in debian/rules if it doesn't exist debian/rules | 1 + 1 file changed, 1 insertion(+) commit 99189e0b30935d1978627305c28c7d81a082e403 Author: Alberto Garcia Date: Fri May 9 20:00:13 2008 +0200 No string in lastfm_usercfg can be NULL, so disable those checks src/userconfig.c | 27 +++++++++++---------------- src/userconfig.h | 2 +- 2 files changed, 12 insertions(+), 17 deletions(-) commit 791c2432b47cc6aff387a6a650d44612ad8e4767 Author: Alberto Garcia Date: Fri May 9 19:24:04 2008 +0200 When disconnecting, don't destroy the playlist, just clear it src/controller.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 6ca31bf4ca10cb7cc292d7a19d20fb15708d58e2 Author: Alberto Garcia Date: Fri May 9 19:15:45 2008 +0200 Settings dialog: set the initial state of the OK button src/uimisc.c | 3 +++ 1 file changed, 3 insertions(+) commit e3fbb07ebeca4417eac47461ff6828e8fad17c49 Author: Alberto Garcia Date: Fri May 9 19:13:45 2008 +0200 Settings dialog: disable the OK button if there's no user or password src/uimisc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit 1366b978db4ce3d37a3dd1a1f38133181c06b6fc Author: Alberto Garcia Date: Fri May 9 18:47:33 2008 +0200 Fix crash when Vagalume is started with no configuration file src/controller.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit a4577083755ce81bfd981e3016fbf23edcfc6f44 Author: Alberto Garcia Date: Fri May 9 18:41:47 2008 +0200 Add reference before returning the default cover icon src/vagalume-tray-icon.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 298983204e3710c56fae224ba1c1426fef390bb9 Author: Tim Wegener Date: Fri May 9 13:25:02 2008 +0200 Updated vagalume.spec for 0.6 vagalume.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit 5f72072cce23856a3cd3082355ccda20e2dcf70e Author: Alberto Garcia Date: Fri May 9 11:13:14 2008 +0200 Fix leak in the tray icon: unref the GdkPixbuf after setting the notification src/vagalume-tray-icon.c | 1 + 1 file changed, 1 insertion(+) commit 7e6aefceef85ca42c094befa6bd3b7fdf830c7ff Author: Alberto Garcia Date: Fri May 9 10:53:08 2008 +0200 Tray icon: get a ref to the GdkPixbuf src/vagalume-tray-icon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9e620b3a9de6255640842ac58e51e93a15e97771 Author: Alberto Garcia Date: Fri May 9 10:39:37 2008 +0200 Don't use an idle function to show notifications, just use the existing thread src/vagalume-tray-icon.c | 49 ++++++++++++++++------------------------------ 1 file changed, 17 insertions(+), 32 deletions(-) commit 99a1b0203af405b7f6cc8913e37bc1cae47bdaaa Author: Oscar A. Mata T. Date: Fri May 9 10:25:00 2008 +0200 Updated Spanish (Venezuela) translation po/es_VE.po | 162 +++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 114 insertions(+), 48 deletions(-) commit 500ee8501b809b7e057f8b5cb2eb474ec67c4988 Author: Alberto Garcia Date: Fri May 9 01:10:47 2008 +0200 Tray icon: download the album cover using a thread src/vagalume-tray-icon.c | 77 ++++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 26 deletions(-) commit 05675f16d22d247a11d364cf7f6f94cca0bc8099 Author: Andrea Grandi Date: Thu May 8 23:57:23 2008 +0200 Updated Italian translation po/it.po | 104 ++++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 75 insertions(+), 29 deletions(-) commit ad21b65465f998d3b4b558692ae6fcf47bbd5674 Author: Alberto Garcia Date: Thu May 8 22:55:28 2008 +0200 Update vagalume.pot and all .po files po/de.po | 489 ++++++++++++++++++++++++++++++++++++++----------------- po/es_MX.po | 460 ++++++++++++++++++++++++++++++++++++--------------- po/es_VE.po | 457 ++++++++++++++++++++++++++++++++++++--------------- po/gl.po | 452 ++++++++++++++++++++++++++++++++++++-------------- po/it.po | 459 +++++++++++++++++++++++++++++++++++++-------------- po/vagalume.pot | 434 ++++++++++++++++++++++++++++++++++-------------- 6 files changed, 1977 insertions(+), 774 deletions(-) commit 17686c66b3068ba39d3945757dbef1a50577c3fb Author: Alberto Garcia Date: Thu May 8 20:09:03 2008 +0200 Updated NEWS file for 0.6 release NEWS | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) commit 1b99781ce302ca89f219fec957d6aae0a10bf48c Author: Mario Sanchez Prada Date: Thu May 8 18:26:52 2008 +0200 * If an album has no cover, set an empty icon in the notification popup * Change icon size from 40x40 to 48x48 src/vagalume-tray-icon.c | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) commit 7219850c860a77cef9440621e7bac9fb48a68c8d Author: Alberto Garcia Date: Thu May 8 17:32:14 2008 +0200 Change version number to 0.6 configure.ac | 2 +- debian/changelog | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) commit ab1d432b6cd0a83657131fc008ebbfb8f73a586f Author: Alberto Garcia Date: Thu May 8 17:27:10 2008 +0200 Added sbplugin and tray icon to POTFILES.in po/POTFILES.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 8a56f698b518f6028220f755d1ac9c4b817545ab Author: Alberto Garcia Date: Thu May 8 17:25:48 2008 +0200 Marked a couple of strings as translatable src/mainwin.c | 2 +- src/uimisc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 846ab005635bb71372b45acc61ce8bc1771a65d2 Author: Alberto Garcia Date: Thu May 8 16:55:54 2008 +0200 Fix sbplugin compilation src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit da608c638d3c439e5eead8803af38352b8e43074 Author: Alberto Garcia Date: Thu May 8 16:52:43 2008 +0200 * Rename icondir to pixmapdir * Don't create 26x26 and scalable directories on Gnome Makefile.am | 4 +++- configure.ac | 4 +--- src/Makefile.am | 2 +- src/globaldefs.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) commit b6992668a25cdfb7458263f67bfe077b161a4136 Author: Alberto Garcia Date: Thu May 8 16:42:17 2008 +0200 * Delete icon cache on installation/removal * Install 26x26 and scalable incons in Maemo Makefile.am | 2 ++ configure.ac | 2 ++ data/icons/26x26/vagalume.png | Bin 0 -> 1628 bytes data/icons/scalable/vagalume.png | Bin 0 -> 4130 bytes debian/vagalume.postinst | 1 + debian/vagalume.postrm | 1 + 6 files changed, 6 insertions(+) commit e570cea773d8572febccda26822780f77b0b7eab Author: Alberto Garcia Date: Thu May 8 15:16:53 2008 +0200 Remove the 26x26 png icon and update icon cache after installing/removing Makefile.am | 2 +- data/icons/vagalume.png | Bin 1628 -> 0 bytes debian/vagalume.postinst | 9 +++++++++ debian/vagalume.postrm | 9 +++++++++ src/globaldefs.h | 2 +- vagalume.spec | 2 +- 6 files changed, 21 insertions(+), 3 deletions(-) commit f8d2668073c96c9f66c0c213e08925a0fc3e4583 Author: Alberto Garcia Date: Thu May 8 00:08:22 2008 +0200 Modify help text so it fits better on the Internet Tablet screen src/uimisc.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) commit 21f2fb2f71e80f0a085d38f09b33362e4d9fc716 Author: Alberto Garcia Date: Wed May 7 23:48:00 2008 +0200 * Added '{version}' keyword to the IM status template * Changed default IM status template * Added a help button to the settings dialog src/imstatus.c | 3 +++ src/uimisc.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/userconfig.c | 3 ++- 3 files changed, 77 insertions(+), 1 deletion(-) commit 36bf54a4bb552b93ce0b5d2a245983c1d853a6e2 Author: Alberto Garcia Date: Wed May 7 17:00:00 2008 +0200 * vagalumectl is released under GPLv3 * Fix detection of GST_MESSAGE_ASYNC_DONE contrib/vagalumectl | 17 +++++++---------- src/audio.c | 2 +- 2 files changed, 8 insertions(+), 11 deletions(-) commit 3981558720cb15e65eba2c7fb17c67be18de51f2 Author: Alberto Garcia Date: Wed May 7 13:15:20 2008 +0200 Add dependency against librsvg2-common debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 602e9d53a527400640ccb0a2ea4abae17c12ff46 Author: Alberto Garcia Date: Wed May 7 02:54:34 2008 +0200 Shorter way of using GChecksum src/util.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) commit 74e1d853f1223f355a77957f9fd77f34d0747f44 Author: Alberto Garcia Date: Wed May 7 02:29:26 2008 +0200 Add support for GChecksum to compute MD5 sums configure.ac | 32 +++++++++++++++++++++++++------- src/util.c | 20 ++++++++++++++------ 2 files changed, 39 insertions(+), 13 deletions(-) commit 169fdac241cd2d27c79751270559d40bdde4ff26 Author: Oskar Welzl Date: Tue May 6 23:04:20 2008 +0200 Updated German translation TRANSLATORS | 1 + po/de.po | 61 ++++++++++++++++++++++++++++++++++++++++++--------------- src/mainwin.c | 11 ++++++----- 3 files changed, 52 insertions(+), 21 deletions(-) commit 09a2e377655ae04cb66f4ede39d2c1ca208e40da Author: Alberto Garcia Date: Mon May 5 20:27:32 2008 +0200 * Added Spanish (Mexico) translation (by Eduardo Rubio Garcia) * Fixed Galician translation TRANSLATORS | 3 + configure.ac | 2 +- po/es_MX.po | 550 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/gl.po | 4 +- src/mainwin.c | 1 + 5 files changed, 557 insertions(+), 3 deletions(-) commit 55d3ac62655d0a9e60d35d69446eb0efe1a9b09c Author: Alberto Garcia Date: Mon May 5 19:34:11 2008 +0200 * Disable the "Add to playlist" confirmation dialog if the configuration setting is enabled. * After adding a track to the playlist, disable the button. * Remove unneeded debug messages from the tray icon. * Update some labels in the tray icon menu. src/controller.c | 6 ++++-- src/mainwin.c | 9 +++++++++ src/mainwin.h | 3 ++- src/vagalume-tray-icon.c | 22 ++++------------------ 4 files changed, 19 insertions(+), 21 deletions(-) commit 06103d80f276392c45fc5ef1d94bdfece6f86f6f Author: Alberto Garcia Date: Mon May 5 17:03:07 2008 +0200 * New string_replace() and string_replace_gstr() util functions * Replace & -> & in the playlist title * Use string_replace_gstr() to modify the template of the IM status src/imstatus.c | 22 +++++++++------------- src/protocol.c | 7 ++++++- src/util.c | 34 ++++++++++++++++++++++++++++++++++ src/util.h | 2 ++ 4 files changed, 51 insertions(+), 14 deletions(-) commit 180d1900b5e58a624dda5726232d6a30e71ee017 Author: Alberto Garcia Date: Mon May 5 15:48:34 2008 +0200 Fixed and updated Galician translation po/gl.po | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 07a9d2053c624140699a9bcf874803e0060274cc Author: Alberto Garcia Date: Mon May 5 13:36:08 2008 +0200 Added Galician translation (by Ignacio Casal) TRANSLATORS | 3 + configure.ac | 2 +- po/gl.po | 543 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 1 + 4 files changed, 548 insertions(+), 1 deletion(-) commit 7da0942ba87e857cc5a4407918a672acfbd47395 Author: Alberto Garcia Date: Mon May 5 13:13:07 2008 +0200 vagalume.spec: updated description vagalume.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 0f245312257d53dd36c8d03ba770b32fc7d5b81e Author: Alberto Garcia Date: Sun May 4 23:57:59 2008 +0200 Maemo sb plugin: use the Vagalume domain in gettext src/vagalume-sb-plugin.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit f45b784cc62547771053569b570d9a1fdd076efd Author: Alberto Garcia Date: Sun May 4 22:03:51 2008 +0200 * Updated AUTHORS file * Reorganized the code to detect libs for the Maemo status bar plugin * Ignore GST_MESSAGE_ASYNC_DONE message AUTHORS | 2 ++ configure.ac | 34 +++++++++++++++++++++++----------- src/audio.c | 3 +++ src/controller.c | 3 +++ 4 files changed, 31 insertions(+), 11 deletions(-) commit 74cc54b5e4a04d606c2a5dd8e05651e07c492238 Author: Alberto Garcia Date: Sun May 4 20:44:45 2008 +0200 * Add libnotify-dev to build-depends * Wait till all GTK pending events are processed before shutting down * imstatus: remove some debug functions * Tray icon: Protect the notify idle function with the gdk lock debian/control | 2 +- src/imstatus.c | 32 ++++++-------------------------- src/mainwin.c | 1 + src/vagalume-tray-icon.c | 5 +++++ 4 files changed, 13 insertions(+), 27 deletions(-) commit ee4b0a5dd2016126ecb6e604f236e2af9598dd76 Author: Alberto Garcia Date: Sun May 4 20:19:42 2008 +0200 Display notifications using an idle function src/vagalume-tray-icon.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) commit e21dd89caf24548317b077ee130f25a8fe56dfc3 Author: Alberto Garcia Date: Sun May 4 20:02:53 2008 +0200 Update IM status using idle functions rather than threads src/imstatus.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) commit 797b50574aa6fa99acbd7679875f7954475d4966 Author: Alberto Garcia Date: Sun May 4 17:04:46 2008 +0200 * Save window position when minimizing * Move the code from mainwin_toggle_visibility() to mainwin_show_window(), where it belongs ;) src/mainwin.c | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) commit 66fcf6639e0d7054ed9ec30d685caed3ff2c38b8 Author: Alberto Garcia Date: Sun May 4 16:32:18 2008 +0200 Use gtk_window_present() to show the main window src/mainwin.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit 1ea76f7dca65c2718ab5c9be36fa6b0dc147244c Author: Alberto Garcia Date: Sun May 4 16:25:45 2008 +0200 Only try to close to systray if HAVE_TRAY_ICON is defined src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f0b2bcf919b0d580f92d8ed3cca00ffa8e74e9d9 Author: Alberto Garcia Date: Sun May 4 16:24:14 2008 +0200 Don't try to close mainwin to systray in Maemo src/controller.c | 9 +++++---- src/mainwin.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) commit c4374fce717df278d43fe9d1beea8b91d92b84bb Author: Mario Sanchez Prada Date: Sun May 4 14:18:54 2008 +0200 New setting to disable confirmation dialogs configure.ac | 2 +- src/controller.c | 15 ++++++++++----- src/controller.h | 2 +- src/uimisc.c | 52 ++++++++++++++++++++++++++++++++++++++-------------- src/userconfig.c | 9 +++++++-- src/userconfig.h | 1 + 6 files changed, 58 insertions(+), 23 deletions(-) commit 3b0c375e1df6f8deda7bb3065203013efda11fdb Author: Alberto Garcia Date: Sun May 4 13:48:33 2008 +0200 Command line switches to change GStramer elements configure.ac | 6 ++++++ src/audio.c | 29 ++++++++++++++++++++++------ src/audio.h | 7 +++++++ src/main.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++----------- 4 files changed, 86 insertions(+), 17 deletions(-) commit 94ea822aaf04365b45f83907b5ff85c773348168 Author: Alberto Garcia Date: Sun May 4 12:13:22 2008 +0200 Environment variable to change or disable the audioconvert GST plugin src/audio.c | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) commit 8089651e1b588a61aec2a1bc4b5210b39e64c50e Author: Alberto Garcia Date: Sun May 4 02:21:52 2008 +0200 Use mainwin_toggle_visibility() to show/hide the window in mainwin_show_window() src/mainwin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit fb6337fb6e391eb172d2430cc7574aca9d270e30 Author: Mario Sanchez Prada Date: Sun May 4 00:43:36 2008 +0200 New setting to close to systray src/controller.c | 10 ++++++++++ src/controller.h | 1 + src/mainwin.c | 2 +- src/uimisc.c | 21 ++++++++++++++++----- src/userconfig.c | 9 +++++++-- src/userconfig.h | 1 + 6 files changed, 36 insertions(+), 8 deletions(-) commit 79212787b0829368e26bfee3f55f5a3fb277aab4 Author: Alberto Garcia Date: Sun May 4 00:05:26 2008 +0200 Make IM status calls asynchronous src/imstatus.c | 103 ++++++++++++++++++++++++++++++++++++-------------------- src/imstatus.h | 4 +-- 2 files changed, 68 insertions(+), 39 deletions(-) commit 657957a5953ab58efe7e2670c5ec47e5825699a5 Author: Alberto Garcia Date: Sat May 3 22:29:26 2008 +0200 Refactored usercfg dialog src/controller.c | 2 +- src/uimisc.c | 370 ++++++++++++++++++++++++++++++++---------------------- src/uimisc.h | 2 +- 3 files changed, 224 insertions(+), 150 deletions(-) commit a98d3ab0bcc17cfc73a3df8243ba039380f66f97 Author: Mario Sanchez Prada Date: Sat May 3 19:23:04 2008 +0200 Maemo status bar plugin enhancements * Add gettext support * Show a confirmation dialog when loving/banning * Don't show the album description if there is no album src/dbus.c | 26 ++++++++++++---- src/vagalume-sb-plugin.c | 77 ++++++++++++++++++++++++++++++++++------------ 2 files changed, 78 insertions(+), 25 deletions(-) commit cd089cc12d5afba60f8d35c3e4dfdb7a53917dd8 Author: Alberto Garcia Date: Sat May 3 17:17:52 2008 +0200 vagalumectl: call dbus-send with --print-reply contrib/vagalumectl | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) commit 358ca3b246a083063f2e14ccc965fa678a363953 Author: Alberto Garcia Date: Sat May 3 15:33:10 2008 +0200 Minor cosmetic changes src/vagalume-tray-icon.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit 62758938d2c0c6c45c471be92b8012ba3247fa18 Author: Alberto Garcia Date: Sat May 3 15:17:15 2008 +0200 New mainwin_get_window() function to access w->window from the controller src/controller.c | 87 ++++++++++++++++++------------------------------------ src/mainwin.c | 11 +++++++ src/mainwin.h | 1 + 3 files changed, 40 insertions(+), 59 deletions(-) commit d2a78e792a68a5ccd1dd8cdcaf40e53fd852e627 Author: Alberto Garcia Date: Sat May 3 14:50:32 2008 +0200 Fix indentation and typos src/controller.c | 29 +++++++++++++++-------------- src/mainwin.c | 2 +- 2 files changed, 16 insertions(+), 15 deletions(-) commit 5d3435e814ec8ad1cdd951d5ce019cce5ea5d430 Author: Alberto Garcia Date: Sat May 3 14:22:43 2008 +0200 Fix compilation error src/dbus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 87d58aa26f6549b6dc796be83409c6806fb2b370 Author: Alberto Garcia Date: Sat May 3 14:09:09 2008 +0200 * D-BUS method to set the volume level * New options for vagalumectl to change the volume contrib/vagalumectl | 44 +++++++++++++++++++++++++++++++++++++++++--- src/controller.c | 10 ++++++++++ src/controller.h | 1 + src/dbus.c | 41 +++++++++++++++++++++++++++++++++++++++-- src/dbus.h | 1 + 5 files changed, 92 insertions(+), 5 deletions(-) commit 339697d058cbeb7a30c394bab683e9f8a6b7c26f Author: Alberto Garcia Date: Sat May 3 12:18:38 2008 +0200 Disable tray icon support on Maemo configure.ac | 3 +++ 1 file changed, 3 insertions(+) commit 086b9d2ff16604dcafeedce551d650c99e075ba4 Author: Alberto Garcia Date: Sat May 3 11:47:05 2008 +0200 Simplified show_notification() src/vagalume-tray-icon.c | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) commit be26607dde21b1b66458935b1aad3ca0cfa5463e Author: Alberto Garcia Date: Sat May 3 11:35:57 2008 +0200 Fix memory leak in the tray icon src/vagalume-tray-icon.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) commit b25923c905c0bc2ccc7e4aa0c5633ac428e0fb6c Author: Alberto Garcia Date: Sat May 3 11:28:26 2008 +0200 Remove is_iconified attribute from lastfm_mainwin. It's no longer needed. src/mainwin.c | 14 +++++--------- src/mainwin.h | 1 - 2 files changed, 5 insertions(+), 10 deletions(-) commit 8442991177438e0daf77210e61e27fc4857411a0 Author: Alberto Garcia Date: Sat May 3 11:20:23 2008 +0200 Call iconify() before deiconify(). Fixes a problem with some window managers. src/mainwin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 8906277905c8fe385ab98cfc6e22d3fac31f7097 Author: Alberto Garcia Date: Sat May 3 02:04:12 2008 +0200 Display summary after configure configure.ac | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) commit d8cafecd4c6eccc80cd4044c4f45ab213855b700 Author: Alberto Garcia Date: Sat May 3 01:37:53 2008 +0200 Simplified configure.ac configure.ac | 60 ++++++++++++++++++++++------------------------------------ 1 file changed, 23 insertions(+), 37 deletions(-) commit 868295b22531ac80b576dabed9d82d0e2524302c Author: Alberto Garcia Date: Sat May 3 00:32:06 2008 +0200 Configure option to enable/disable tray icon support configure.ac | 69 +++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 18 deletions(-) commit 673f66d85d0236b0862d5e1dbb98fc3ddf925571 Author: Alberto Garcia Date: Fri May 2 21:07:50 2008 +0200 Updated manpage vagalume.1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 6e821dc545b05d48ef5983c3634b8a763adfcb30 Author: Alberto Garcia Date: Fri May 2 20:54:16 2008 +0200 Don't hardcode paths in .desktop and .service files, use values from configure instead Makefile.am | 14 ++++++++++++++ data/vagalume.desktop | 18 ------------------ data/vagalume.desktop.in | 18 ++++++++++++++++++ data/vagalume.service | 3 --- data/vagalume.service.in | 3 +++ 5 files changed, 35 insertions(+), 21 deletions(-) commit dd6bf1e560ebabe98cc4f485fd76be97d16ada5d Author: Alberto Garcia Date: Fri May 2 20:12:31 2008 +0200 Untabify vagalume-tray-icon.c, remove unused variables src/vagalume-tray-icon.c | 216 +++++++++++++++++++++++----------------------- 1 file changed, 107 insertions(+), 109 deletions(-) commit 5f0115daeea3db315d809be52bb5389a05bfaab7 Author: Alberto Garcia Date: Fri May 2 20:01:28 2008 +0200 Don't mark icon names as translatable in the tray icon src/vagalume-tray-icon.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit dc9e89150b036ec48b393fe9daee471e50e3c5a7 Author: Mario Sanchez Prada Date: Fri May 2 19:48:38 2008 +0200 Freedesktop tray icon and libnotify support AUTHORS | 1 + configure.ac | 11 + src/Makefile.am | 4 + src/controller.c | 105 +++++++- src/controller.h | 1 + src/mainwin.c | 26 ++ src/mainwin.h | 3 + src/uimisc.c | 28 ++ src/userconfig.c | 9 +- src/userconfig.h | 1 + src/vagalume-tray-icon.c | 638 ++++++++++++++++++++++++++++++++++++++++++++++ src/vagalume-tray-icon.h | 49 ++++ 12 files changed, 863 insertions(+), 13 deletions(-) commit 76bc723571bfafe728cf8e2e0275331a5cc3ab1c Author: Alberto Garcia Date: Fri May 2 17:51:38 2008 +0200 Added German translation (by Stephan Reichholf) TRANSLATORS | 3 + configure.ac | 2 +- po/de.po | 545 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 1 + 4 files changed, 550 insertions(+), 1 deletion(-) commit 874bdbbbcb335d8e13301b39d8bd81041ef16be1 Author: Alberto Garcia Date: Fri May 2 17:37:03 2008 +0200 Added Spanish (Venelueza) translation (by Oscar A. Mata T.) TRANSLATORS | 3 + configure.ac | 2 +- po/es_VE.po | 556 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 1 + 4 files changed, 561 insertions(+), 1 deletion(-) commit 7c3beb998ee59888e16ec27ce725b70622675bb4 Author: Alberto Garcia Date: Fri May 2 16:44:00 2008 +0200 Updated Italian translation po/it.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit c53fdc5c779f6f7941728b2453796a3324e6c69a Author: Alberto Garcia Date: Fri May 2 16:35:36 2008 +0200 Add missing call to gettext() src/mainwin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 2bd3e1a96b2915a9e9805a6e6ffa592b918d40c0 Author: Alberto Garcia Date: Fri May 2 15:23:36 2008 +0200 Added Italian translation (by Andrea Grandi) TODO | 1 - TRANSLATORS | 2 + configure.ac | 2 +- debian/docs | 1 + po/it.po | 555 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 6 +- 6 files changed, 564 insertions(+), 3 deletions(-) commit f8b8d027bea6a546fb89a6936d2ef5f0f26f1d17 Author: Alejandro Piñeiro Date: Fri May 2 01:48:06 2008 +0200 Gettext support AUTHORS | 3 + Makefile.am | 5 +- autogen.sh | 1 + configure.ac | 14 ++ po/POTFILES.in | 8 + po/vagalume.pot | 535 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/connection.c | 3 +- src/controller.c | 91 +++++----- src/dbus.c | 7 +- src/dlwin.c | 13 +- src/main.c | 7 +- src/mainwin.c | 111 +++++------ src/uimisc.c | 66 +++---- 13 files changed, 719 insertions(+), 145 deletions(-) commit b258ad47cfa45b70470c21d55fd54614285c32e1 Author: Alberto Garcia Date: Mon Apr 28 16:37:25 2008 +0200 Fix for the Maemo SB plugin src/vagalume-sb-plugin.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) commit 1cb27a7619e4c28ff124bdf9c2fffe38cdfb003b Author: Alberto Garcia Date: Mon Apr 28 14:50:29 2008 +0200 Added gstreamer0.10-plugins-base to the dependencies, and gstreamer0.10-fluendo-mp3 as an alternative to gstreamer0.10-plugins-ugly debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8a53cd3ce55d0c00a4838ee5aa845df3022eacd4 Author: Alberto Garcia Date: Fri Apr 25 16:11:20 2008 +0200 Minor improvements in the Maemo statusbar plugin src/vagalume-sb-plugin.c | 111 ++++++++++++++++++---------------------------- src/vagalume-sb-plugin.h | 4 +- 2 files changed, 44 insertions(+), 71 deletions(-) commit 4ac277553cc60375e81eea2c3eb85a886d925409 Author: Alberto Garcia Date: Fri Apr 25 10:47:52 2008 +0200 When destroying the session, clear also the playlist src/controller.c | 4 ++++ 1 file changed, 4 insertions(+) commit 9cebe474b4bb5295cd76a6efd48f77893d1867e1 Author: Alberto Garcia Date: Fri Apr 25 01:27:16 2008 +0200 Maemo: load the cover image once the window is topmost src/mainwin.c | 3 +++ 1 file changed, 3 insertions(+) commit 07c923f3a4598db9eda42a0da5cac408fc90eb1c Author: Alberto Garcia Date: Fri Apr 25 00:21:51 2008 +0200 * Add play/stop/skip options to the Actions menu * Enable/disable menu entries instead of whole menus src/mainwin.c | 118 ++++++++++++++++++++++++++++++++++++++------------------- src/mainwin.h | 3 +- 2 files changed, 82 insertions(+), 39 deletions(-) commit 5e3e51a5a71d5fd46b145d61f6aac6df98b303f3 Author: Alberto Garcia Date: Thu Apr 24 19:18:10 2008 +0200 Increase the HTTP timeout, and set a timeout in all HTTP calls src/http.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 1def42f69480d5bbe81b04b56f0f1da7338a75c8 Author: Alberto Garcia Date: Thu Apr 24 18:40:59 2008 +0200 Save the original status message in Gossip src/imstatus.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) commit edf4fcc68364afc8c37dab2ad289bd068bdb27ab Author: Alberto Garcia Date: Thu Apr 24 17:48:48 2008 +0200 Save the original status message in Gajim src/imstatus.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit bd0da8e3ad34336052289baf4686c4cd6b5f968b Author: Alberto Garcia Date: Thu Apr 24 17:17:27 2008 +0200 Save the original status message in Telepathy src/imstatus.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) commit a94eb38fe5c341509ccb7293232ebc7ea1368d58 Author: Alberto Garcia Date: Thu Apr 24 16:26:04 2008 +0200 Don't show confirmation dialogs on DBUS callbacks TODO | 1 - src/controller.c | 20 ++++++++++++++------ src/controller.h | 5 +++-- src/dbus.c | 4 ++-- src/mainwin.c | 4 ++-- 5 files changed, 21 insertions(+), 13 deletions(-) commit 5466add2c298f272236ebed6cdaccc7128b059f9 Author: Mario Sanchez Prada Date: Thu Apr 24 15:40:36 2008 +0200 New vagalumectl script to control vagalume from the command line Makefile.am | 1 + contrib/vagalumectl | 140 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+) commit 21d61c5354a7d920d4842d5545b99b4a823387a7 Author: Xabier Rodriguez Calvar Date: Thu Apr 24 13:40:18 2008 +0200 Add support for osso-backup, cud and rfs (Maemo) AUTHORS | 2 +- Makefile.am | 4 ++++ configure.ac | 15 +++++++++++++++ data/vagalume-rfs.sh.in | 7 +++++++ data/vagalume.conf.in | 7 +++++++ debian/vagalume.links.in | 1 + src/userconfig.c | 3 +-- 7 files changed, 36 insertions(+), 3 deletions(-) commit 1f1326a8a13e9004b09b3585a20a4c7943b17ba4 Author: Alberto Garcia Date: Thu Apr 24 12:33:55 2008 +0200 Updated TODO TODO | 1 + 1 file changed, 1 insertion(+) commit edc17ce1d00683762f8576b325abf708b1b05e1c Author: Alberto Garcia Date: Thu Apr 24 10:10:07 2008 +0200 Maemo: update win->is_hidden when the "is-topmost" property is modified src/mainwin.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 034ba9988c0b62133c53257d89975b1005830990 Author: Alberto Garcia Date: Tue Apr 22 02:57:22 2008 +0200 imstatus: refactored code, fixed memory leak and added checks src/imstatus.c | 91 +++++++++++++++++++++++++------------------------------- 1 file changed, 41 insertions(+), 50 deletions(-) commit af5fff90d476b7f95ac41352024aba4142944129 Author: Alberto Garcia Date: Sun Apr 20 04:34:47 2008 +0200 Save the original Pidgin status message and restore it when finished TODO | 1 - src/imstatus.c | 17 ++++++++++++++++- src/mainwin.c | 4 ++-- src/uimisc.c | 1 + 4 files changed, 19 insertions(+), 4 deletions(-) commit af8938855b100533f2d8f0dc069d717bf7fde0b0 Author: Alberto Garcia Date: Sun Apr 20 03:32:15 2008 +0200 Disable the autocap mode in the password entry TODO | 1 - src/uimisc.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) commit fed6d7bf1f3683ec2becc7271b4f43a7e6ac14ee Author: Alberto Garcia Date: Sun Apr 20 03:15:41 2008 +0200 New DBUS methods to increase and decrease the volume src/controller.c | 13 +++++++------ src/controller.h | 2 +- src/dbus.c | 14 ++++++++++++++ src/dbus.h | 2 ++ src/mainwin.c | 11 +++++++++-- 5 files changed, 33 insertions(+), 9 deletions(-) commit 4cc0e918ddfee9634bffe3cae2b02e99b62cd75e Author: Alberto Garcia Date: Wed Apr 16 18:04:54 2008 +0200 TODO updated TODO | 2 ++ 1 file changed, 2 insertions(+) commit 0764dd5a9598cb9c840cd7b69fe59b7991660adc Author: Tim Wegener Date: Wed Apr 2 00:51:06 2008 +0200 New setting to change the template of the IM status message src/imstatus.c | 33 ++++++++++++++++++++++++--------- src/uimisc.c | 29 +++++++++++++++++++---------- src/userconfig.c | 19 ++++++++++++++++++- src/userconfig.h | 2 ++ 4 files changed, 63 insertions(+), 20 deletions(-) commit 0027ba47391c16e8dabd974561fca64cc0844887 Author: Alberto Garcia Date: Tue Mar 25 16:53:56 2008 +0200 Updated TODO file TODO | 1 + 1 file changed, 1 insertion(+) commit 85d80b559f35c52d519de23a0a076f3b7e780ecd Author: Alberto Garcia Date: Fri Mar 7 01:37:35 2008 +0200 Some minor changes in imstatus.c: * Only use g_return_* for assertions * g_type_init() is not necessary * Replaced g_printerr() with g_warning() * check_result() renamed to error_happened() src/imstatus.c | 87 ++++++++++++++++++++++++++------------------------------ src/imstatus.h | 1 - 2 files changed, 40 insertions(+), 48 deletions(-) commit 0db65a8ee02de51729587653711ff82f4474e8ff Author: Alberto Garcia Date: Fri Mar 7 01:07:10 2008 +0200 Don't store config settings in imstatus.c src/controller.c | 12 ++++-------- src/imstatus.c | 46 ++++++++++++++++------------------------------ src/imstatus.h | 13 +++++-------- 3 files changed, 25 insertions(+), 46 deletions(-) commit 77ae2c7edc07ca6987d0473ba600367d52c15cf8 Author: Alberto Garcia Date: Fri Mar 7 00:55:23 2008 +0200 Moved all imstatus code to a single file src/Makefile.am | 7 +- src/controller.c | 2 +- src/imstatus.c | 333 ++++++++++++++++++++++++++++++++++++++++++++ src/imstatus.h | 32 +++++ src/imstatus/imgajim.c | 88 ------------ src/imstatus/imgajim.h | 14 -- src/imstatus/imgossip.c | 109 --------------- src/imstatus/imgossip.h | 14 -- src/imstatus/impidgin.c | 109 --------------- src/imstatus/impidgin.h | 14 -- src/imstatus/imstatus.c | 52 ------- src/imstatus/imstatus.h | 32 ----- src/imstatus/imtelepathy.c | 79 ----------- src/imstatus/imtelepathy.h | 14 -- 14 files changed, 367 insertions(+), 532 deletions(-) commit 980f4755ac6af51e89c26cfdf80d1878cf8fb42c Author: Alberto Garcia Date: Fri Mar 7 00:39:27 2008 +0200 Replaced all g_new() with g_slice_new() src/audio.c | 4 ++-- src/controller.c | 24 ++++++++++++------------ src/mainwin.c | 4 ++-- src/playlist.c | 4 ++-- src/protocol.c | 6 +++--- src/scrobbler.c | 6 +++--- src/userconfig.c | 4 ++-- 7 files changed, 26 insertions(+), 26 deletions(-) commit 3b6a77aedf3aae8766f49441466e94862c57ca28 Author: Alberto Garcia Date: Fri Mar 7 00:15:05 2008 +0200 Use a reference counter to avoid copying lastfm_track objects src/controller.c | 34 ++++++++++++++--------------- src/playlist.c | 64 ++++++++++++++++++++++++++++++++++++------------------ src/playlist.h | 8 +++++-- src/protocol.c | 4 ++-- src/uimisc.c | 7 +++--- src/uimisc.h | 2 +- 6 files changed, 72 insertions(+), 47 deletions(-) commit f0339f8ac808cf9a8c5bcf5826bc0ccee9d09593 Author: Alberto Garcia Date: Thu Mar 6 23:39:28 2008 +0200 Use GString instead of char * to display track info in the main window src/mainwin.c | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) commit 3616d9a3a80495a4073322c073f2137f5fb17402 Author: Alberto Garcia Date: Thu Mar 6 00:48:07 2008 +0200 Updated home page README | 2 +- src/mainwin.c | 2 +- vagalume.spec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit f5ec9b7f93e17fffd70c9b0436c2773b4d983f14 Author: Tim Wegener Date: Thu Mar 6 00:40:13 2008 +0200 New feature to set the status of IM clients displaying the current song AUTHORS | 3 ++ configure.ac | 39 ++++++++++++++-- src/Makefile.am | 10 ++++ src/controller.c | 14 ++++++ src/imstatus/imgajim.c | 88 +++++++++++++++++++++++++++++++++++ src/imstatus/imgajim.h | 14 ++++++ src/imstatus/imgossip.c | 109 ++++++++++++++++++++++++++++++++++++++++++++ src/imstatus/imgossip.h | 14 ++++++ src/imstatus/impidgin.c | 109 ++++++++++++++++++++++++++++++++++++++++++++ src/imstatus/impidgin.h | 14 ++++++ src/imstatus/imstatus.c | 52 +++++++++++++++++++++ src/imstatus/imstatus.h | 32 +++++++++++++ src/imstatus/imtelepathy.c | 79 ++++++++++++++++++++++++++++++++ src/imstatus/imtelepathy.h | 14 ++++++ src/uimisc.c | 43 ++++++++++++++++- src/userconfig.c | 24 +++++++++- src/userconfig.h | 4 ++ 17 files changed, 655 insertions(+), 7 deletions(-) commit 16b84336f45e860690e6748d39c54b64bcec8702 Author: Alberto Garcia Date: Wed Feb 27 12:24:38 2008 +0200 Updated TODO TODO | 1 + 1 file changed, 1 insertion(+) commit 58f65870d56b3699d1c9c071af63d830f8a18795 Author: Xabier Rodriguez Calvar Date: Wed Feb 27 01:31:38 2008 +0200 Disconnect Vagalume when the machine is being shut down AUTHORS | 2 +- src/dbus.c | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) commit d7d24d93c36b83ad4379527443469a6b26a77912 Author: Alberto Garcia Date: Tue Feb 26 13:50:22 2008 +0200 First official Debian release of Vagalume. Updated changelog debian/changelog | 55 +++--------------------------------------------------- 1 file changed, 3 insertions(+), 52 deletions(-) commit 4916e45c166247f52bc34be07d324392b26ec6da Author: Alberto Garcia Date: Thu Feb 21 15:05:13 2008 +0200 Updated README and copyright files README | 4 ++-- debian/copyright | 30 +++++++++++++++++++++++------- 2 files changed, 25 insertions(+), 9 deletions(-) commit 72acc41e9b26c25100812a5497108ac298ed36c9 Author: Alberto Garcia Date: Thu Feb 21 14:32:52 2008 +0200 Fixed typo debian/copyright | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f9d93512129d70c1e1013df4643f0aff7c7da1b5 Author: Alberto Garcia Date: Thu Feb 21 14:31:59 2008 +0200 Included copyright of MD5 implementation in debian/copyright debian/copyright | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) commit 5911c5d1e9a2755f5d031c0ae465766f2c864b8f Author: Alberto Garcia Date: Thu Feb 21 13:38:34 2008 +0200 * Remove template comments from debian/rules * Escape hyphens in manpage * Remove unnecesary "Encoding" entry in .desktop file data/vagalume.desktop | 1 - debian/rules | 11 ----------- vagalume.1 | 4 ++-- 3 files changed, 2 insertions(+), 14 deletions(-) commit 32b8ab8ae0b870b5bdde5c417defeb45697b5e4c Author: Alberto Garcia Date: Tue Feb 19 04:32:06 2008 +0200 Update standards-version debian/control | 2 +- debian/control.maemo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit c45ee116b1ac863caa3301a7ae238b8a17604667 Author: Alberto Garcia Date: Tue Feb 19 04:09:10 2008 +0200 Fix more lintian warnings, add icon in .xpm format Makefile.am | 2 +- data/icons/vagalume.xpm | 278 +++++++++++++++++++++++++++++++++++++++++++++++ debian/control | 2 +- debian/control.maemo | 2 +- debian/menu | 4 +- debian/rules | 2 +- 6 files changed, 284 insertions(+), 6 deletions(-) commit d20e9133f17c261da82ec93e8f77a478f5e7fc89 Author: Alberto Garcia Date: Tue Feb 19 03:33:17 2008 +0200 Fix debian-rules-ignores-make-clean-error lintian error debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a03a8bd4fbc28d59bfc2a72c7515f881293a08a6 Author: Alberto Garcia Date: Tue Feb 19 03:19:13 2008 +0200 Mark all previous versions as UNRELEASED Omit the second surname, to match the GPG key Don't include the GPL in the Debian package debian/changelog | 18 +++++++++--------- debian/control | 2 +- debian/control.maemo | 2 +- debian/docs | 1 - 4 files changed, 11 insertions(+), 12 deletions(-) commit 9c9c67c222e2f67145d0cc233c5c4853922e5ea0 Author: Alberto Garcia Date: Tue Feb 19 02:03:19 2008 +0200 Updated Debian copyright file debian/copyright | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit acf632217ab88e3786bc8a3c09c93641a3a1b789 Author: Alberto Garcia Date: Tue Feb 19 01:38:26 2008 +0200 Full name in debian/control debian/control | 2 +- debian/control.maemo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit c9891db23b9a05c41b7f6709c523a56b3ea4e56e Author: Alberto Garcia Date: Tue Feb 19 01:19:45 2008 +0200 Use set -e in autogen.sh instead of set -x Update debian/control for Debian lenny autogen.sh | 2 +- debian/control | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 0cf7e6c775bf7773fe335d8317eccebc113778e2 Author: Alberto Garcia Date: Mon Feb 18 03:12:13 2008 +0200 Don't install the man page in Maemo Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 0143001724a81cda2c59e492d6a2291d2df3a3a8 Author: Alberto Garcia Date: Sun Feb 17 16:20:26 2008 +0200 Added manpage to vagalume.spec vagalume.spec | 1 + 1 file changed, 1 insertion(+) commit 00085854cff704ad56ea5d69a4cd39cbccdc0c13 Author: Alberto Garcia Date: Sun Feb 17 00:40:54 2008 +0200 Set the correct Debian section ('sound', not 'audio') Set Debian priority to 'optional' instead of 'extra' Add reference to /usr/share/common-licenses/GPL-3 debian/control | 4 ++-- debian/control.maemo | 2 +- debian/copyright | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) commit 713aa35938db3773f8094e1faf097c735f80c0a2 Author: Alberto Garcia Date: Fri Feb 15 19:06:36 2008 +0200 Added manual page Fixed a compilation warning Makefile.am | 6 +++++- NEWS | 1 + src/audio.c | 2 +- vagalume.1 | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 2 deletions(-) commit 460c28f811844aa79992973eb9753206f551e9e8 Author: Alberto Garcia Date: Fri Feb 15 18:41:43 2008 +0200 Cleaning up a bit debian/rules debian/rules | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) commit 303bc98cf8d91ee63e65a126d50bb72a802fdd59 Author: Alberto Garcia Date: Fri Feb 15 18:20:23 2008 +0200 More verbose info note if there's a problem setting a Last.fm radio src/controller.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 4dd946a68a7c0e77632bfae63ab6ce90aee31f7d Author: Alberto Garcia Date: Fri Feb 15 15:50:20 2008 +0200 Updated description, control files, README, etc AUTHORS | 16 ++++++++++++++++ INSTALL | 7 ++++--- NEWS | 9 +++++++++ README | 3 +-- debian/control | 10 +++++----- debian/control.maemo | 8 ++++---- 6 files changed, 39 insertions(+), 14 deletions(-) commit 3d431d63f0218ec50b1e4732f0462043240a0351 Author: Alberto Garcia Date: Fri Feb 15 03:48:45 2008 +0200 Updated README and copyrights Makefile.am | 4 ++-- README | 11 ++++++----- debian/changelog | 2 +- debian/copyright | 4 +--- src/Makefile.am | 4 ++-- src/audio.c | 3 ++- src/audio.h | 3 ++- src/connection.c | 3 ++- src/connection.h | 3 ++- src/controller.c | 3 ++- src/controller.h | 3 ++- src/dbus.c | 3 ++- src/dbus.h | 3 ++- src/dlwin.c | 3 ++- src/dlwin.h | 3 ++- src/globaldefs.h | 3 ++- src/http.c | 3 ++- src/http.h | 3 ++- src/main.c | 4 ++-- src/mainwin.c | 3 ++- src/mainwin.h | 3 ++- src/metadata.c | 3 ++- src/metadata.h | 3 ++- src/playlist.c | 3 ++- src/playlist.h | 3 ++- src/protocol.c | 3 ++- src/protocol.h | 3 ++- src/radio.c | 3 ++- src/radio.h | 3 ++- src/scrobbler.c | 3 ++- src/scrobbler.h | 3 ++- src/uimisc.c | 3 ++- src/uimisc.h | 3 ++- src/userconfig.c | 3 ++- src/userconfig.h | 3 ++- src/util.c | 3 ++- src/util.h | 3 ++- src/vagalume-sb-plugin.c | 3 ++- src/vagalume-sb-plugin.h | 3 ++- src/xmlrpc.c | 3 ++- src/xmlrpc.h | 3 ++- 41 files changed, 84 insertions(+), 50 deletions(-) commit 915957d9cb836275a74837c0de77dfd9a61c18c2 Author: Alberto Garcia Date: Fri Feb 15 03:09:44 2008 +0200 Update version number in vagalume.spec file as well vagalume.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit ac34e43ff94893a93fdbb7ac75f5f62d362b0eff Author: Alberto Garcia Date: Fri Feb 15 03:06:52 2008 +0200 Update version number to 0.5.1 configure.ac | 2 +- debian/changelog | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) commit c271cf6bf5cb2eea2b6e7b432a2b14f4f34f5641 Author: Alberto Garcia Date: Wed Feb 13 02:19:32 2008 +0200 A better method to detect if compiling for Maemo configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 036b5604a007f436fe68489af4ae3bdedc149ab0 Author: Alberto Garcia Date: Wed Feb 13 02:10:06 2008 +0200 Use sb-conf instead of libosso to detect if compiling for Maemo configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0a480fa452d065c6c2632982a3f6d402648af709 Author: Alberto Garcia Date: Mon Feb 11 16:26:29 2008 +0200 Don't add version information to the plugin src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) commit a1c0e27c8625a71e199fd809c270be9c41684332 Author: Alberto Garcia Date: Mon Feb 11 04:07:09 2008 +0200 Updated vagalume.spec to reflect icon changes vagalume.spec | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) commit fe7b6f785de2af22a1d3126ce7e8c885586ba863 Author: Alberto Garcia Date: Mon Feb 11 03:39:14 2008 +0200 Added tooltips to all buttons src/mainwin.c | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) commit 61e8c5c684a7c7b892569aba5d915b5c7fefc83b Author: Alberto Garcia Date: Mon Feb 11 03:08:10 2008 +0200 Replace custom buttons with GTK+ themeable icons Makefile.am | 12 +- README | 4 + configure.ac | 2 + data/buttons/big/media-playback-start.png | Bin 0 -> 2572 bytes data/buttons/big/media-playback-start.svg | 286 +++++++ data/buttons/big/media-playback-stop.png | Bin 0 -> 1761 bytes data/buttons/big/media-playback-stop.svg | 293 +++++++ data/buttons/big/media-skip-forward.png | Bin 0 -> 3744 bytes data/buttons/big/media-skip-forward.svg | 349 ++++++++ data/buttons/gnome/addplist.png | Bin 2912 -> 0 bytes data/buttons/gnome/addplist_pressed.png | Bin 2530 -> 0 bytes data/buttons/gnome/ban.png | Bin 3135 -> 0 bytes data/buttons/gnome/ban_pressed.png | Bin 2727 -> 0 bytes data/buttons/gnome/cover.png | Bin 3698 -> 0 bytes data/buttons/gnome/dload.png | Bin 2714 -> 0 bytes data/buttons/gnome/dload_pressed.png | Bin 2302 -> 0 bytes data/buttons/gnome/love.png | Bin 2819 -> 0 bytes data/buttons/gnome/love_pressed.png | Bin 2451 -> 0 bytes data/buttons/gnome/next.png | Bin 5214 -> 0 bytes data/buttons/gnome/next_pressed.png | Bin 5135 -> 0 bytes data/buttons/gnome/play.png | Bin 5319 -> 0 bytes data/buttons/gnome/play_pressed.png | Bin 5204 -> 0 bytes data/buttons/gnome/recommend.png | Bin 3454 -> 0 bytes data/buttons/gnome/recommend_pressed.png | Bin 3138 -> 0 bytes data/buttons/gnome/stop.png | Bin 4254 -> 0 bytes data/buttons/gnome/stop_pressed.png | Bin 4158 -> 0 bytes data/buttons/gnome/tag.png | Bin 3262 -> 0 bytes data/buttons/gnome/tag_pressed.png | Bin 2855 -> 0 bytes data/buttons/maemo/addplist.png | Bin 5798 -> 0 bytes data/buttons/maemo/addplist_pressed.png | Bin 5314 -> 0 bytes data/buttons/maemo/ban.png | Bin 6673 -> 0 bytes data/buttons/maemo/ban_pressed.png | Bin 6100 -> 0 bytes data/buttons/maemo/cover.png | Bin 6577 -> 0 bytes data/buttons/maemo/dload.png | Bin 5247 -> 0 bytes data/buttons/maemo/dload_pressed.png | Bin 4795 -> 0 bytes data/buttons/maemo/love.png | Bin 5732 -> 0 bytes data/buttons/maemo/love_pressed.png | Bin 5274 -> 0 bytes data/buttons/maemo/next.png | Bin 10074 -> 0 bytes data/buttons/maemo/next_pressed.png | Bin 9598 -> 0 bytes data/buttons/maemo/play.png | Bin 10469 -> 0 bytes data/buttons/maemo/play_pressed.png | Bin 9966 -> 0 bytes data/buttons/maemo/recommend.png | Bin 7641 -> 0 bytes data/buttons/maemo/recommend_pressed.png | Bin 7112 -> 0 bytes data/buttons/maemo/stop.png | Bin 8269 -> 0 bytes data/buttons/maemo/stop_pressed.png | Bin 7619 -> 0 bytes data/buttons/maemo/tag.png | Bin 7231 -> 0 bytes data/buttons/maemo/tag_pressed.png | Bin 6660 -> 0 bytes data/buttons/small/accessories-text-editor.png | Bin 0 -> 3513 bytes data/buttons/small/accessories-text-editor.svg | 949 +++++++++++++++++++++ data/buttons/small/document-save.png | Bin 0 -> 3645 bytes data/buttons/small/document-save.svg | 1047 ++++++++++++++++++++++++ data/buttons/small/emblem-favorite.png | Bin 0 -> 2902 bytes data/buttons/small/emblem-favorite.svg | 219 +++++ data/buttons/small/list-add.png | Bin 0 -> 798 bytes data/buttons/small/list-add.svg | 102 +++ data/buttons/small/mail-message-new.png | Bin 0 -> 3485 bytes data/buttons/small/mail-message-new.svg | 607 ++++++++++++++ data/buttons/small/process-stop.png | Bin 0 -> 2839 bytes data/buttons/small/process-stop.svg | 213 +++++ data/gnome/cover.png | Bin 0 -> 3698 bytes data/maemo/cover.png | Bin 0 -> 6577 bytes src/globaldefs.h | 2 + src/main.c | 3 + src/mainwin.c | 184 +++-- 64 files changed, 4187 insertions(+), 85 deletions(-) commit 4ea0171622c92da1c1f331da490490039565c99d Author: Alberto Garcia Date: Sun Feb 10 19:42:03 2008 +0200 Add the 'audioconvert' GstElement to the pipeline. Solves the "Internal data flow error" with some sinks (thanks, Robert-André Mauchin!) src/audio.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit d7de33510d89ee75172a89ee84a7ca7ffc374f17 Author: Alberto Garcia Date: Fri Feb 8 02:47:26 2008 +0200 Don't show the MD5 password in log output src/http.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit faaca50d8be945a7396a0a1f640c10fc48fd68ec Author: Alberto Garcia Date: Fri Feb 8 02:01:05 2008 +0200 Use a list of default audio decoders and sinks instead of using just one src/audio.c | 66 ++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 26 deletions(-) commit f7b4d91ccaf9ebf145c078d8a5e1d97757a48445 Author: Alberto Garcia Date: Thu Feb 7 02:43:27 2008 +0200 Updated TODO TODO | 1 + 1 file changed, 1 insertion(+) commit 93e060807f95e0858a10bf601c31a063ea9b9c2c Author: Alberto Garcia Date: Fri Feb 1 19:46:52 2008 +0200 Updated TODO file TODO | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 0273addd2643739620b3eb6cc13d533cbcc9f95e Author: Alberto Garcia Date: Fri Feb 1 19:21:22 2008 +0200 Small hack to make the download window less ugly on Maemo src/dlwin.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 9a96611982889a446548229bf5769d9b36c4c875 Author: Alberto Garcia Date: Fri Feb 1 17:41:30 2008 +0200 Updated THANKS file THANKS | 2 ++ 1 file changed, 2 insertions(+) commit e78cd3f8db5f651b63e2635908d9352d91678d0c Author: Alberto Garcia Date: Fri Feb 1 13:11:12 2008 +0200 Changed order of buttons src/mainwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 1411453cb27f345b25b94133cb2d92826c2456cd Author: Alberto Garcia Date: Fri Feb 1 04:00:19 2008 +0200 * Updating version number, NEWS, etc., for the 0.5 release AUTHORS | 2 +- NEWS | 13 +++++++++++++ configure.ac | 2 +- debian/changelog | 6 ++++++ debian/copyright | 2 +- 5 files changed, 22 insertions(+), 3 deletions(-) commit bb282a927ee389533e6ef7ae3c82f050dd2e5835 Author: Alberto Garcia Date: Fri Feb 1 01:48:56 2008 +0200 * New "Stop after this track" menu entry (thanks, Tim Wegener!) src/controller.c | 22 +++++++++++++++++++--- src/controller.h | 1 + src/mainwin.c | 24 ++++++++++++++++++++---- src/mainwin.h | 1 + 4 files changed, 41 insertions(+), 7 deletions(-) commit b804831f0351a8ede7516b1146444124540d0dd5 Author: Tim Wegener Date: Fri Feb 1 00:51:38 2008 +0200 * New VAGALUME_GST_DECODER environment variable to select an alternate GStreamer decoder to use src/audio.c | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) commit 77e397abe4bb0af09b217f2a25c392a737d80c14 Author: Alberto Garcia Date: Thu Jan 31 03:16:26 2008 +0200 More fixes for vagalume.spec vagalume.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit dc26762138c4253c9bb3fafdd7fe67ed207114fb Author: Alberto Garcia Date: Thu Jan 31 03:01:34 2008 +0200 Add libxml dependencies to vagalume.spec vagalume.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 095b294d9e2fb323ebf42f3632d2ea58b5958312 Author: Tim Wegener Date: Thu Jan 31 02:16:56 2008 +0200 vagalume.spec file for rpm-based distros INSTALL | 4 ++++ THANKS | 4 +++- vagalume.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) commit b44af7d7c71f214689d2ca8504ef91c2455a6fd6 Author: Felipe Erias Morandeira Date: Thu Jan 31 01:55:14 2008 +0200 New "Add to playlist" buttons data/buttons/gnome/addplist.png | Bin 2726 -> 2912 bytes data/buttons/gnome/addplist_pressed.png | Bin 2305 -> 2530 bytes data/buttons/maemo/addplist.png | Bin 5478 -> 5798 bytes data/buttons/maemo/addplist_pressed.png | Bin 4906 -> 5314 bytes 4 files changed, 0 insertions(+), 0 deletions(-) commit 520085cc1967b6e2e3c5fb716d375f00a4237f02 Author: Mario Sanchez Prada Date: Wed Jan 30 17:26:20 2008 +0200 * New status bar plugin for Maemo * Updated copyrights, etc AUTHORS | 11 +- Makefile.am | 9 +- README | 4 +- configure.ac | 26 ++ data/vagalume-sb-plugin.desktop | 6 + src/Makefile.am | 17 +- src/controller.c | 27 +- src/controller.h | 1 + src/dbus.c | 103 +++++- src/dbus.h | 21 +- src/globaldefs.h | 3 + src/mainwin.c | 11 +- src/uimisc.c | 2 +- src/vagalume-sb-plugin.c | 778 +++++++++++++++++++++++++++++++++++++++ src/vagalume-sb-plugin.h | 35 ++ 15 files changed, 1036 insertions(+), 18 deletions(-) commit d47ffc67c3017e58778875561ca035071a17fd89 Author: Alberto Garcia Date: Tue Jan 29 00:49:11 2008 +0200 Minor UI updates src/mainwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 3531ff6c3f3acf0912cacbb2812ab5490b361d51 Author: Alberto Garcia Date: Tue Jan 29 00:44:29 2008 +0200 Updated MAINTAINERCLEANFILES in Makefile.am Makefile.am | 3 +++ 1 file changed, 3 insertions(+) commit 7010cb73a8693bd73a9a8144825416424a8ef58d Author: Alberto Garcia Date: Tue Jan 29 00:40:59 2008 +0200 * Better icons for the Gnome version data/buttons/gnome/addplist.png | Bin 3060 -> 2726 bytes data/buttons/gnome/addplist_pressed.png | Bin 3005 -> 2305 bytes data/buttons/gnome/ban.png | Bin 3220 -> 3135 bytes data/buttons/gnome/ban_pressed.png | Bin 3210 -> 2727 bytes data/buttons/gnome/dload.png | Bin 2767 -> 2714 bytes data/buttons/gnome/dload_pressed.png | Bin 2740 -> 2302 bytes data/buttons/gnome/love.png | Bin 2891 -> 2819 bytes data/buttons/gnome/love_pressed.png | Bin 2911 -> 2451 bytes data/buttons/gnome/recommend.png | Bin 3307 -> 3454 bytes data/buttons/gnome/recommend_pressed.png | Bin 3299 -> 3138 bytes data/buttons/gnome/tag.png | Bin 3155 -> 3262 bytes data/buttons/gnome/tag_pressed.png | Bin 3142 -> 2855 bytes 12 files changed, 0 insertions(+), 0 deletions(-) commit c6cb1f98137139782dc4a32216b74bcbc71e3593 Author: Alberto Garcia Date: Mon Jan 28 00:34:44 2008 +0200 * Download window: set border with, app icon and window title src/dlwin.c | 14 +++++++++----- src/globaldefs.h | 3 +++ src/mainwin.c | 6 ++---- 3 files changed, 14 insertions(+), 9 deletions(-) commit 0b15139b2239ebbc8691b61bb328e824ae0e94a1 Author: Alberto Garcia Date: Mon Jan 28 00:25:23 2008 +0200 * Fixed the definition of delete_event in mainwin.c * New file_exists() function in util.c * New download window to view the progress of downloads and/or cancel them src/Makefile.am | 1 + src/controller.c | 65 +++++++--------------- src/dlwin.c | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/dlwin.h | 14 +++++ src/http.c | 4 +- src/mainwin.c | 2 +- src/util.c | 13 +++++ src/util.h | 1 + 8 files changed, 210 insertions(+), 49 deletions(-) commit 4f78e4774693219724fa89f869bb5bd45cdec2c6 Author: Alberto Garcia Date: Sun Jan 27 20:43:10 2008 +0200 Added a progress callback to http_download_file() src/controller.c | 3 ++- src/http.c | 35 ++++++++++++++++++++++++++++++++++- src/http.h | 6 +++++- 3 files changed, 41 insertions(+), 3 deletions(-) commit 07cf64f9f5f9e6859383fd55c747684afa0c8033 Author: Alberto Garcia Date: Thu Jan 24 01:42:52 2008 +0200 If the user moves the pointer off the button before releasing the mouse button, don't emit a "clicked" event. src/mainwin.c | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) commit 17c59f8673da665039241312295def844b7902f2 Author: Felipe Erias Morandeira Date: Tue Jan 22 04:23:17 2008 +0200 * New buttons and UI improvements Makefile.am | 2 +- configure.ac | 1 + data/buttons/ban.png | Bin 1660 -> 0 bytes data/buttons/dload.png | Bin 772 -> 0 bytes data/buttons/gnome/addplist.png | Bin 0 -> 3060 bytes data/buttons/gnome/addplist_pressed.png | Bin 0 -> 3005 bytes data/buttons/gnome/ban.png | Bin 0 -> 3220 bytes data/buttons/gnome/ban_pressed.png | Bin 0 -> 3210 bytes data/buttons/gnome/cover.png | Bin 0 -> 3698 bytes data/buttons/gnome/dload.png | Bin 0 -> 2767 bytes data/buttons/gnome/dload_pressed.png | Bin 0 -> 2740 bytes data/buttons/gnome/love.png | Bin 0 -> 2891 bytes data/buttons/gnome/love_pressed.png | Bin 0 -> 2911 bytes data/buttons/gnome/next.png | Bin 0 -> 5214 bytes data/buttons/gnome/next_pressed.png | Bin 0 -> 5135 bytes data/buttons/gnome/play.png | Bin 0 -> 5319 bytes data/buttons/gnome/play_pressed.png | Bin 0 -> 5204 bytes data/buttons/gnome/recommend.png | Bin 0 -> 3307 bytes data/buttons/gnome/recommend_pressed.png | Bin 0 -> 3299 bytes data/buttons/gnome/stop.png | Bin 0 -> 4254 bytes data/buttons/gnome/stop_pressed.png | Bin 0 -> 4158 bytes data/buttons/gnome/tag.png | Bin 0 -> 3155 bytes data/buttons/gnome/tag_pressed.png | Bin 0 -> 3142 bytes data/buttons/love.png | Bin 1188 -> 0 bytes data/buttons/maemo/addplist.png | Bin 0 -> 5478 bytes data/buttons/maemo/addplist_pressed.png | Bin 0 -> 4906 bytes data/buttons/maemo/ban.png | Bin 0 -> 6673 bytes data/buttons/maemo/ban_pressed.png | Bin 0 -> 6100 bytes data/buttons/maemo/cover.png | Bin 0 -> 6577 bytes data/buttons/maemo/dload.png | Bin 0 -> 5247 bytes data/buttons/maemo/dload_pressed.png | Bin 0 -> 4795 bytes data/buttons/maemo/love.png | Bin 0 -> 5732 bytes data/buttons/maemo/love_pressed.png | Bin 0 -> 5274 bytes data/buttons/maemo/next.png | Bin 0 -> 10074 bytes data/buttons/maemo/next_pressed.png | Bin 0 -> 9598 bytes data/buttons/maemo/play.png | Bin 0 -> 10469 bytes data/buttons/maemo/play_pressed.png | Bin 0 -> 9966 bytes data/buttons/maemo/recommend.png | Bin 0 -> 7641 bytes data/buttons/maemo/recommend_pressed.png | Bin 0 -> 7112 bytes data/buttons/maemo/stop.png | Bin 0 -> 8269 bytes data/buttons/maemo/stop_pressed.png | Bin 0 -> 7619 bytes data/buttons/maemo/tag.png | Bin 0 -> 7231 bytes data/buttons/maemo/tag_pressed.png | Bin 0 -> 6660 bytes data/buttons/next.png | Bin 1455 -> 0 bytes data/buttons/play.png | Bin 632 -> 0 bytes data/buttons/stop.png | Bin 221 -> 0 bytes src/mainwin.c | 214 +++++++++++++++++++++--------- src/mainwin.h | 3 +- 48 files changed, 156 insertions(+), 64 deletions(-) commit eb46383fa0199258621d0bf7c76a5ba0d207fd0d Author: Alberto Garcia Date: Thu Jan 17 22:30:30 2008 +0200 Don't use lastfm_audio_get_running_time() when scrobbling a track src/controller.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit d67fe4fbde4dd910a861073b42dc22cf19db88d5 Author: Alberto Garcia Date: Wed Jan 16 13:54:09 2008 +0200 Check whether lastfm_audio_get_running_time() returns an error src/audio.c | 7 ++++--- src/audio.h | 2 +- src/controller.c | 12 +++++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) commit e77f76edf2fe9b56493b1e278e8b6c123900ebe1 Author: Alberto Garcia Date: Wed Jan 16 12:20:38 2008 +0200 When scrobbling a track, don't calculate the running time using lastfm_audio_get_running_time(). It might be 0 at the end of the file. src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 04a2f6880f4c504d31f1a475a7c52fb3a6a3d52e Author: Alberto Garcia Date: Thu Jan 10 23:28:30 2008 +0200 * Read env. variable VAGALUME_GST_SINK to override the default audio sink * Fix wrong initialization of origcfg in the settings dialog src/audio.c | 22 +++++++++++++++++++--- src/uimisc.c | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-) commit 3304f7af94444d351f3fffa48613b07f0c73461d Author: Alberto Garcia Date: Tue Jan 8 02:41:31 2008 +0200 Updated TODO TODO | 1 + 1 file changed, 1 insertion(+) commit 57ffb7720f9a1be4416ea39080973a46b282d0c7 Author: Alberto Garcia Date: Fri Dec 21 03:05:53 2007 +0200 * new_button() renamed to compat_gtk_button_new() and moved to uimisc.c * Create button for choosing download dir using compat_gtk_button_new() src/mainwin.c | 23 ++++++----------------- src/uimisc.c | 13 ++++++++++++- src/uimisc.h | 1 + 3 files changed, 19 insertions(+), 18 deletions(-) commit aded51a91809126d3155cd3d6e2e2d298f1a07dd Author: Alberto Garcia Date: Fri Dec 21 03:00:50 2007 +0200 * Add a final newline when writing the config file * If current settings in the settings dialog are NULL set the default values * Use the Hildon file chooser dialog in Maemo instead of the Gtk one configure.ac | 6 ++++-- src/uimisc.c | 47 ++++++++++++++++++++++++++++------------------- src/userconfig.c | 4 ++-- 3 files changed, 34 insertions(+), 23 deletions(-) commit ba4a6e6a5b4065ba13db206076b706af89279af7 Author: Alberto Garcia Date: Fri Dec 21 02:03:12 2007 +0200 When setting a status msg in the progress bar, store the current text for later src/mainwin.c | 37 +++++++++++++++++++++++++++++-------- src/mainwin.h | 1 + 2 files changed, 30 insertions(+), 8 deletions(-) commit 32fe24e07b53bfd662c1a340f0c57ae05181c803 Author: Alberto Garcia Date: Wed Dec 19 21:37:16 2007 +0200 Fix translation string for lastfm:// play handler data/vagalume.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 543f17d9221efb91e98c080e76c6a91d66bc4ea1 Author: Alberto Garcia Date: Wed Dec 19 16:06:20 2007 +0200 Updated the 'Download this track?' confirmation message src/controller.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit b1cbc1c39eed0ce1033a668fc4bd93f7b23e51cc Author: Alberto Garcia Date: Wed Dec 19 02:40:30 2007 +0200 * Read and store the download_dir variable to the config file * Allow quotes (") in all entries in the config file * New download dir selector in the settings dialog src/uimisc.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- src/userconfig.c | 18 +++++++++++--- src/userconfig.h | 1 + 3 files changed, 85 insertions(+), 5 deletions(-) commit c4c039759e76c237ce750fea633b9345e3245450 Author: Alberto Garcia Date: Wed Dec 19 01:34:29 2007 +0200 Gnome only: show info banners in the progress bar src/controller.c | 4 ++++ src/mainwin.c | 36 +++++++++++++++++++++++++++++++++++- src/mainwin.h | 3 +++ src/uimisc.c | 1 + 4 files changed, 43 insertions(+), 1 deletion(-) commit d5301c05b4370458d0f54aac0f939c5ce2f8b6af Author: Alberto Garcia Date: Wed Dec 19 00:53:53 2007 +0200 Store the progressbar widget as a GtkProgressBar and not as a GtkWidget src/mainwin.c | 21 +++++++++------------ src/mainwin.h | 2 +- 2 files changed, 10 insertions(+), 13 deletions(-) commit 5bb3d40d9ced713a762c967c9cf1c7b2fa870914 Author: Alberto Garcia Date: Tue Dec 18 23:14:56 2007 +0200 Keyboard shortcuts for love, ban, recommend, tag and add to playlist src/mainwin.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit a497660b3eb08bd903611b08ae054028926771e6 Author: Alberto Garcia Date: Sun Dec 16 00:12:15 2007 +0200 Convert files to UTF-8 AUTHORS | 2 +- THANKS | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 4a0f19d7f54739004a96d369fac15972c810a0dd Author: Alberto Garcia Date: Fri Dec 14 00:34:21 2007 +0200 * Minor fixes in docs * Add Audio category to .desktop file NEWS | 2 +- README | 2 +- TODO | 2 +- data/vagalume.desktop | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit d12662188921f4e6a557fe2451f8ea68c4e45bb1 Author: Alberto Garcia Date: Fri Dec 14 00:05:57 2007 +0200 Pressing enter in all dialogs activates the OK button src/uimisc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 9767f20362b54f6a7cd75ca0f4ed28d5989f03e2 Author: Alberto Garcia Date: Thu Dec 13 23:12:33 2007 +0200 New config setting to enable/disable HTTP proxy src/controller.c | 6 +++++- src/uimisc.c | 20 ++++++++++++++------ src/userconfig.c | 9 +++++++-- src/userconfig.h | 1 + 4 files changed, 27 insertions(+), 9 deletions(-) commit 14e84e1fee87aded5ce167642966a8448990cf96 Author: Alberto Garcia Date: Thu Dec 13 22:29:10 2007 +0200 Use a GtkNotebook in the settings dialog src/uimisc.c | 53 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 20 deletions(-) commit beec992e7f1ca91c9499ad11fa03bc9dec6b18fb Author: Alberto Garcia Date: Thu Dec 13 16:36:22 2007 +0200 * Check return code of gst_element_query_position() * Use set -e instead of set -x in build-package.sh build-package.sh | 2 +- src/audio.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) commit dad8c98f454e57bff3678898d874b4ed26267168 Author: Alberto Garcia Date: Thu Dec 13 04:15:37 2007 +0200 Update description in debian/control files Replace Vagalume icon in debian/control.maemo debian/control | 7 +++--- debian/control.maemo | 67 ++++++++++++++++++++++++-------------------------- 2 files changed, 36 insertions(+), 38 deletions(-) commit 779b89a837db8199779c43002b3962779f414ca0 Author: Alberto Garcia Date: Thu Dec 13 04:10:35 2007 +0200 Apply proxy settings at startup src/controller.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) commit 0821564cc566cba45f9eb00de876a4269b78fa51 Author: Alberto Garcia Date: Thu Dec 13 03:51:17 2007 +0200 Add THANKS file to debian/docs New Vagalume icon by Felipe data/icons/48x48/vagalume.png | Bin 4418 -> 4021 bytes data/icons/vagalume.png | Bin 1873 -> 1628 bytes debian/docs | 1 + 3 files changed, 1 insertion(+) commit c526f1dbcb5888303bc37d36d2028285222db3d9 Author: Alberto Garcia Date: Thu Dec 13 03:44:15 2007 +0200 * Update version number, AUTHORS and NEWS for 0.4 release * New THANKS file * Remove unused EXTRA_DIST variable from Makefile.am AUTHORS | 3 +++ Makefile.am | 8 -------- NEWS | 26 ++++++++++++++++++++++++++ THANKS | 24 ++++++++++++++++++++++++ configure.ac | 2 +- debian/changelog | 6 ++++++ 6 files changed, 60 insertions(+), 9 deletions(-) commit 2c080894d4759cfc7571db08f0fc039b58d52594 Author: Alberto Garcia Date: Thu Dec 13 02:35:14 2007 +0200 New layout for the tag window using a table instead src/uimisc.c | 67 +++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 43 insertions(+), 24 deletions(-) commit f3738895aab666e125d32de482f289237c60c82f Author: Alberto Garcia Date: Thu Dec 13 01:29:57 2007 +0200 * Show a "retrieving..." message when loading previously defined tags * Replace "Tag set correctly" banner with "Tags set correctly" src/controller.c | 2 +- src/uimisc.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) commit 01df8362cddc4db855d92e1fd90e0e8e4b465df7 Author: Alberto Garcia Date: Wed Dec 12 03:31:43 2007 +0200 Set the width of the combos in pixels rather than chars src/uimisc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 718b12469438826e32272b6fac4c1191df7fc36f Author: Alberto Garcia Date: Wed Dec 12 03:15:19 2007 +0200 Enhancements to the tag window * Set a maximum width in combo boxes to prevent them from being resized * Add a "retrieving..." message when a combo is being filled * Don't make labels insensitive if their combos are empty src/uimisc.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) commit 702ed43c7f1e214e9c2bfe6e011675e9729f8fc7 Author: Alberto Garcia Date: Wed Dec 12 00:15:42 2007 +0200 Cosmetic changes in configure.ac configure.ac | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) commit 734d6640e9255fd8edc201c7639f60f9f175273a Author: Alberto Garcia Date: Wed Dec 12 00:13:09 2007 +0200 When tagging and recommending, remember the value of the artist/track/album combo src/controller.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) commit a49e345d71289a58af30f122d7e1b7b5cff39991 Author: Alberto Garcia Date: Tue Dec 11 19:34:11 2007 +0200 Added check for fdopen() src/http.c | 5 +++++ 1 file changed, 5 insertions(+) commit 1f10dd940e326910e281323b209cdeae3c66b677 Author: Alberto Garcia Date: Tue Dec 11 13:13:28 2007 +0200 build-package.sh: restore original control file after compiling build-package.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 4e8e3d3bbb565850b65eb95ace942f76cab5975c Author: Alberto Garcia Date: Tue Dec 11 03:07:58 2007 +0200 Fix typo src/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 12e5e203d2a731e540f5939f75ff90da39279a08 Author: Xabier Rodriguez Calvar Date: Tue Dec 11 03:03:51 2007 +0200 ConIc support TODO | 2 -- configure.ac | 11 ++++++ src/Makefile.am | 5 +++ src/connection.c | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/connection.h | 30 ++++++++++++++++ src/controller.c | 18 ++++++++-- 6 files changed, 163 insertions(+), 4 deletions(-) commit 4e42bff429a4da1914dabb94e924f7bca7a409f3 Author: Alberto Garcia Date: Tue Dec 11 02:20:43 2007 +0200 New function controller_disconnect() src/controller.c | 24 ++++++++++++++++++------ src/controller.h | 1 + 2 files changed, 19 insertions(+), 6 deletions(-) commit 619fc8de7d043e474598d609fe3e8d62f5b15254 Author: Alberto Garcia Date: Mon Dec 10 21:13:18 2007 +0200 Better handling of tag combos Tagging combos: display a '(none)' message if there are no tags src/uimisc.c | 97 +++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 65 insertions(+), 32 deletions(-) commit 9df51484ab6ff7a5cac3f09a41a765f68ffe0585 Author: Alberto Garcia Date: Mon Dec 10 02:20:08 2007 +0200 Disable the User Tags combo if the user hasn't set any tags yet src/uimisc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit 8518c4eafc64373d71552edc7892657650b4b1d9 Author: Alberto Garcia Date: Sat Dec 8 21:45:36 2007 +0200 Return a boolean in tagwin_run() to make it work like recommwin_run() src/controller.c | 10 +++++++--- src/uimisc.c | 21 +++++++++++++-------- src/uimisc.h | 5 +++-- 3 files changed, 23 insertions(+), 13 deletions(-) commit 42eb49e9fdadb171c336b9d16dceb1df201be2af Author: Alberto Garcia Date: Sat Dec 8 21:39:13 2007 +0200 tagwin_get_tags() renamed to tagwin_run() New recommendations dialog (displayed using recommwin_run()) Replaced old "Recommend" menu with a single "Recommend..." entry artist_track_album_selection_combo now returns a GtkComboBox instead of a GtkWidget src/controller.c | 34 +++++++-------- src/controller.h | 2 +- src/mainwin.c | 29 ++----------- src/mainwin.h | 1 - src/uimisc.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++------ src/uimisc.h | 8 ++-- 6 files changed, 136 insertions(+), 61 deletions(-) commit c9e43c07e63b78e138f172c950bcf33866e7def7 Author: Alberto Garcia Date: Sat Dec 8 17:21:13 2007 +0200 Replaced some GList * with const GList * src/uimisc.c | 9 +++++---- src/uimisc.h | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) commit 55e5c1ffb73e00552ab0447c0ce34534239590ac Author: Alberto Garcia Date: Sat Dec 8 05:16:50 2007 +0200 Use "set" rather than "append" when setting tags. With this, the user can remove previous tags src/xmlrpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0344018e6281f2127a6866e074403dacafd88bba Author: Alberto Garcia Date: Sat Dec 8 04:44:22 2007 +0200 Corrected the description in debian/control debian/control | 2 +- debian/control.maemo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 54ca3b4cc2e172bae7078a3a34528f29de42d666 Author: Alberto Garcia Date: Sat Dec 8 00:57:50 2007 +0200 Tagging window: show the user's previous tags for that item New util function str_glist_join() src/controller.c | 3 ++- src/uimisc.c | 39 +++++++++++++++++++++++++++++++-------- src/uimisc.h | 2 +- src/util.c | 23 ++++++++++++++++++++++- src/util.h | 3 +++ src/xmlrpc.c | 2 +- 6 files changed, 60 insertions(+), 12 deletions(-) commit e1b1c94aaeea6aa28b65372cca25600f67d176e2 Author: Alberto Garcia Date: Sat Dec 8 00:14:05 2007 +0200 lastfm_tagwin_* renamed to tagwin_* If a set of tags cannot be downloaded, display an empty combo Make tagwin_* functions static src/controller.c | 3 +- src/uimisc.c | 94 ++++++++++++++++++++++++++++++++---------------------- src/uimisc.h | 21 ++---------- 3 files changed, 59 insertions(+), 59 deletions(-) commit 2ea8a3e47590c4289d7070135bce578cf7ff0aea Author: Alberto Garcia Date: Sat Dec 8 00:04:29 2007 +0200 Tagging window: fill the 'popular tags' combo for the selected artist, track or album src/uimisc.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++------- src/uimisc.h | 11 ++++ 2 files changed, 163 insertions(+), 20 deletions(-) commit 3c29b495a847d1e6aa6ecd13346c9e7eca16ac62 Author: Alberto Garcia Date: Thu Dec 6 04:13:30 2007 +0200 Code reorganization src/audio.c | 1 + src/controller.c | 30 +++++++++++++++--------------- src/mainwin.c | 6 ++++++ src/mainwin.h | 1 + 4 files changed, 23 insertions(+), 15 deletions(-) commit f327dfdce88575b1b308abe3a3f955e726a0cd21 Author: Alberto Garcia Date: Thu Dec 6 03:34:20 2007 +0200 unref the GMainLoop in lastfm_audio_clear() src/audio.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit a8b4aa1d84a0c7ddeb4c35f7b054a54a68a12482 Author: Alberto Garcia Date: Thu Dec 6 03:06:34 2007 +0200 Fixed small leak, free all memory when exiting src/controller.c | 14 +++++++++++++- src/uimisc.c | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) commit 0c9b98f07ee12dbb742945b03f8c1e3fbba9e3a5 Author: Alberto Garcia Date: Thu Dec 6 02:35:28 2007 +0200 Fix memory leaks src/uimisc.c | 4 ++++ 1 file changed, 4 insertions(+) commit 152f357dd4c39d3b0eabaf575a86405030b4314c Author: Alberto Garcia Date: Thu Dec 6 02:28:58 2007 +0200 Use a combo box instead of radio buttons to select what to tag in the tagging dialog src/uimisc.c | 124 ++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 72 insertions(+), 52 deletions(-) commit 08882e198f0641692ebef7e8ce56090114b9a96e Author: Alberto Garcia Date: Wed Dec 5 03:02:29 2007 +0200 check_session(): use two different callbacks for success and failure src/controller.c | 70 +++++++++++++++++++++++++----------------------------- 1 file changed, 32 insertions(+), 38 deletions(-) commit 3ed73e85c77f88276b2994670bfbec50d61518b1 Author: Alberto Garcia Date: Wed Dec 5 02:48:28 2007 +0200 check_session() is now an asynchronous function that receives a callback src/controller.c | 249 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 200 insertions(+), 49 deletions(-) commit b29a89f32556eb707c648f0c36ecbe81e3a9718f Author: Alberto Garcia Date: Tue Dec 4 03:08:00 2007 +0200 New tag window to replace all old three dialogs (still work in progress) Replaced Actions->Tag submenu with a single "Tag..." menu entry Renamed global variable 'tags' to 'usertags' When tagging and recommending, store a copy of the nowplaying track before asking the user src/controller.c | 57 +++++++++--------- src/controller.h | 2 +- src/mainwin.c | 29 ++------- src/uimisc.c | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 9 +++ 5 files changed, 215 insertions(+), 54 deletions(-) commit 9d233a4ce72a9f4949e4952d2555b40249090e77 Author: Alberto Garcia Date: Sat Dec 1 18:15:12 2007 +0200 Fix memory leak when obtaining tag names src/metadata.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) commit e78b12f9ec06f9f6f5625f68bfd7227f0264865e Author: Alberto Garcia Date: Sat Dec 1 17:54:04 2007 +0200 Moved all functions to get friends and tags to the new file metadata.c src/Makefile.am | 1 + src/controller.c | 1 + src/metadata.c | 257 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/metadata.h | 22 +++++ src/protocol.c | 245 --------------------------------------------------- src/protocol.h | 7 -- 6 files changed, 281 insertions(+), 252 deletions(-) commit 0820d78f353b1ece3f444695154deabbfb2c4a0a Author: Alberto Garcia Date: Sat Dec 1 17:32:27 2007 +0200 New function to get user tags from a track Refactored lastfm_get_*_tags() functions src/playlist.h | 6 ++++ src/protocol.c | 98 ++++++++++++++++++++++++++++++++++++++------------------ src/protocol.h | 8 +++-- src/xmlrpc.h | 6 ---- 4 files changed, 77 insertions(+), 41 deletions(-) commit ad91770ec3d01d1072720cf566acb725557ecc2e Author: Alberto Garcia Date: Sat Dec 1 04:25:04 2007 +0200 New functions to obtain tags from an artist, album or track src/controller.c | 2 +- src/protocol.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++---- src/protocol.h | 5 ++- 3 files changed, 92 insertions(+), 9 deletions(-) commit a0a7bc2c0d40ba6a6acf31c22be73613cbd48500 Author: Alberto Garcia Date: Sat Dec 1 04:15:50 2007 +0200 Dim tag/recommend album menu entries if the track has no album src/mainwin.c | 4 ++++ src/mainwin.h | 1 + 2 files changed, 5 insertions(+) commit 96b922b002eeb47c57826e7c09a14d6ec7fb2695 Author: Alberto Garcia Date: Sat Dec 1 03:53:17 2007 +0200 Read the list of tags using the XML document instead of the .txt src/protocol.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 75 insertions(+), 16 deletions(-) commit 9cf6d6971cc6e24ee196615b09de10718523aed0 Author: Alberto Garcia Date: Fri Nov 30 22:10:32 2007 +0200 Use glib to set and unset environment variables src/http.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit beef20776e59cb77ce1b402e4bcf17e81b9d9b07 Author: Alberto Garcia Date: Thu Nov 29 02:07:23 2007 +0200 Get user's list of tags and display it in both "Play music tagged..." dialogs using a combo box src/controller.c | 47 +++++++++++++++++++++++++++++++++++++++++------ src/protocol.c | 35 +++++++++++++++++++++++++++++++++++ src/protocol.h | 1 + 3 files changed, 77 insertions(+), 6 deletions(-) commit 7f1743773db83dd26d97c8223533effc82774729 Author: Alberto Garcia Date: Wed Nov 28 22:13:30 2007 +0200 Fixed bug setting rsp session src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a22aa0e9f7014781b363bd0366843536eb9bdf6d Author: Alberto Garcia Date: Wed Nov 28 21:48:31 2007 +0200 If an error happens obtaining the RSP session or getting the friend list, retry each minute until everything is OK src/controller.c | 69 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 19 deletions(-) commit 8d5b637bcdaa73e9594d6513775dee4f23095134 Author: Alberto Garcia Date: Wed Nov 28 21:04:24 2007 +0200 * After changing user settings in the settings dialog, delete the previous RSP session and friend list if necessary src/controller.c | 61 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 13 deletions(-) commit 81d4890f734307e1d7097d3e22a3576c6244782f Author: Alberto Garcia Date: Wed Nov 28 19:43:33 2007 +0200 * If not compiling for Maemo 2, use gtk_button_new() instead of gtk_button_new_with_label() src/mainwin.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) commit 90a7ad179cc9ffd1109b29697276c37770aace9c Author: Alberto Garcia Date: Wed Nov 28 01:48:31 2007 +0200 * Add support to use libgcrypt instead of internal MD5 functions configure.ac | 24 ++++ src/Makefile.am | 5 +- src/md5.c | 392 ------------------------------------------------------- src/md5.h | 93 ------------- src/md5/md5.c | 392 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/md5/md5.h | 93 +++++++++++++ src/util.c | 18 ++- 7 files changed, 527 insertions(+), 490 deletions(-) commit 2f6bc26b1ee2dafa5c344fab47c8a6b36cdc31aa Author: Alberto Garcia Date: Wed Nov 28 00:38:11 2007 +0200 * Document controller_increase_volume() src/controller.c | 4 ++++ 1 file changed, 4 insertions(+) commit 449ae1b9462c20d55e26c689a09a736d658a4853 Author: Alberto Garcia Date: Tue Nov 27 01:47:58 2007 +0200 * Disable the love button and menu entry after setting a track as loved src/controller.c | 3 ++- src/mainwin.c | 24 +++++++++++++++++------- src/mainwin.h | 5 +++-- 3 files changed, 22 insertions(+), 10 deletions(-) commit 259e95bfa58c72c13f0ccb27c12d30d20bcfd484 Author: Alberto Garcia Date: Mon Nov 26 00:50:16 2007 +0200 * Changes in configure scripts Makefile.am | 8 +++----- configure.ac | 5 +++-- data/buttons/ban.png | Bin 0 -> 1660 bytes data/buttons/dload.png | Bin 0 -> 772 bytes data/buttons/love.png | Bin 0 -> 1188 bytes data/buttons/next.png | Bin 0 -> 1455 bytes data/buttons/play.png | Bin 0 -> 632 bytes data/buttons/stop.png | Bin 0 -> 221 bytes data/icons/48x48/vagalume.png | Bin 0 -> 4418 bytes data/icons/vagalume.png | Bin 0 -> 1873 bytes data/pixmaps/ban.png | Bin 1660 -> 0 bytes data/pixmaps/dload.png | Bin 772 -> 0 bytes data/pixmaps/love.png | Bin 1188 -> 0 bytes data/pixmaps/next.png | Bin 1455 -> 0 bytes data/pixmaps/play.png | Bin 632 -> 0 bytes data/pixmaps/stop.png | Bin 221 -> 0 bytes data/pixmaps/vagalume.png | Bin 1873 -> 0 bytes data/pixmaps/vagalume_48x48.png | Bin 4418 -> 0 bytes debian/menu | 4 ++-- src/Makefile.am | 3 ++- src/mainwin.c | 4 ++-- 21 files changed, 12 insertions(+), 12 deletions(-) commit a9017367e6a7a9923b34695f6fbe09457520ed7a Author: Alberto Garcia Date: Sun Nov 25 20:32:44 2007 +0200 * Allow calls to controller_show_cover() while no track is being played src/controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 60cef1f1d52358a2269c05105a6e04a234923fbd Author: Alberto Garcia Date: Sun Nov 25 20:22:26 2007 +0200 * Only download and show the album cover if the window is not hidden src/controller.c | 34 ++++++++++++++++++++++++++-------- src/controller.h | 1 + src/mainwin.c | 13 +++++++++---- src/mainwin.h | 1 + 4 files changed, 37 insertions(+), 12 deletions(-) commit e63fd987e03e0563d761a55fd4af8af85923b7c1 Author: Alberto Garcia Date: Sun Nov 25 19:07:57 2007 +0200 * Removed unused headers and other compilation fixes src/controller.c | 1 - src/controller.h | 2 -- src/mainwin.c | 4 ++-- src/uimisc.c | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) commit 8f9a33d6352658ae166d9eeaae16efbee003eaac Author: Alberto Garcia Date: Sun Nov 25 18:19:15 2007 +0200 * Remove all Gtk code from the controller src/controller.c | 71 ++++++++++++------------------------------------------ src/controller.h | 1 + src/mainwin.c | 50 ++++++++++++++++++++++++++++++++++++++ src/mainwin.h | 2 ++ 4 files changed, 68 insertions(+), 56 deletions(-) commit 1ce62c2665733e3fc3a56f69a3bca83dba214c82 Author: Alberto Garcia Date: Sun Nov 25 17:11:33 2007 +0200 * Use mainwin_show_window() to show the main window at the beginning src/controller.c | 2 +- src/mainwin.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) commit 711a71279bf4982746dd3dfc2aa03012e1ef8dc5 Author: Alberto Garcia Date: Sun Nov 25 16:56:05 2007 +0200 * Handle D-BUS 'top_application' message * When showing the main window, raise it too configure.ac | 2 +- src/dbus.c | 2 ++ src/dbus.h | 1 + src/mainwin.c | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) commit ea80ff4abd3fe244f5383e172a292174193c2bd6 Author: Alberto Garcia Date: Sun Nov 25 15:13:50 2007 +0200 * Fixed typo src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a513e455721f374b38102316e7cd76dca64e8c21 Author: Alberto Garcia Date: Sun Nov 25 14:59:30 2007 +0200 * Install .desktop file when compiling for Gnome too * Added 'Categories' field to .desktop file * Moved all dbus code from the controller to dbus.c * Moved .desktop and .service from maemo/ to data/ * Added Debian menu * New function to show/hide the main window without closing the app * HTTP proxy support * D-BUS handlers for play, stop, skip, love, ban, show/hide window and close app Makefile.am | 9 +-- configure.ac | 22 +++++--- data/vagalume.desktop | 19 +++++++ data/vagalume.service | 3 + debian/menu | 3 + debian/rules | 2 +- maemo/vagalume.desktop | 18 ------ maemo/vagalume.service | 3 - src/Makefile.am | 7 ++- src/controller.c | 72 ++++++++---------------- src/controller.h | 1 + src/dbus.c | 147 ++++++++++++++++++++++++++++++++++++++++++++++++ src/dbus.h | 39 +++++++++++++ src/globaldefs.h | 9 --- src/http.c | 11 ++++ src/http.h | 1 + src/mainwin.c | 30 ++++++---- src/mainwin.h | 2 + src/uimisc.c | 20 ++++--- src/userconfig.c | 21 ++++++- src/userconfig.h | 4 +- 21 files changed, 331 insertions(+), 112 deletions(-) commit 7f72d846720cd8c844bf197868ecafef3012ceec Author: Alberto Garcia Date: Fri Nov 23 17:28:02 2007 +0200 * Scrobble track before stopping audio, to get the actual running time src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0807a8c5e4d56a5289216d6373e15e87786cd68a Author: Alberto Garcia Date: Fri Nov 23 17:11:27 2007 +0200 * Now Vagalume has an official Last.fm ID for scrobbling src/globaldefs.h | 4 ++++ src/protocol.c | 6 +++--- src/scrobbler.c | 8 +++++--- 3 files changed, 12 insertions(+), 6 deletions(-) commit 54ff51b7380d6ef30d3ff182d334035f49673a51 Author: Alberto Garcia Date: Fri Nov 23 00:15:15 2007 +0200 * Ask gstreamer the current running time instead of calculating it src/audio.c | 10 ++++++++++ src/audio.h | 1 + src/controller.c | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) commit d2a19988b33ca80df6ebf398483f46bcbe452eea Author: Alberto Garcia Date: Thu Nov 22 00:54:07 2007 +0200 * Create buttons with gtk_button_new_with_label(). This fixes a bug in Gtk from Maemo 2 that made the buttons appear with no images * Release Vagalume 0.3a with that fix NEWS | 3 +++ configure.ac | 2 +- debian/changelog | 6 ++++++ src/mainwin.c | 13 +++++++------ 4 files changed, 17 insertions(+), 7 deletions(-) commit 7259889f486629249a7119e5fb5ea248d251574c Author: Alberto Garcia Date: Wed Nov 21 22:03:03 2007 +0200 * Use the big logo for the about dialog src/mainwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dbd3b4603c7e002ec98e7142a91559857470b2d8 Author: Alberto Garcia Date: Wed Nov 21 15:21:31 2007 +0200 Fix e-mail address in debian changelog debian/changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4bc75285af3a9b1302feda6973a55bbec4cd72c3 Author: Alberto Garcia Date: Wed Nov 21 14:03:34 2007 +0200 * Check in http_copy_buffer() src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fa6faf341c42fdb517108f6ef8379b022a3d903d Author: Alberto Garcia Date: Wed Nov 21 12:02:52 2007 +0200 * New love button data/pixmaps/love.png | Bin 1322 -> 1188 bytes 1 file changed, 0 insertions(+), 0 deletions(-) commit 6ec9b90a1da6a8b6b5fb32b649ba0c204ce6700c Author: Alberto Garcia Date: Wed Nov 21 11:16:54 2007 +0200 * Show a 48x48 icon in the About dialog data/pixmaps/vagalume_48x48.png | Bin 0 -> 4418 bytes src/mainwin.c | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) commit 07f275bdc68ade318d3548d7e18af96a55a2d06b Author: Alberto Garcia Date: Wed Nov 21 04:40:03 2007 +0200 * Get album cover after playback has started src/controller.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) commit 30e8a3848487545f98b078563126793b28ef5356 Author: Alberto Garcia Date: Wed Nov 21 04:00:45 2007 +0200 * Add logo to the about dialog * Add new 'artists' section to the about dialog src/mainwin.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit 574769f76ca78d8e49f5c696e660f4a1a88e9065 Author: Alberto Garcia Date: Wed Nov 21 03:44:50 2007 +0200 * Updating README, etc, for the 0.3 release NEWS | 15 +++++++++++++++ README | 11 ++++++----- TODO | 3 --- configure.ac | 2 +- debian/changelog | 6 ++++++ 5 files changed, 28 insertions(+), 9 deletions(-) commit 51b98a0a8d4aaa56f9d004c6ef87d1f301a6b794 Author: Alberto Garcia Date: Wed Nov 21 03:24:44 2007 +0200 * UI: added buttons to love, ban and download * UI reorganization * Updated About dialog to add Mario and Felipe * Set a different cover size for Maemo and Gnome * Add icons to all the buttons instead of using stock icons * Add application icon to the main window * Add shortcuts for play/stop and next * Add confirmation dialog to download tracks src/controller.c | 7 +++- src/mainwin.c | 104 +++++++++++++++++++++++++++++++++++++++++++----------- src/mainwin.h | 1 + 3 files changed, 90 insertions(+), 22 deletions(-) commit d4133a37ce93345d1424059a970de4679d2d2633 Author: Alberto Garcia Date: Wed Nov 21 03:21:06 2007 +0200 * Added icons by Felipe Erias and Mario Sanchez * Defined vagalumedatadir to install all extra files * Simplified Makefile.am AUTHORS | 5 +++++ Makefile.am | 18 +++++++++--------- configure.ac | 5 +++++ data/pixmaps/ban.png | Bin 0 -> 1660 bytes data/pixmaps/dload.png | Bin 0 -> 772 bytes data/pixmaps/love.png | Bin 0 -> 1322 bytes data/pixmaps/next.png | Bin 0 -> 1455 bytes data/pixmaps/play.png | Bin 0 -> 632 bytes data/pixmaps/stop.png | Bin 0 -> 221 bytes data/pixmaps/vagalume.png | Bin 0 -> 1873 bytes debian/control.maemo | 34 ++++++++++++++++++++++++++++++++++ maemo/vagalume.desktop | 5 ++++- src/Makefile.am | 2 +- src/globaldefs.h | 4 ++++ 14 files changed, 62 insertions(+), 11 deletions(-) commit f8473d70e4b245a9e161c9c1ad4c8435f1706a30 Author: Alberto Garcia Date: Tue Nov 20 23:08:25 2007 +0200 * controller_start_playing() is now asynchronous, so don't call flush_ui_events() src/controller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 0552f2c736c137e45889b5791a7c53e89812cc0e Author: Alberto Garcia Date: Tue Nov 20 21:36:51 2007 +0200 Don't set the cover image if there's no mainwin src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fe2aa49382f93bf63b323d4290040a7499a78dcf Author: Alberto Garcia Date: Tue Nov 20 12:52:03 2007 +0200 * Set ellipsize style in gtk labels src/mainwin.c | 4 ++++ 1 file changed, 4 insertions(+) commit a453978b77b8b09d9ccf83ac05287eaba2a83e42 Author: Alberto Garcia Date: Tue Nov 20 02:55:59 2007 +0200 * Avoid using gtk_image_clear (for backwards compatibility) src/mainwin.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) commit 7f6b1fcc463f9b8409ae30a299226ec2573556a8 Author: Alberto Garcia Date: Tue Nov 20 02:35:59 2007 +0200 * Reorganized the UI a bit src/mainwin.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit 41f8511a474c1db2aa6037c52d6a6ab11ba6bb6a Author: Alberto Garcia Date: Tue Nov 20 02:15:42 2007 +0200 * Show an empty square better than the 'no image' stock icon * Show only one of play/stop buttons at the same time * Surround the cover image with a square src/controller.c | 1 + src/mainwin.c | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) commit a86309fbd5fb40319fc0a593bcc0dd5ac111497b Author: Alberto Garcia Date: Tue Nov 20 01:57:43 2007 +0200 * Set format for the labels in the main window src/mainwin.c | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) commit 3544135c5c8f9c3d2d9c2215dd08307ad3c8d6bd Author: Alberto Garcia Date: Tue Nov 20 01:33:34 2007 +0200 * Show the album cover in the main window src/controller.c | 39 +++++++++++++++++++++++++++++++++++++++ src/mainwin.c | 42 ++++++++++++++++++++++++++++++++++++++++++ src/mainwin.h | 2 ++ 3 files changed, 83 insertions(+) commit a09e85dac977379edec7ee119e534311f27ae152 Author: Alberto Garcia Date: Mon Nov 19 17:45:30 2007 +0200 * Add terminator to g_strconcat() src/userconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 68326881ab19b8a2bfc921ceb25e6d6efb6a4a85 Author: Alberto Garcia Date: Mon Nov 19 14:11:04 2007 +0200 * Open lastfm:// uris from the browser debian/rules | 1 + maemo/vagalume.desktop | 8 +++++++- maemo/vagalume.service | 2 +- src/globaldefs.h | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) commit 60753bce206ade045e40fc54cd882e3bfb22ce6f Author: Alberto Garcia Date: Mon Nov 19 03:33:43 2007 +0200 * Minor fixes src/controller.c | 1 + src/protocol.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) commit 2a609658257679fd2371bb0626e6f9c6ff13f342 Author: Alberto Garcia Date: Sun Nov 18 21:15:53 2007 +0200 * lastfm_get_friends() now differentiaties between an user with no friends and an unsuccessful request src/controller.c | 3 ++- src/protocol.c | 14 ++++++++------ src/protocol.h | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) commit 61801ef32470999173c3cf66b3222558c2916e30 Author: Alberto Garcia Date: Sun Nov 18 20:55:54 2007 +0200 * http_get_buffer() and http_post_buffer() now return a boolean src/http.c | 32 +++++++++++++++++++++++--------- src/http.h | 6 +++--- 2 files changed, 26 insertions(+), 12 deletions(-) commit 690cf3fc6ea2f456ab3db33e002379e9f78ee4aa Author: Alberto Garcia Date: Sun Nov 18 01:01:45 2007 +0200 * Compatibility changes in configure.ac * Basic D-BUS support for Maemo (method PlayUrl) * Compilation fixes configure.ac | 28 ++++++++++++++-------------- src/controller.c | 47 ++++++++++++++++++++++++++++++++++++++++++----- src/globaldefs.h | 5 +++++ src/uimisc.c | 13 ++++++++----- 4 files changed, 69 insertions(+), 24 deletions(-) commit 343f1c3a38c8d6a394185d1e8ebbe4c06e599b81 Author: Alberto Garcia Date: Sat Nov 17 21:19:01 2007 +0200 * Minor changes in configure scripts configure.ac | 35 ++++++++++++++++++++--------------- src/Makefile.am | 6 ++---- 2 files changed, 22 insertions(+), 19 deletions(-) commit 96c465e144f948c474f9910322df90c3ff50d119 Author: Alberto Garcia Date: Sat Nov 17 17:04:54 2007 +0200 * Protect info banners with gdk_threads_*() src/controller.c | 6 ++++++ 1 file changed, 6 insertions(+) commit a9b72ab9c2b81740aef91a7c82b3ca0d8f3b8caf Author: Alberto Garcia Date: Sat Nov 17 16:59:17 2007 +0200 * Don't call mainwin_update_track_info() from the controller, call it from mainwin_set_ui_state() better * Basic support for downloading free tracks * New "Download this track" menu entry (for free tracks) * New http_download_file() function * ratemenu renamed to actionsmenu * New "download_dir" setting (fixed value by now) src/controller.c | 86 ++++++++++++++++++++++++++++++++++++++---------------- src/controller.h | 1 + src/http.c | 36 +++++++++++++++++++++++ src/http.h | 1 + src/mainwin.c | 72 +++++++++++++++++++++++++++------------------ src/mainwin.h | 10 +++---- src/userconfig.c | 18 ++++++++++++ src/userconfig.h | 1 + 8 files changed, 167 insertions(+), 58 deletions(-) commit e3bcc3ae6cfdc6148c72e4289c30c7cc3707f91d Author: Alberto Garcia Date: Fri Nov 16 10:08:19 2007 +0200 * Print a warning if http_get_to_fd() fails src/http.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit e144ec240cc8d2ec16bc48635e45c5541d9bdace Author: Alberto Garcia Date: Thu Nov 15 15:42:37 2007 +0200 * Ctrl+Q shortcut to close the program * When stopping audio, stop gstreamer before closing the pipe src/audio.c | 4 ++-- src/mainwin.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) commit 2b3099a33550fedd1214e3456802946d13b39196 Author: Alberto Garcia Date: Thu Nov 15 10:57:01 2007 +0200 * When playing audio, wait for the previous thread before anything else src/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 372a405bf3c39004cabc6f5319e52da8d361b58c Author: Alberto Garcia Date: Wed Nov 14 03:01:18 2007 +0200 * Fix assertion src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7798f1295d35cf5af3caf30e474ce97db4f96c58 Author: Alberto Garcia Date: Wed Nov 14 02:45:26 2007 +0200 * Don't wait for the HTTP thread whenever stopping playback, it's enough to do it only before creating a new thread. src/audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 2985846abcb0656f31d7f28d065fdc30eee25034 Author: Alberto Garcia Date: Wed Nov 14 02:35:55 2007 +0200 * If the HTTP request finishes before playback has started, treat it as a connection error src/audio.c | 4 ++++ 1 file changed, 4 insertions(+) commit caf20d73894801b18054d74c8bb7f1bc78500a90 Author: Alberto Garcia Date: Wed Nov 14 02:00:51 2007 +0200 * Abort stalled transferences src/http.c | 2 ++ 1 file changed, 2 insertions(+) commit 8c43f536415ab5a4927bb81685f380a06f0c69be Author: Alberto Garcia Date: Wed Nov 14 01:26:35 2007 +0200 * Better handling of errors with the new gstramer fdsrc * In lastfm_audio_stop() completely close the previous playback * http_get_to_fd() now returns a boolean indicating read errors * Stop playing before closing the app * Include e-mail address and homepage in README file README | 4 +++- src/audio.c | 29 +++++++++++++++++------------ src/controller.c | 1 + src/http.c | 15 +++++++++------ src/http.h | 4 ++-- 5 files changed, 32 insertions(+), 21 deletions(-) commit 3b6e6177c3f3821399a60d9228d4dd37e16c067c Author: Alberto Garcia Date: Wed Nov 14 00:19:50 2007 +0200 * When updating the counter on the progress bar use a static buffer instead of allocating and freeing memory each time src/mainwin.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit 74cc66ef1afbf55da93b715bec848f67525d8f0b Author: Alberto Garcia Date: Tue Nov 13 02:18:50 2007 +0200 * Detect if a URL is lastfm://play/ and get its playlist using lastfm_request_custom_playlist() * Proper support for lastfm://play/ URLs: now lastfm_audio_play() accepts a session ID to set the cookie needed to play those tracks TODO | 1 - src/audio.c | 36 ++++++++++++++++++++++++++++-------- src/audio.h | 3 ++- src/controller.c | 26 +++++++++++++++++++++----- src/http.c | 13 ++++++++++++- src/http.h | 2 +- 6 files changed, 64 insertions(+), 17 deletions(-) commit 7d2ad9e2bf63dc2f77eb961c207deb7997953076 Author: Alberto Garcia Date: Tue Nov 13 01:33:01 2007 +0200 * Removed the dependency on gnomevfs, now libcurl sends the audio data directly to gstreamer using a pipe. * The controller now waits for gstreamer to confirm that playback has begun, so the progressbar is more accurate. TODO | 1 - debian/control | 2 +- debian/control.maemo | 2 +- src/audio.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- src/audio.h | 2 +- src/controller.c | 27 ++++++++++++++++++++------- src/http.c | 16 ++++++++++++++++ src/http.h | 1 + src/main.c | 2 ++ 9 files changed, 88 insertions(+), 14 deletions(-) commit 580c74034b0872d43b0cc22b8a94021ac5e1dc61 Author: Alberto Garcia Date: Mon Nov 12 02:48:17 2007 +0200 * Don't store the stream_url in the session, it's not used anymore * New attribute custom_pls to tell if a track is from a custom (lastfm://play/) playlist. It'll be needed in the future src/playlist.h | 1 + src/protocol.c | 11 ++++++----- src/protocol.h | 1 - 3 files changed, 7 insertions(+), 6 deletions(-) commit 3ccdf377e73534bfbb369644f1dcbbff76f1d4cd Author: Alberto Garcia Date: Mon Nov 12 01:59:23 2007 +0200 * Code refactoring src/protocol.c | 119 ++++++++++++++++++++++---------------------------------- 1 file changed, 46 insertions(+), 73 deletions(-) commit 4a26df4cf7aa170aa4be77be0488777eed4cb27b Author: Alberto Garcia Date: Sun Nov 11 23:20:31 2007 +0200 * Updated TODO, minor changes TODO | 2 ++ configure.ac | 2 +- src/http.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) commit ceac5b7266c37ec6279540b00ce8b2431d94fd1b Author: Alberto Garcia Date: Sun Nov 11 23:06:13 2007 +0200 * Put the name of the track in the main window's title src/mainwin.c | 5 +++++ 1 file changed, 5 insertions(+) commit 32872f753f388b6a9bd4a2409d4e81bff58f8181 Author: Alberto Garcia Date: Sun Nov 11 21:07:34 2007 +0200 * New option to play a group member's radio src/controller.c | 21 +++++++++++++++++++++ src/controller.h | 1 + src/mainwin.c | 12 +++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) commit 2ecfffd67a5645407bddce299c291fafc8ed5550 Author: Alberto Garcia Date: Sun Nov 11 20:24:20 2007 +0200 * Store the title of the playlist in each track, not in lastfm_pls src/controller.c | 6 +++--- src/playlist.c | 22 +++------------------- src/playlist.h | 5 ++--- src/protocol.c | 32 ++++++++++++++++++-------------- 4 files changed, 26 insertions(+), 39 deletions(-) commit 967dab8037dded720f16216c9927a65c64522b07 Author: Alberto Garcia Date: Sun Nov 11 20:06:55 2007 +0200 * Use a GQueue instead of a GSList to store tracks in playlist src/playlist.c | 14 ++++++++------ src/playlist.h | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) commit 206280786af0aff3478acc1ef42af7ea9f92be68 Author: Alberto Garcia Date: Sun Nov 11 19:45:54 2007 +0200 * If a track can be downloaded for free, add its url to the lastfm_track src/playlist.c | 2 ++ src/playlist.h | 1 + src/protocol.c | 13 +++++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) commit d4a7d25b6e6f7a1e2bc74f2ad3d26436708b9399 Author: Alberto Garcia Date: Sun Nov 11 16:41:23 2007 +0200 * TODO file TODO | 14 ++++++++++++++ debian/docs | 1 + 2 files changed, 15 insertions(+) commit c790e63df43fa91de1626a915363f6ec667dac77 Author: Alberto Garcia Date: Sun Nov 11 16:39:38 2007 +0200 * A bit of code reorganization src/controller.c | 47 +++++++++++++++++++++++++---------------------- src/controller.h | 1 + src/uimisc.c | 22 ++++++++++++++++++++-- src/uimisc.h | 4 +++- 4 files changed, 49 insertions(+), 25 deletions(-) commit cb04205c0cb894fec059076ec30e94cffe27613c Author: Alberto Garcia Date: Sun Nov 11 15:59:43 2007 +0200 * Documented some functions src/protocol.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 74 insertions(+), 3 deletions(-) commit 3f45c6542baa56edbe2acaadf151b9c99fe1a460 Author: Alberto Garcia Date: Sun Nov 11 15:31:20 2007 +0200 * Add code to request 'custom' playlists (lastfm://play/...) src/protocol.c | 32 ++++++++++++++++++++++++++++++++ src/protocol.h | 2 ++ src/radio.c | 8 ++++++++ src/radio.h | 1 + 4 files changed, 43 insertions(+) commit 8723937e5cce63f7dbe1aa0cd521aeca77714cab Author: Alberto Garcia Date: Fri Nov 9 00:46:07 2007 +0200 * Start with a default volume level of 80 instead of 50 src/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8cfe83744d552e4105e0cfecd9b3de0b912041c6 Author: Alberto Garcia Date: Thu Nov 8 23:23:55 2007 +0200 * Added missing includes src/protocol.c | 2 ++ 1 file changed, 2 insertions(+) commit aa3d47d0c13673784440dfbdac4b058f455ec7a7 Author: Alberto Garcia Date: Thu Nov 8 22:47:23 2007 +0200 * Updated NEWS, changelog, etc., for vagalume 0.2 NEWS | 13 +++++++++++++ configure.ac | 2 +- debian/changelog | 6 ++++++ maemo/vagalume.desktop | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) commit 169fbac059a01b9b30466adff2bf95e6b8e55722 Author: Alberto Garcia Date: Thu Nov 8 16:08:05 2007 +0200 * Workaround for a problem with the volume setting of the dspmp3sink src/audio.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 2a39e4ddffd2616de3f7df130b640a027804cfdd Author: Alberto Garcia Date: Thu Nov 8 12:09:24 2007 +0200 * Run autogen.sh if necessary build-package.sh | 2 ++ 1 file changed, 2 insertions(+) commit de55a21fcb59d648abd4fe724d230deabdd06cff Author: Alberto Garcia Date: Thu Nov 8 10:59:37 2007 +0200 * Added '...' to Others' radios menu entries src/mainwin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 3c857f8b29dbdf018649a5db86c967e7e1299e94 Author: Alberto Garcia Date: Thu Nov 8 10:43:57 2007 +0200 * Changes in some strings src/controller.c | 6 +++--- src/mainwin.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) commit e2358279105e4153c1664e49ebfb2615331baf91 Author: Alberto Garcia Date: Thu Nov 8 01:34:15 2007 +0200 * Menu reorganization src/mainwin.c | 62 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) commit 859077541b5e7f903a817ec78df67d4bca61f7f1 Author: Alberto Garcia Date: Thu Nov 8 01:14:27 2007 +0200 * Round the volume value correctly * Display a banner when the user changes the volume src/audio.c | 6 +++--- src/audio.h | 2 +- src/controller.c | 14 ++++++++++++-- 3 files changed, 16 insertions(+), 6 deletions(-) commit 11a46429a0a0fca9eba01a15c38ff3d7f67acae7 Author: Alberto Garcia Date: Thu Nov 8 00:35:34 2007 +0200 * Added volume control for Maemo (using Nokia HW keys) configure.ac | 1 - src/audio.c | 39 +++++++++++++++++++++++++++++++++++++++ src/audio.h | 3 +++ src/controller.c | 6 ++++++ 4 files changed, 48 insertions(+), 1 deletion(-) commit 91a5920127f27ab5258b9b05921c7ce5715747a0 Author: Alberto Garcia Date: Wed Nov 7 00:07:55 2007 +0200 * Send just the kernel name (in lowercase) during the handshake configure.ac | 2 ++ src/globaldefs.h | 5 +++-- src/protocol.c | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) commit 0641a892ac59a7c1109ef51158cd9e3c19ffb5d4 Author: Alberto Garcia Date: Tue Nov 6 23:35:48 2007 +0200 Encode special chars in xmlrpc src/xmlrpc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 7e84c3033dd335f482d7ad8a20b73b21058b65f1 Author: Alberto Garcia Date: Tue Nov 6 23:20:33 2007 +0200 * Show the info banner right after loving/banning a song * Disabled info banner for Gnome (it should be non-blocking) src/controller.c | 30 +++++++++++++++++++++--------- src/uimisc.c | 2 +- 2 files changed, 22 insertions(+), 10 deletions(-) commit b6e280ff501052bb3380b2fc38af274bec8bec3f Author: Alberto Garcia Date: Tue Nov 6 22:05:24 2007 +0200 * Include config.h from uimisc.c to correctly detect when compiling for Maemo * Don't show an info banner when loving/banning tracks src/controller.c | 20 ++------------------ src/uimisc.c | 1 + 2 files changed, 3 insertions(+), 18 deletions(-) commit 64cd673bdbff34d455b8bf22f1b065cd3b268c1d Author: Alberto Garcia Date: Tue Nov 6 21:45:35 2007 +0200 * All XMLRPC functions (tag, recommend, love/ban, add to playlist) now return a boolean to indicate whether they succeeded or not * Show an info banner after calling a XMLRPC function src/controller.c | 51 +++++++++++++++++++++++++++++++++++++++++++++------ src/uimisc.c | 15 +++++++++++++++ src/uimisc.h | 1 + src/xmlrpc.c | 44 ++++++++++++++++++++++++++++++-------------- src/xmlrpc.h | 18 +++++++++--------- 5 files changed, 100 insertions(+), 29 deletions(-) commit 064d4fd6d51c0025617541fdd9ed20d48e51707d Author: Alberto Garcia Date: Sat Nov 3 21:13:57 2007 +0200 * Avoid a crash when pressing Cancel in the user settings dialog src/controller.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit c41504f9f053d3005fb2d84331631e2132347a5f Author: Alberto Garcia Date: Fri Nov 2 22:16:20 2007 +0200 * Fix missing include src/xmlrpc.c | 1 + 1 file changed, 1 insertion(+) commit 6d59ea6a0538cb9aaefe8040f6ce5162496c86a2 Author: Alberto Garcia Date: Fri Nov 2 22:01:37 2007 +0200 * Updates in INSTALL and README files INSTALL | 11 +++++++---- Makefile.am | 1 + README | 14 ++++++++++---- 3 files changed, 18 insertions(+), 8 deletions(-) commit 229ca2de60922674bcf9cd9261f51cf3c5683526 Author: Alberto Garcia Date: Fri Nov 2 21:01:55 2007 +0200 * Code refactoring src/xmlrpc.c | 110 +++++++++++++++++++--------------------------------------- 1 file changed, 35 insertions(+), 75 deletions(-) commit fa6a1b04c71be9c926e00250939145fae4298038 Author: Alberto Garcia Date: Fri Nov 2 20:46:09 2007 +0200 * Build all the XMLRPC requests using libxml2 src/xmlrpc.c | 198 +++++++++++++++++++++++++++++++--------------------------- 1 file changed, 105 insertions(+), 93 deletions(-) commit d0716334920879887c25d5b028c21c70989fc9b3 Author: Alberto Garcia Date: Fri Nov 2 19:23:35 2007 +0200 * Use uname to find out kernel name. Change User-Agent header to include arch configure.ac | 3 +++ src/globaldefs.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) commit 28d107269a0a8e5d8ef8bb595254ff9d7efef69d Author: Alberto Garcia Date: Fri Nov 2 17:46:03 2007 +0200 * Added support for Maemo 2 (Nokia 770) configure.ac | 17 ++++++++++++++--- src/http.c | 6 ++++++ src/mainwin.c | 2 +- 3 files changed, 21 insertions(+), 4 deletions(-) commit e0b6d6bf4198c6899c4d5e8b0a7defee587cb436 Author: Alberto Garcia Date: Fri Nov 2 02:14:36 2007 +0200 * After successfully connecting for the first time, set ui state to STOPPED src/controller.c | 1 + 1 file changed, 1 insertion(+) commit 7032d2981e1ae8310203238f32738346538eb5ce Author: Alberto Garcia Date: Fri Nov 2 02:01:40 2007 +0200 * Ask for a recommendation message src/controller.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit a5c5d1bc1cd91c8ad3eaff8ce3ba58e83cbf1b01 Author: Alberto Garcia Date: Fri Nov 2 01:36:16 2007 +0200 * Ignore case when sorting the friends list * New user selection dialog with a combo box to choose friends src/controller.c | 12 ++++++++---- src/protocol.c | 2 +- src/uimisc.c | 41 +++++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 3 +++ src/xmlrpc.h | 2 ++ 5 files changed, 55 insertions(+), 5 deletions(-) commit 9430e2a4a9742385ca713b06090f5d5019b1b94b Author: Alberto Garcia Date: Fri Nov 2 00:48:33 2007 +0200 * Get and store the list of friends src/controller.c | 9 +++++++-- src/protocol.c | 30 ++++++++++++++++++++++++++++++ src/protocol.h | 1 + 3 files changed, 38 insertions(+), 2 deletions(-) commit 4bc9f6bc65f0297c001b7cdf7888516b0363ed0c Author: Alberto Garcia Date: Fri Nov 2 00:24:01 2007 +0200 * Support for adding tracks to the user's playlist * Fixed a couple of memory leaks src/controller.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ src/controller.h | 1 + src/mainwin.c | 12 +++++++++++- src/xmlrpc.c | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 101 insertions(+), 1 deletion(-) commit 6ec7fa4679f59c8e8bbe6cc3141baec3669223f3 Author: Alberto Garcia Date: Fri Nov 2 00:08:15 2007 +0200 * Basic support for recommending tracks src/controller.c | 88 ++++++++++++++++++++++++++++++++++++++++++++---------- src/controller.h | 3 +- src/mainwin.c | 40 +++++++++++++++++++++---- src/xmlrpc.c | 69 ++++++++++++++++++++++++++++++++++++++++-- src/xmlrpc.h | 13 ++++---- 5 files changed, 182 insertions(+), 31 deletions(-) commit 8dbbdbabe5d58e5c727f256f46eeeecf9efcb881 Author: Alberto Garcia Date: Thu Nov 1 15:46:10 2007 +0200 * Set Build-Depends for Debian debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fc4c6f635b21caad42f0127df30de84738a6bb8e Author: Alberto Garcia Date: Thu Nov 1 15:30:06 2007 +0200 * Enable scrobbling by default if unconfigured src/uimisc.c | 3 +++ 1 file changed, 3 insertions(+) commit d7c2442166bae6dee9626f04ec6157456a67c10f Author: Alberto Garcia Date: Thu Nov 1 15:27:34 2007 +0200 * Autodetect Gnome, Maemo 3 or Maemo 4 INSTALL | 13 ++++++------ build-gnome-package.sh | 3 --- build-maemo-package.sh | 9 --------- build-package.sh | 13 ++++++++++++ configure.ac | 51 +++++++++++++++++++++++++++++++++++++++--------- debian/rules | 6 +++++- src/controller.c | 3 +-- src/mainwin.c | 4 +++- 8 files changed, 71 insertions(+), 31 deletions(-) commit 9b2d09aa1ce4c781f480e918f071dcb305a65baa Author: Alberto Garcia Date: Thu Nov 1 14:45:55 2007 +0200 * Preparing files (README, NEWS, ...) for 0.1 release NEWS | 11 +++++++++++ README | 3 ++- configure.ac | 2 +- debian/changelog | 6 ++++++ 4 files changed, 20 insertions(+), 2 deletions(-) commit c360a28b2306a8ae10d78ef1f7b587fa726c70d5 Author: Alberto Garcia Date: Thu Nov 1 14:23:21 2007 +0200 * Code restructuring src/Makefile.am | 38 ++++------- src/controller.c | 4 -- src/controller.h | 2 +- src/mainwin.c | 2 +- src/protocol.c | 26 +------ src/protocol.h | 1 - src/scrobbler.c | 13 ++-- src/tags.c | 200 ------------------------------------------------------ src/tags.h | 26 ------- src/util.c | 56 +++++++++++++++ src/util.h | 13 ++++ src/xmlrpc.c | 196 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/xmlrpc.h | 26 +++++++ 13 files changed, 312 insertions(+), 291 deletions(-) commit 7c38cf51b63d6d4371955db484fd20691d46c229 Author: Alberto Garcia Date: Thu Nov 1 13:57:38 2007 +0200 * Added Similar artists radio to the menu src/controller.c | 50 ++++++++++++++++++++++++++++++++++---------------- src/controller.h | 1 + src/mainwin.c | 16 +++++++++++++--- src/mainwin.h | 2 +- src/tags.c | 2 +- src/uimisc.c | 2 +- 6 files changed, 51 insertions(+), 22 deletions(-) commit c89e39e3f6e90f1af4d580d88e7ba01a967f2b7f Author: Alberto Garcia Date: Thu Nov 1 04:06:40 2007 +0200 * Tag tracks using a thread to prevent the UI from freezing src/controller.c | 90 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 64 insertions(+), 26 deletions(-) commit 4d29d7389d8173cfb7901b20869874036a373ae1 Author: Alberto Garcia Date: Thu Nov 1 03:52:52 2007 +0200 * Allow a list of tags separated by commas src/controller.c | 13 +++++++++---- src/protocol.c | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) commit 04f9a62aceedc6c36395960fd0bc5f6dd8b98780 Author: Alberto Garcia Date: Thu Nov 1 03:42:29 2007 +0200 * Support for the fullscreen key in Maemo src/controller.c | 36 ++++++++++++++++++++++++++++++++++++ src/mainwin.h | 1 + 2 files changed, 37 insertions(+) commit 0f33ab2d21294f4f7cc8a8b5d1bd27676ab4788e Author: Alberto Garcia Date: Thu Nov 1 03:11:38 2007 +0200 * Implemented love_ban_track() using XMLRPC (old protocol, still necessary) * Refactorized tags.c to support both tags and love/hates src/controller.c | 13 ++++ src/tags.c | 186 +++++++++++++++++++++++++++++++++++++++--------------- src/tags.h | 5 +- 3 files changed, 151 insertions(+), 53 deletions(-) commit 3d46ce835cfbc8e9b1f766a03210fa9d9a311ed6 Author: Alberto Garcia Date: Thu Nov 1 02:08:16 2007 +0200 * New file tags.c with a function to tag artists, tracks and albums * New menu entries to tag tracks * New function controller_tag_track() * HTTP: Now you can send custom headers, by default User-Agent: Vagalume src/Makefile.am | 2 + src/controller.c | 40 ++++++++++++++++++ src/controller.h | 2 + src/globaldefs.h | 2 + src/http.c | 27 +++++++++++-- src/http.h | 3 +- src/mainwin.c | 37 +++++++++++++++-- src/scrobbler.c | 15 ++++--- src/tags.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tags.h | 23 +++++++++++ 10 files changed, 252 insertions(+), 17 deletions(-) commit c2144ab24c7987823face129b7e7490309355e86 Author: Alberto Garcia Date: Wed Oct 31 22:51:51 2007 +0200 * New menu entries for playing other users' radios, global tags and personal tags src/controller.c | 75 ++++++++++++++++++++++++++++++++++++++++++++---- src/controller.h | 2 ++ src/mainwin.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++-------- src/uimisc.c | 2 +- 4 files changed, 144 insertions(+), 18 deletions(-) commit bf48ae5fc97680ab1021592f983ac4d7e06c832a Author: Alberto Garcia Date: Wed Oct 31 17:23:56 2007 +0200 * Fix a bug caused by a free() of a const string src/controller.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit ab716cf4fe6ab43abca596a77bfdf2107fc3a2d1 Author: Alberto Garcia Date: Wed Oct 31 04:27:16 2007 +0200 * Fixed Debian scripts * Added INSTALL file * Include config.h in all source files that need it INSTALL | 9 +++++++++ build-gnome-package.sh | 3 +++ build-maemo-package.sh | 9 +++++++++ debian/control | 11 +++++++---- debian/control.maemo | 15 +++++++++++++++ debian/copyright | 17 ++++++++++++----- debian/docs | 4 ++++ debian/rules | 12 ++++++------ src/audio.c | 2 ++ src/controller.c | 2 ++ 10 files changed, 69 insertions(+), 15 deletions(-) commit 1d6cf244120d22c83278c182330ce99669caf39c Author: Alberto Garcia Date: Wed Oct 31 03:40:12 2007 +0200 * Updated version number to 0.0.20071031 * Changed debian/rules for an autoconf-based one * Updated configure.ac and Makefile.am * Included config.h from the files that need it Makefile.am | 23 +++++++++++++++++++++++ NEWS | 2 +- configure.ac | 17 +++++++++++------ debian/changelog | 6 ++++++ debian/rules | 34 +++++++++++++++++++++++++--------- maemo/vagalume.desktop | 9 +++++++++ maemo/vagalume.service | 3 +++ src/Makefile.am | 7 +++++-- src/globaldefs.h | 4 +++- src/mainwin.c | 2 ++ src/userconfig.c | 1 + vagalume.desktop | 9 --------- vagalume.service | 3 --- 13 files changed, 89 insertions(+), 31 deletions(-) commit 35540d29d02f0375d9961e1246e2abc0ed9e56a7 Author: Alberto Garcia Date: Wed Oct 31 02:06:36 2007 +0200 * Compiled using autotools Makefile | 13 ---------- Makefile.am | 17 +++++++++++++ autogen.sh | 8 ++++++ configure.ac | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/Makefile | 25 ------------------- src/Makefile.am | 42 ++++++++++++++++++++++++++++++++ 6 files changed, 140 insertions(+), 38 deletions(-) commit 8a95bec377dbeabbc7bd66c01f020dbd86ec6c6a Author: Alberto Garcia Date: Wed Oct 31 00:53:51 2007 +0200 * AUTHORS, README, NEWS and COPYING files * Some more functions documented * Confirmation dialog before loving/banning tracks AUTHORS | 1 + COPYING | 674 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ NEWS | 9 + README | 59 +++++ src/controller.c | 35 ++- src/controller.h | 1 + src/main.c | 54 ++--- src/mainwin.c | 2 +- src/uimisc.c | 14 ++ src/uimisc.h | 1 + 10 files changed, 818 insertions(+), 32 deletions(-) commit d805134a10eb2ec56055deff11dcd9996a12bd25 Author: Alberto Garcia Date: Tue Oct 30 03:39:38 2007 +0200 * Documented all function from controller.c src/controller.c | 155 +++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 143 insertions(+), 12 deletions(-) commit 3d040f613e336c45b9ead0afbb321766c43d981e Author: Alberto Garcia Date: Tue Oct 30 01:58:21 2007 +0200 * Add website to the About dialog src/mainwin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit d0c9a3d63499730600ebe7bacd792220ce639609 Author: Alberto Garcia Date: Tue Oct 30 01:46:22 2007 +0200 * Tracks that have been played for at least half of its duration should not be marked as skipped in any case src/controller.c | 40 ++++++++++------------------------------ src/controller.h | 1 - src/mainwin.c | 2 +- 3 files changed, 11 insertions(+), 32 deletions(-) commit db4166f7809269245223320ac33e614ad424aaaa Author: Alberto Garcia Date: Tue Oct 30 01:25:02 2007 +0200 * Show the license in the About dialog src/mainwin.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) commit 631ee06c879f35bbbc5bea74b11335b602b33875 Author: Alberto Garcia Date: Tue Oct 30 01:06:24 2007 +0200 * Implemented the 'Enable scrobbling' and 'Discovery mode' settings src/controller.c | 27 +++++++++++++++++++-------- src/protocol.c | 11 +++++++---- src/protocol.h | 2 +- src/uimisc.c | 21 +++++++++++++++++++-- src/userconfig.c | 16 +++++++++------- src/userconfig.h | 1 + 6 files changed, 56 insertions(+), 22 deletions(-) commit 0a9a4fe59bf453f0510d20273542b0d0573ad97e Author: Alberto Garcia Date: Tue Oct 30 00:01:57 2007 +0200 * Implemented the RSP rating (love/ban/skip) src/controller.c | 99 ++++++++++++++++++++++++++++++++++++++++++------------ src/controller.h | 4 +++ src/mainwin.c | 37 ++++++++++++++++++-- src/mainwin.h | 2 +- src/scrobbler.c | 17 ++++++++-- src/scrobbler.h | 9 ++++- 6 files changed, 139 insertions(+), 29 deletions(-) commit 9ca327a690a17d08728d1a6683bfc6ee77a329b2 Author: Alberto Garcia Date: Mon Oct 29 21:58:48 2007 +0200 * Don't clear the artist/track/album labels when skipping, just dim them src/controller.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit ec3c9b48e0c7bbb781173e21b46490aa9bfe2799 Author: Alberto Garcia Date: Mon Oct 29 02:11:12 2007 +0200 * Don't expand the progress bar, looks ugly on Maemo src/mainwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b761546991c3391785cc017a5a5cd1c5b5aabe96 Author: Alberto Garcia Date: Mon Oct 29 01:53:41 2007 +0200 * In Maemo, put the Quit meny entry in the toplevel menu src/controller.c | 4 ++++ src/mainwin.c | 5 +++++ 2 files changed, 9 insertions(+) commit f138dd13a1115ec08206e8763be5ed8466538290 Author: Alberto Garcia Date: Mon Oct 29 01:28:50 2007 +0200 * Set version number in the About dialog src/mainwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0d1cd6c8fd10090fccd8a1bcbf5a897d17d1102c Author: Alberto Garcia Date: Mon Oct 29 01:15:53 2007 +0200 * Update playlist using a thread. Prevents the UI from freezing src/controller.c | 39 ++++++++++++++++++++++++++------------- src/protocol.h | 1 + src/uimisc.c | 6 ++++++ src/uimisc.h | 1 + 4 files changed, 34 insertions(+), 13 deletions(-) commit a750d0d1225ffc9b06c7fb7ca6553f6a671d7868 Author: Alberto Garcia Date: Mon Oct 29 01:03:37 2007 +0200 * Take the playlist out of the session. Make sessions copyable src/controller.c | 17 ++++++++++------- src/protocol.c | 22 ++++++++++++++++------ src/protocol.h | 1 - 3 files changed, 26 insertions(+), 14 deletions(-) commit 963aa321c17a637bde5f3832ec058b83a2d3ada1 Author: Alberto Garcia Date: Mon Oct 29 00:34:56 2007 +0200 * lastfm_request_playlist() returns a new playlist instead of modifying the one on the session (this will help when trying to use threads) * lastfm_pls_merge(), new function to merge playlists src/controller.c | 6 +++++- src/playlist.c | 19 +++++++++++++++++++ src/playlist.h | 1 + src/protocol.c | 13 +++++++++---- src/protocol.h | 2 +- 5 files changed, 35 insertions(+), 6 deletions(-) commit efa2e892e16b4be65a09ebd8bf51c98ca0da8fd2 Author: Alberto Garcia Date: Mon Oct 29 00:08:56 2007 +0200 * Only call controller_show_progress() when actually playing something src/controller.c | 14 ++++++++++---- src/mainwin.c | 3 +-- 2 files changed, 11 insertions(+), 6 deletions(-) commit 7c758d00cd6b489d75757e288d8dff9ff6b61f92 Author: Alberto Garcia Date: Sun Oct 28 23:41:17 2007 +0200 * Included license and copyright in all source files src/audio.c | 6 ++++++ src/audio.h | 6 ++++++ src/controller.c | 6 ++++++ src/controller.h | 6 ++++++ src/globaldefs.h | 6 ++++++ src/http.c | 6 ++++++ src/http.h | 6 ++++++ src/main.c | 19 +++++++++++++++++++ src/mainwin.c | 8 ++++++++ src/mainwin.h | 6 ++++++ src/playlist.c | 6 ++++++ src/playlist.h | 6 ++++++ src/protocol.c | 6 ++++++ src/protocol.h | 7 +++++++ src/radio.c | 6 ++++++ src/radio.h | 6 ++++++ src/scrobbler.c | 10 ++++++++++ src/scrobbler.h | 7 +++++++ src/uimisc.c | 7 +++++++ src/uimisc.h | 7 +++++++ src/userconfig.c | 7 +++++++ src/userconfig.h | 7 +++++++ 22 files changed, 157 insertions(+) commit 4da9bea669c61c176ab73e766e0ca730bbe851f5 Author: Alberto Garcia Date: Sun Oct 28 22:54:53 2007 +0200 * First name candidate: vagalume * Call osso_initialize() in Maemo Makefile | 4 ++-- debian/changelog | 2 +- debian/control | 4 ++-- debian/rules | 6 +++--- lastfm.desktop | 8 -------- lastfm.service | 3 --- src/Makefile | 6 +++--- src/controller.c | 9 +++++++++ src/globaldefs.h | 5 +++-- src/userconfig.c | 2 +- vagalume.desktop | 9 +++++++++ vagalume.service | 3 +++ 12 files changed, 36 insertions(+), 25 deletions(-) commit 6ed8076315ab62085ce9042a0560d53b0c60733c Author: Alberto Garcia Date: Sun Oct 28 20:57:52 2007 +0200 * First basic debian scripts for Maemo Makefile | 13 ++++++++ debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 12 +++++++ debian/copyright | 13 ++++++++ debian/dirs | 1 + debian/rules | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ lastfm.desktop | 8 +++++ lastfm.service | 3 ++ src/Makefile | 4 +++ 10 files changed, 159 insertions(+) commit a97ee8e7c0896c58539c9181ebbc2f3e54e7b5d0 Author: Alberto Garcia Date: Sun Oct 28 20:15:28 2007 +0200 * Center the text in the progressbar (for Maemo) src/mainwin.c | 2 ++ 1 file changed, 2 insertions(+) commit bd2a53da56335858e557f53ba81796325528807b Author: Alberto Garcia Date: Sun Oct 28 19:58:56 2007 +0200 * Added progressbar src/controller.c | 16 ++++++++++++++-- src/mainwin.c | 51 +++++++++++++++++++++++++++++++++++++++++++++------ src/mainwin.h | 2 ++ 3 files changed, 61 insertions(+), 8 deletions(-) commit 7640ecbc63132144ecd3350bbcab5d25291fc273 Author: Alberto Garcia Date: Sun Oct 28 18:40:33 2007 +0200 * Skip tracks with no title or artist name in the playlist src/protocol.c | 28 ++++++++++++++++++---------- src/scrobbler.c | 18 +++++++++--------- 2 files changed, 27 insertions(+), 19 deletions(-) commit 8ed11785384ab686519973c7dc2c1429d8dd077b Author: Alberto Garcia Date: Sun Oct 28 18:14:10 2007 +0200 * Use the right URL for scrobbling src/scrobbler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f32bc9a37d9b685501b78fcf9843bb1ec6e16973 Author: Alberto Garcia Date: Sun Oct 28 18:05:05 2007 +0200 * New file scrobbler.c: AudioScrobbler RSP (Realtime Submission Protocol) implemented. * Controller: tracks are scrobbled and now playing information is set. * HTTP: new function http_post_buffer() * TrackAuth added to lastfm_track * New function lastfm_track_copy() src/Makefile | 2 +- src/controller.c | 119 +++++++++++++++++++++++++++++++++++++++++-- src/http.c | 25 +++++++++ src/http.h | 1 + src/playlist.c | 22 ++++++++ src/playlist.h | 2 + src/protocol.c | 4 +- src/protocol.h | 1 + src/scrobbler.c | 149 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/scrobbler.h | 23 +++++++++ 10 files changed, 343 insertions(+), 5 deletions(-) commit bdd906054a888dac975c25b0ea0baa41e642bdba Author: Alberto Garcia Date: Sun Oct 28 00:05:47 2007 +0200 * If the program is unconfigured, don't show the settings dialog until the users tries to play a radio src/controller.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 397272dde4c6063bb9f845ad8153f641eabf4067 Author: Alberto Garcia Date: Sat Oct 27 23:52:41 2007 +0200 * Don't set the window title, the app name is already set in main.c src/mainwin.c | 1 - 1 file changed, 1 deletion(-) commit 03ad63fed373ac6d8f7cacf50806a51ecd5de30e Author: Alberto Garcia Date: Sat Oct 27 23:39:12 2007 +0200 * New file globaldefs.h with some constants src/globaldefs.h | 9 +++++++++ src/main.c | 3 ++- src/mainwin.c | 8 ++++---- src/protocol.c | 9 +++------ 4 files changed, 18 insertions(+), 11 deletions(-) commit 1775e7f09b38563e1f0d7fc9e808104c06226a45 Author: Alberto Garcia Date: Sat Oct 27 23:02:06 2007 +0200 * Don't skip automatically more than 3 failed tracks in a row src/audio.c | 11 ++++++++++- src/controller.c | 5 +++++ src/controller.h | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) commit be0917355e1d7c53397df314e931a61385e5ffea Author: Alberto Garcia Date: Sat Oct 27 22:58:22 2007 +0200 * Don't use base64 for storing the password in Maemo (for compilation in Maemo bora) src/userconfig.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 9b02bf87b731134534d6628d6f6c9226a77f3377 Author: Alberto Garcia Date: Sat Oct 27 22:50:36 2007 +0200 * Use strtoll() instead of g_ascii_strtoll() (for Maemo bora) src/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 201e3aaa5b9e594dfac0e504467919155f7f9b86 Author: Alberto Garcia Date: Sat Oct 27 22:44:10 2007 +0200 * Compile for Maemo if arch is arm src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 8f7f567cea01ee3060f33607faa1db516bbe8382 Author: Alberto Garcia Date: Sat Oct 27 22:38:19 2007 +0200 * Use the hildon menu in Maemo src/Makefile | 6 ++++++ src/main.c | 1 + src/mainwin.c | 24 ++++++++++++++++++++---- 3 files changed, 27 insertions(+), 4 deletions(-) commit d7fde2dbe69acaf4c40840a05b739a8734a1f10d Author: Alberto Garcia Date: Sat Oct 27 21:59:19 2007 +0200 * Fix memory leak src/userconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ed60ad16f3f52ea5b0b05510f0a28ae0e95036ac Author: Alberto Garcia Date: Fri Oct 26 20:30:57 2007 +0200 * Show unusual GStreamer messages src/audio.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 2b3403bb1c3859ed919a0834a010c8072ad79ed3 Author: Alberto Garcia Date: Fri Oct 26 13:41:30 2007 +0200 * Ask for username and password if there is no config file on startup src/controller.c | 2 ++ 1 file changed, 2 insertions(+) commit ad62bb5d313676d893e16b8608aafe5f73e0c85d Author: Alberto Garcia Date: Fri Oct 26 02:25:35 2007 +0200 * Show a different error message if the user refuses to enter their username and password * Set the UI state when connecting src/controller.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit e1dea982d0b4151e68f6824fff9555b1ef8a8a33 Author: Alberto Garcia Date: Fri Oct 26 02:15:14 2007 +0200 * Minor changes in the UI src/mainwin.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit aebfc27259d1a80fd0a962d88f4d66b11c9ae28a Author: Alberto Garcia Date: Fri Oct 26 02:03:57 2007 +0200 * Ask radio URL to the user now moved to the controller * Added copyright to the about dialog src/controller.c | 21 +++++++++++++++++++++ src/controller.h | 1 + src/mainwin.c | 23 +++++------------------ 3 files changed, 27 insertions(+), 18 deletions(-) commit d0c87efe24ba7417d6f74431c6ff6e555060df24 Author: Alberto Garcia Date: Fri Oct 26 01:43:35 2007 +0200 * Use different gtk message types for each dialog * Initialize HTTP and sound in the controller, not in main src/controller.c | 25 +++++++++++++++++-------- src/main.c | 8 -------- src/uimisc.c | 5 ++--- src/uimisc.h | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) commit 45b80405a4a67960a2563ca81e6ea0bb97461158 Author: Alberto Garcia Date: Fri Oct 26 01:26:33 2007 +0200 * lastfm_session_new() returns error codes * If the user is unable to connect, show different error messages depending on the reason * Let the user start a radio from the command line again * Check if there are problems initializing gstreamer src/controller.c | 17 ++++++++++++++--- src/controller.h | 2 +- src/main.c | 17 ++++++++++------- src/protocol.c | 7 ++++++- src/protocol.h | 10 +++++++++- 5 files changed, 40 insertions(+), 13 deletions(-) commit d429f6232e3516971f92805407fcf5f3f7ccd0c3 Author: Alberto Garcia Date: Fri Oct 26 00:59:35 2007 +0200 * The controller automatically opens the settings dialog if necessary * gtk_main() is called from the controller now src/controller.c | 32 ++++++++++++++++++++------------ src/controller.h | 3 +-- src/main.c | 13 +------------ 3 files changed, 22 insertions(+), 26 deletions(-) commit 1bc8e2f0554a482b46530b3b78115f5cb95d87be Author: Alberto Garcia Date: Fri Oct 26 00:36:39 2007 +0200 * New user settings dialog (to set user and password) * The controller automatically inits a session if there is none src/controller.c | 46 ++++++++++++++++++++++-------- src/controller.h | 2 +- src/main.c | 35 +++++------------------ src/mainwin.c | 12 ++++++++ src/mainwin.h | 2 +- src/uimisc.c | 82 +++++++++++++++++++++++++++++++++++++++++------------- src/uimisc.h | 4 +++ src/userconfig.c | 53 +++++++++++++++++++++++++++-------- src/userconfig.h | 8 ++++-- 9 files changed, 170 insertions(+), 74 deletions(-) commit 5618792cbbec1acf13bc7f901628378c7fb323dc Author: Alberto Garcia Date: Thu Oct 25 23:13:48 2007 +0200 * Disable the "Play radio" menu when in "connecting" state src/mainwin.c | 4 ++++ src/mainwin.h | 1 + 2 files changed, 5 insertions(+) commit bf0f592771d4551cf914b4a688d3cfab355c6e10 Author: Alberto Garcia Date: Thu Oct 25 23:10:08 2007 +0200 * New file uimisc.c with misc dialogs * New menu entry to set a radio station by URL * Show an error message when trying to play an invalid radio src/Makefile | 2 +- src/controller.c | 9 ++++++--- src/mainwin.c | 44 ++++++++++++++++++++++++++++---------------- src/mainwin.h | 1 - src/uimisc.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/uimisc.h | 9 +++++++++ 6 files changed, 97 insertions(+), 21 deletions(-) commit c2f8ee7bc042a521333b090a4be527750feeec45 Author: Alberto Garcia Date: Thu Oct 25 21:49:57 2007 +0200 * New function controller_play_audio_by_url() src/controller.c | 23 +++++++++++++++-------- src/controller.h | 1 + src/main.c | 2 ++ 3 files changed, 18 insertions(+), 8 deletions(-) commit 178e1f697ca403dc717bf2d2c019a67a5e0c6cce Author: Alberto Garcia Date: Thu Oct 25 21:19:54 2007 +0200 * Initialize curl just once at the beginning of the program src/http.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) commit 2bea9ab2ae78f47f207bb94d940c89fd53d13c2c Author: Alberto Garcia Date: Thu Oct 25 21:17:46 2007 +0200 * New UI state: disconnected src/mainwin.c | 6 +++++- src/mainwin.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) commit 82d9405748cdc3266ae72e4af4315b694da82c9d Author: Alberto Garcia Date: Thu Oct 25 20:13:18 2007 +0200 * Created usercfg object and stopped using global variables in userconfig.c src/controller.c | 14 +++++++++++--- src/controller.h | 2 ++ src/main.c | 10 ++++++---- src/userconfig.c | 53 ++++++++++++++++++++++++----------------------------- src/userconfig.h | 12 ++++++++---- 5 files changed, 51 insertions(+), 40 deletions(-) commit 0783bee0eb97b24dc1628d3cee87db5183886c72 Author: Alberto Garcia Date: Thu Oct 25 15:31:38 2007 +0200 * Set the UI as stopped before showing the 'No more content to play' dialog src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 16bfc800c2aa3a572b725c3f6c01d849c060b978 Author: Alberto Garcia Date: Thu Oct 25 15:21:12 2007 +0200 * Added 'User playlist' radio * Skip to the next song if an error appears, instead of stopping src/audio.c | 2 +- src/mainwin.c | 7 ++++++- src/radio.c | 2 ++ src/radio.h | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) commit f62cca0601ba549a00e936bce853c8b55ae11482 Author: Alberto Garcia Date: Thu Oct 25 03:00:26 2007 +0200 * UI: don't store pointers to widgets that we won't need later src/mainwin.c | 28 +++++++++++++++------------- src/mainwin.h | 3 --- 2 files changed, 15 insertions(+), 16 deletions(-) commit 22d0e61d4049eab41afc9ddb8e09e1aa244fdcd3 Author: Alberto Garcia Date: Thu Oct 25 02:51:33 2007 +0200 * Protocol: check NULL values in XML playlist * UI: New function to show info dialogs * Show an info dialog when the playlist is empty src/controller.c | 11 ++++++++++- src/mainwin.c | 14 ++++++++++++++ src/mainwin.h | 1 + src/protocol.c | 20 +++++++++++++------- 4 files changed, 38 insertions(+), 8 deletions(-) commit 1e519e082a5e137be64d7dbb477188b6cc02cf3e Author: Alberto Garcia Date: Thu Oct 25 02:16:53 2007 +0200 * Removed all redundant lastfm_*_radio_url() * Main window: added menu bar, about dialog * New state: connecting. Dims textfields when skipping songs * Controller: new function to select a radio station * Controller: flush gtk events while skipping a song src/controller.c | 27 ++++++++++- src/controller.h | 2 + src/main.c | 3 +- src/mainwin.c | 132 ++++++++++++++++++++++++++++++++++++++++++++++++------ src/mainwin.h | 4 +- src/radio.c | 65 +++++++++++---------------- src/radio.h | 18 +++++--- 7 files changed, 190 insertions(+), 61 deletions(-) commit c7035a8adecadf4e19077ee732e9aa7a9e6c82d7 Author: Alberto Garcia Date: Thu Oct 25 01:37:20 2007 +0200 * Fixed typo src/main.c | 4 ++-- src/userconfig.c | 2 +- src/userconfig.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 16d24a9fba55207431f11fd22e204aadd8bb365f Author: Alberto Garcia Date: Thu Oct 25 00:35:16 2007 +0200 * Code in main.c has been reorganized in mainwin, audio and controller src/Makefile | 3 +- src/audio.c | 110 +++++++++++++++++++++++++++++ src/audio.h | 12 ++++ src/controller.c | 76 ++++++++++++++++++++ src/controller.h | 15 ++++ src/http.c | 2 +- src/http.h | 1 + src/main.c | 206 ++++-------------------------------------------------- src/mainwin.c | 118 +++++++++++++++++++++++++++++++ src/mainwin.h | 24 +++++++ 10 files changed, 371 insertions(+), 196 deletions(-) commit 618c3ff4abcaeb560ea3bbaa5e0887fedad73087 Author: Alberto Garcia Date: Wed Oct 24 19:50:17 2007 +0200 * Moved all curl-related functions to another file src/Makefile | 2 +- src/http.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/http.h | 10 +++++++ src/protocol.c | 78 +----------------------------------------------------- 4 files changed, 92 insertions(+), 78 deletions(-) commit 7503c0441da67582da68faf7f568ec40046dfcef Author: Alberto Garcia Date: Wed Oct 24 10:28:03 2007 +0200 * Add gstreamer support for the N800 src/main.c | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) commit 8e3746d87a3337dda648defa3f7dd4955d27d08b Author: Alberto Garcia Date: Wed Oct 24 10:27:02 2007 +0200 * Removed gcrypt dependency for an internal implementation of MD5 src/Makefile | 4 +- src/md5.c | 392 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/md5.h | 93 ++++++++++++++ src/protocol.c | 14 +- 4 files changed, 496 insertions(+), 7 deletions(-) commit 98c68f074445fc26aae0086ea9c17023cd64b363 Author: Alberto Garcia Date: Tue Oct 23 16:15:17 2007 +0200 * Don't check a failure in the handshake with an assertion src/protocol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 43e6e2d1c78e0845928b9e0b78981451a889acf3 Author: Alberto Garcia Date: Tue Oct 23 11:31:01 2007 +0200 * Skip to next song when the current one finishes * Let the user set the radio station from the command line src/main.c | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) commit d84f09de3b619502f58639793084d501777321e8 Author: Alberto Garcia Date: Tue Oct 23 10:16:39 2007 +0200 * Sanity checks when building Last.fm session src/protocol.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit edf4ff023b0802830c9b4b53554a11be0371207a Author: Alberto Garcia Date: Tue Oct 23 01:07:36 2007 +0200 * Store the password in the config file encoded in base64 src/userconfig.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 4e4a025f36159ba831eac6ae15b9fb4db2881571 Author: Alberto Garcia Date: Tue Oct 23 00:48:29 2007 +0200 * Warn if trying to write a null user config src/userconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5414c5d736e5eb3c88c686235a89cc90d74cebe4 Author: Alberto Garcia Date: Tue Oct 23 00:44:23 2007 +0200 * New function write_user_cfg() to save user data to the config file src/playlist.c | 1 - src/userconfig.c | 47 ++++++++++++++++++++++++++++++++++++++--------- src/userconfig.h | 1 + 3 files changed, 39 insertions(+), 10 deletions(-) commit ade8eabfd22871bf82cc8fa99f00cfdb7a6ca28d Author: Alberto Garcia Date: Tue Oct 23 00:28:25 2007 +0200 * Unescape radio station titles obtained from the XSPF using CURL * New functions to construct radio station URLs * Set the neighbours radio by default at startup src/Makefile | 2 +- src/main.c | 7 +++++++ src/playlist.c | 5 ----- src/protocol.c | 18 ++++++++++++---- src/radio.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/radio.h | 14 +++++++++++++ 6 files changed, 99 insertions(+), 10 deletions(-) commit 0ac5ffe610bb12a2c0cd3c973cee7187ddc24614 Author: Alberto Garcia Date: Mon Oct 22 23:49:24 2007 +0200 * lastfm_handshake() renamed to lastfm_session_new(user,pw) src/main.c | 8 +++++++- src/protocol.c | 20 ++++---------------- src/protocol.h | 2 +- 3 files changed, 12 insertions(+), 18 deletions(-) commit 99104c07c857dfd251164f90b66e059637d3c2b3 Author: Alberto Garcia Date: Mon Oct 22 23:41:57 2007 +0200 * New function to set a radio station * lastfm_pls_set_title() now converts escaped titles * New function lastfm_pls_clear() to remove all tracks from a playlist without destroying the playlist object src/playlist.c | 25 +++++++++++++++++++++---- src/playlist.h | 1 + src/protocol.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++-------- src/protocol.h | 1 + 4 files changed, 69 insertions(+), 12 deletions(-) commit 453c5a0a07742647278a65a8e4f0ea6bd0ca1685 Author: Alberto Garcia Date: Mon Oct 22 21:34:48 2007 +0200 * Do all HTTP processing in memory instead of using temporary files src/protocol.c | 117 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 63 insertions(+), 54 deletions(-) commit d66c47b9bb5a82905022734ae00240ef2aec2f31 Author: Alberto Garcia Date: Mon Oct 22 02:45:10 2007 +0200 * Documented all functions in playlist.c src/playlist.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) commit 9453fc72b434743ecd7c08a65a47ac690d9d101d Author: Alberto Garcia Date: Mon Oct 22 02:00:26 2007 +0200 Show playlist name in the main window src/main.c | 13 ++++++++++++- src/protocol.c | 10 ++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) commit ceab7129874272d03ab7ebf9fb697eadfa2cb5ea Author: Alberto Garcia Date: Mon Oct 22 01:39:10 2007 +0200 * Modified playlist type, to include the title * playlist is no longer a static variable, but a member of lastfm_session src/main.c | 5 ++--- src/playlist.c | 46 +++++++++++++++++++++++++++++++++------------- src/playlist.h | 14 +++++++++++--- src/protocol.c | 40 +++++++++++++++++++++++++++------------- src/protocol.h | 3 +++ src/userconfig.c | 1 - 6 files changed, 76 insertions(+), 33 deletions(-) commit a8dbaeebc3e23519e528e836eec4201045352d17 Author: Alberto Garcia Date: Sun Oct 21 21:30:35 2007 +0200 * Read the username and password from a config file src/Makefile | 2 +- src/protocol.c | 9 ++++-- src/userconfig.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/userconfig.h | 11 +++++++ 4 files changed, 102 insertions(+), 4 deletions(-) commit b91af4678da9e9a4323743cbca02beec2aabf8be Author: Alberto Garcia Date: Sun Oct 21 20:38:20 2007 +0200 * Make lastfm_parse_handshake() and lastfm_request_xsfp() static src/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 741bccfe736f6d2a626539b7b409722fb8fa049c Author: Alberto Garcia Date: Sun Oct 21 20:21:54 2007 +0200 * New playlist data structure with helper functions * Implemented XML playlist parser * Plays songs from the playlist instead of using the old stream URL * Show track info in the main window src/Makefile | 8 +++-- src/main.c | 107 +++++++++++++++++++++++++++++++++++++++++--------------- src/playlist.c | 47 +++++++++++++++++++++++++ src/playlist.h | 22 ++++++++++++ src/protocol.c | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/protocol.h | 2 +- 6 files changed, 256 insertions(+), 33 deletions(-) commit f9fb2b6fc5ecab4a2869e4c9345c85ef94b68770 Author: Alberto Garcia Date: Sat Oct 20 20:53:55 2007 +0200 Skip lines from last.fm handshake if they're too small src/protocol.c | 1 + 1 file changed, 1 insertion(+) commit 467b9160b80730e9ad7a24dbedfca43909529e2d Author: Alberto Garcia Date: Sat Oct 20 20:39:55 2007 +0200 * New lastfm_session object * Protocol requests are now dumped to a file for processing * Initial handing of XSFP playlists * curl_global_init() is guaranteed to be called only once src/main.c | 11 ++-- src/protocol.c | 158 ++++++++++++++++++++++++++++++++++++-------------------- src/protocol.h | 12 ++++- 3 files changed, 119 insertions(+), 62 deletions(-) commit ede5ad1888d7a98aaf970fdd362f41534a7b5d63 Author: Alberto Garcia Date: Sat Oct 20 17:09:51 2007 +0200 Basic implementation of the handshake src/Makefile | 8 +++-- src/main.c | 25 +++++++++---- src/protocol.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/protocol.h | 8 +++++ 4 files changed, 140 insertions(+), 10 deletions(-) commit 8b9dac976c98223f5b9eb22d3f4e8da34bcf400e Author: Alberto Garcia Date: Fri Oct 19 19:20:22 2007 +0200 New Last.fm client, initial import src/Makefile | 8 ++++ src/main.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) vagalume-0.8.6/INSTALL0000644000000000000000000000166412233552617011263 00000000000000 The easiest way to install Vagalume is to create a Debian package. There are several ways to do it: * If compiling for a PC or for a Nokia Internet Tablet, just run: ./build-package.sh * Alternatively, you can run fakeroot debian/rules binary DEB_TARGET_PLATFORM=myplatform Where 'myplatform' is one of: - gnome: A standard PC with the Gnome desktop - maemo: A Nokia Internet Tablet - moblin: A Moblin-based device with a resolution of 1024x600 - moblin2: A Moblin-based device with a resolution of 800x480 If you prefer to compile it by hand or if you're compiling it in a non-Debian system then run: ./configure && make In both cases the system should detect automatically if it's compiling for Maemo or for a standard computer. Type './configure --help' to see a list of configuration options. For Moblin you have to specify the platform name by hand (either 'moblin' or 'moblin2', see above). vagalume-0.8.6/config.sub0000755000000000000000000010535412233553543012215 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-08-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or1k-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: vagalume-0.8.6/TODO0000644000000000000000000000146012233552617010714 00000000000000List of features that need to be implemented (in no particular order): * Alarm clock * Send recommendations to many users at once * A better UI * History * Add a volume bar to control the volume graphically * Support changing the popularity of recommendations * Support multi-artist and multi-tag radios * Configuration setting to select different decoder/sinks * Drop down of favourite artists for similar artists radio * Add links to launch browser to go to last.fm page * Get proxy setting from environment/maemo settings * Notify user on successful scrobble * Pause button * Multi-user support * Save list of unsubmitted tracks * Desktop widget (for Maemo) * Read shoutbox messages ("shouts") * See events by artist or region. Attend events. * Complete migration to the new Last.fm API (http://www.last.fm/api) vagalume-0.8.6/autogen.sh0000755000000000000000000000047312233552617012230 00000000000000#!/bin/sh set -ex libtoolize --copy --force --automake aclocal autoconf --force autoheader --force automake --copy --force-missing --add-missing glib-gettextize --copy --force intltoolize --copy --force --automake if test x$NOCONFIGURE = x; then ./configure "$@" else echo Skipping configure process. fi vagalume-0.8.6/vagalumectl.10000644000000000000000000000556612233552617012625 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH vagalumectl 1 "2010\-10\-30" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME vagalumectl \- Remotely control Vagalume via its D\-Bus interface .SH SYNOPSIS .B vagalumectl .I [command] .SH DESCRIPTION This manual page documents briefly the .B vagalumectl command. .PP .B vagalumectl is a front end to easily control the Vagalume Last.fm client via its D\-Bus interface without having to use low\-level commands. .SH COMMANDS .TP .B play Start playing the last selected radio. .TP .B skip Skip to the next song. .TP .B stop Stop playing. .TP .B love Mark the current song as 'loved'. .TP .B ban Mark the current song as 'banned' and skip to the next one. .TP .BI globaltag "\| tag\^" Play a 'global tag' radio. .TP .BI artist "\| artist\^" Play a 'similar artists' radio. .TP .BI group "\| group\^" Play a 'Last.fm group' radio. .TP .BI loved "\| user\^" Play a user's 'loved tracks' radio. .TP .BI mix "\| user\^" Play a user's mix radio .TP .BI neighbours "\| user\^" Play a user's 'neighbours' radio. .TP .BI library "\| user\^" Play a user's library .TP .BI playlist "\| user\^" Play a user's playlist. .TP .BI playurl "\| url\^" Play an arbitrary radio URL. .TP .BI volumeup "\| [inc]\^" Increase playback volume. If .I inc is not specified it takes 5 as the default value. This command is not available on all platforms. .TP .BI volumedown "\| [inc]\^" Decrease playback volume. If .I inc is not specified it takes 5 as the default value. This command is not available on all platforms. .TP .BI volume "\| value\^" Set the playback volume to a specific value. This command is not available on all platforms. .TP .B start Start Vagalume (unless already running). .TP .B close Close Vagalume (unless already closed). .TP .B help Show a quick reference of all available commands. .SH EXAMPLES Start playing the last selected radio: $ vagalumectl play Play your loved tracks' radio: $ vagalumectl loved YOURUSERNAME Play your best friend's playlist: $ vagalumectl playlist USERNAME Please notice that quotes are recommended around parameters that might contain white spaces, such as .B tag or .B artist , e.g: $ vagalumectl tag "hard rock" $ vagalumectl artist "Led Zeppelin" .SH SEE ALSO .BR vagalume (1) .SH AUTHOR This manpage has been written by Mario Sanchez Prada vagalume-0.8.6/src/0000755000000000000000000000000012233553555011074 500000000000000vagalume-0.8.6/src/vgl-main-menu-gtk.c0000644000000000000000000005336112233552617014425 00000000000000/* * vgl-main-menu-gtk.c -- Main menu (GTK+ version) * * Copyright (C) 2010, 2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include "vgl-main-menu.h" #include "controller.h" #include "uimisc.h" #include "compat.h" #include #include struct _VglMainMenu { #ifdef USE_HILDON_WINDOW GtkMenu parent; #else GtkMenuBar parent; #endif GtkWidget *play, *stop; GtkWidget *radiomenu, *actionsmenu, *settings, *love, *dload; GtkWidget *addtopls, *bmkmenu, *bmkartist, *bmktrack, *bmkradio; }; struct _VglMainMenuClass { #ifdef USE_HILDON_WINDOW GtkMenuClass parent_class; #else GtkMenuBarClass parent_class; #endif }; #ifdef USE_HILDON_WINDOW G_DEFINE_TYPE (VglMainMenu, vgl_main_menu, GTK_TYPE_MENU); #else G_DEFINE_TYPE (VglMainMenu, vgl_main_menu, GTK_TYPE_MENU_BAR); #endif static void menu_enable_all_items (GtkWidget *menu, gboolean enable) { g_return_if_fail (GTK_IS_MENU (menu)); GList *l; GList *items = gtk_container_get_children (GTK_CONTAINER (menu)); for (l = items; l != NULL; l = g_list_next (l)) { GtkWidget *item, *submenu; item = GTK_WIDGET (l->data); submenu = gtk_menu_item_get_submenu (GTK_MENU_ITEM (item)); if (submenu != NULL) { menu_enable_all_items (submenu, enable); } else { gtk_widget_set_sensitive (item, enable); } } if (items != NULL) g_list_free (items); } void vgl_main_menu_set_state (VglMainMenu *menu, VglMainWindowState state, const LastfmTrack *t, const char *radio_url) { g_return_if_fail (VGL_IS_MAIN_MENU (menu)); switch (state) { case VGL_MAIN_WINDOW_STATE_DISCONNECTED: case VGL_MAIN_WINDOW_STATE_STOPPED: gtk_widget_show (menu->play); gtk_widget_hide (menu->stop); menu_enable_all_items (menu->actionsmenu, FALSE); menu_enable_all_items (menu->radiomenu, TRUE); menu_enable_all_items (menu->bmkmenu, TRUE); gtk_widget_set_sensitive (menu->play, TRUE); gtk_widget_set_sensitive (menu->settings, TRUE); gtk_widget_set_sensitive (menu->bmkartist, FALSE); gtk_widget_set_sensitive (menu->bmktrack, FALSE); break; case VGL_MAIN_WINDOW_STATE_PLAYING: gtk_widget_hide (menu->play); gtk_widget_show (menu->stop); menu_enable_all_items (menu->actionsmenu, TRUE); menu_enable_all_items (menu->radiomenu, TRUE); menu_enable_all_items (menu->bmkmenu, TRUE); gtk_widget_set_sensitive (menu->play, FALSE); gtk_widget_set_sensitive (menu->love, TRUE); gtk_widget_set_sensitive (menu->settings, TRUE); gtk_widget_set_sensitive (menu->bmkartist, t->artistid > 0); gtk_widget_set_sensitive (menu->bmktrack, t->id > 0); gtk_widget_set_sensitive (menu->dload, t->free_track_url != NULL); break; case VGL_MAIN_WINDOW_STATE_CONNECTING: gtk_widget_hide (menu->play); gtk_widget_show (menu->stop); menu_enable_all_items (menu->actionsmenu, FALSE); menu_enable_all_items (menu->radiomenu, FALSE); menu_enable_all_items (menu->bmkmenu, FALSE); gtk_widget_set_sensitive (menu->settings, FALSE); break; default: g_critical("Unknown ui state received: %d", state); break; } gtk_widget_set_sensitive (menu->bmkradio, radio_url != NULL); } void vgl_main_menu_set_track_as_loved (VglMainMenu *menu) { g_return_if_fail (menu != NULL); gtk_widget_set_sensitive (menu->love, FALSE); } void vgl_main_menu_set_track_as_added_to_playlist (VglMainMenu *menu, gboolean added) { g_return_if_fail (menu != NULL); gtk_widget_set_sensitive (menu->addtopls, !added); } static void love_track_selected (GtkWidget *widget, gpointer data) { controller_love_track (TRUE); } static void ban_track_selected (GtkWidget *widget, gpointer data) { controller_ban_track (TRUE); } static void download_track_selected (GtkWidget *widget, gpointer data) { controller_download_track (FALSE); } static void add_bookmark_selected (GtkWidget *widget, gpointer data) { BookmarkType type = GPOINTER_TO_INT (data); controller_add_bookmark (type); } static void radio_selected (GtkWidget *widget, gpointer data) { LastfmRadio type = GPOINTER_TO_INT (data); controller_play_radio (type); } static void others_radio_selected (GtkWidget *widget, gpointer data) { LastfmRadio type = GPOINTER_TO_INT (data); controller_play_others_radio (type); } VglMainMenu * vgl_main_menu_new (GtkAccelGroup *accel) { VglMainMenu *menu; GtkMenuShell *shell; GtkMenuItem *lastfm, *radio, *actions, *bookmarks, *help; GtkMenuItem *user, *others; GtkWidget *group, *globaltag, *similarartist, *urlradio; GtkMenuShell *lastfmsub, *radiosub, *actionssub, *bmksub, *helpsub; GtkMenuShell *usersub, *othersub; GtkWidget *settings, *import, *quit; GtkWidget *play, *stop, *skip, *separ1, *separ2, *separ3; GtkWidget *stopafter, *love, *ban, *tag, *dorecomm, *addtopls, *dload; GtkWidget *library, *neigh, *loved, *mix, *playlist, *recomm, *usertag; GtkWidget *library2, *neigh2, *loved2, *mix2, *playlist2, *recomm2, *usertag2; GtkWidget *managebmk, *addbmk, *bmkartist, *bmktrack, *bmkradio; GtkWidget *about; menu = g_object_new (VGL_TYPE_MAIN_MENU, NULL); shell = GTK_MENU_SHELL (menu); /* Last.fm */ lastfm = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(_("_Last.fm"))); lastfmsub = GTK_MENU_SHELL (gtk_menu_new ()); settings = gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL); import = gtk_menu_item_new_with_mnemonic(_("_Import servers file...")); quit = gtk_image_menu_item_new_from_stock (GTK_STOCK_QUIT, accel); gtk_menu_shell_append (shell, GTK_WIDGET (lastfm)); gtk_menu_item_set_submenu (lastfm, GTK_WIDGET (lastfmsub)); gtk_menu_shell_append (lastfmsub, settings); gtk_menu_shell_append (lastfmsub, import); #ifndef USE_HILDON_WINDOW separ1 = gtk_separator_menu_item_new(); gtk_menu_shell_append(lastfmsub, separ1); gtk_menu_shell_append(lastfmsub, quit); #endif g_signal_connect(G_OBJECT(settings), "activate", G_CALLBACK(controller_open_usercfg), NULL); g_signal_connect(G_OBJECT(import), "activate", G_CALLBACK(controller_import_servers_file), NULL); g_signal_connect(G_OBJECT(quit), "activate", G_CALLBACK(controller_quit_app), NULL); /* Radio */ radio = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(_("Play _Radio"))); radiosub = GTK_MENU_SHELL(gtk_menu_new()); user = GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("My radios"))); others = GTK_MENU_ITEM(gtk_menu_item_new_with_label( _("Others' radios"))); group = gtk_menu_item_new_with_label(_("Group radio...")); globaltag = gtk_menu_item_new_with_label(_("Music tagged...")); similarartist = gtk_menu_item_new_with_label(_("Artists similar to...")); urlradio = gtk_menu_item_new_with_label(_("Enter URL...")); gtk_menu_shell_append (shell, GTK_WIDGET (radio)); gtk_menu_item_set_submenu(radio, GTK_WIDGET(radiosub)); gtk_menu_shell_append(radiosub, GTK_WIDGET(user)); gtk_menu_shell_append(radiosub, GTK_WIDGET(others)); gtk_menu_shell_append(radiosub, group); gtk_menu_shell_append(radiosub, globaltag); gtk_menu_shell_append(radiosub, similarartist); gtk_menu_shell_append(radiosub, urlradio); g_signal_connect(G_OBJECT(group), "activate", G_CALLBACK(controller_play_group_radio), NULL); g_signal_connect(G_OBJECT(globaltag), "activate", G_CALLBACK(controller_play_globaltag_radio), NULL); g_signal_connect(G_OBJECT(similarartist), "activate", G_CALLBACK(controller_play_similarartist_radio),NULL); g_signal_connect(G_OBJECT(urlradio), "activate", G_CALLBACK(controller_play_radio_ask_url), NULL); /* Radio -> My radios */ usersub = GTK_MENU_SHELL(gtk_menu_new()); gtk_menu_item_set_submenu(user, GTK_WIDGET(usersub)); library = gtk_menu_item_new_with_label(_("My library")); neigh = gtk_menu_item_new_with_label(_("My neighbours")); loved = gtk_menu_item_new_with_label(_("My loved tracks")); mix = gtk_menu_item_new_with_label(_("My mix")); playlist = gtk_menu_item_new_with_label(_("My playlist")); recomm = gtk_menu_item_new_with_label(_("My recommendations")); usertag = gtk_menu_item_new_with_label(_("My music tagged...")); gtk_menu_shell_append(usersub, library); gtk_menu_shell_append(usersub, neigh); gtk_menu_shell_append(usersub, loved); gtk_menu_shell_append(usersub, mix); gtk_menu_shell_append(usersub, playlist); gtk_menu_shell_append(usersub, recomm); gtk_menu_shell_append(usersub, usertag); g_signal_connect(G_OBJECT(library), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_LIBRARY_RADIO)); g_signal_connect(G_OBJECT(neigh), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_NEIGHBOURS_RADIO)); g_signal_connect(G_OBJECT(loved), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_LOVEDTRACKS_RADIO)); g_signal_connect(G_OBJECT(mix), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_MIX_RADIO)); g_signal_connect(G_OBJECT(playlist), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_USERPLAYLIST_RADIO)); g_signal_connect(G_OBJECT(recomm), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_RECOMMENDED_RADIO)); g_signal_connect(G_OBJECT(usertag), "activate", G_CALLBACK(radio_selected), GINT_TO_POINTER(LASTFM_USERTAG_RADIO)); /* Radio -> Others' radios */ othersub = GTK_MENU_SHELL(gtk_menu_new()); gtk_menu_item_set_submenu(others, GTK_WIDGET(othersub)); library2 = gtk_menu_item_new_with_label(_("Library...")); neigh2 = gtk_menu_item_new_with_label(_("Neighbours...")); loved2 = gtk_menu_item_new_with_label(_("Loved tracks...")); mix2 = gtk_menu_item_new_with_label(_("Mix...")); playlist2 = gtk_menu_item_new_with_label(_("Playlist...")); recomm2 = gtk_menu_item_new_with_label(_("Recommendations...")); usertag2 = gtk_menu_item_new_with_label(_("Music tagged...")); gtk_menu_shell_append(othersub, library2); gtk_menu_shell_append(othersub, neigh2); gtk_menu_shell_append(othersub, loved2); gtk_menu_shell_append(othersub, mix2); gtk_menu_shell_append(othersub, playlist2); gtk_menu_shell_append(othersub, recomm2); gtk_menu_shell_append(othersub, usertag2); g_signal_connect(G_OBJECT(library2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_LIBRARY_RADIO)); g_signal_connect(G_OBJECT(neigh2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_NEIGHBOURS_RADIO)); g_signal_connect(G_OBJECT(loved2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_LOVEDTRACKS_RADIO)); g_signal_connect(G_OBJECT(mix2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_MIX_RADIO)); g_signal_connect(G_OBJECT(playlist2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_USERPLAYLIST_RADIO)); g_signal_connect(G_OBJECT(recomm2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_RECOMMENDED_RADIO)); g_signal_connect(G_OBJECT(usertag2), "activate", G_CALLBACK(others_radio_selected), GINT_TO_POINTER(LASTFM_USERTAG_RADIO)); /* Actions */ actions = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(_("_Actions"))); actionssub = GTK_MENU_SHELL(gtk_menu_new()); play = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_PLAY, NULL); stop = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_STOP, NULL); skip = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_NEXT, NULL); separ1 = gtk_separator_menu_item_new(); separ2 = gtk_separator_menu_item_new(); separ3 = gtk_separator_menu_item_new(); stopafter = gtk_menu_item_new_with_label (_("Stop after...")); love = ui_menu_item_create_from_icon (LOVE_ITEM_ICON_NAME, LOVE_ITEM_STRING); ban = ui_menu_item_create_from_icon (BAN_ITEM_ICON_NAME, BAN_ITEM_STRING); addtopls = ui_menu_item_create_from_icon (ADD_TO_PLS_ITEM_ICON_NAME, ADD_TO_PLS_ITEM_STRING); dload = ui_menu_item_create_from_icon ("document-save", _("Download this track")); tag = ui_menu_item_create_from_icon (TAG_ITEM_ICON_NAME, TAG_ITEM_STRING); dorecomm = ui_menu_item_create_from_icon (RECOMMEND_ITEM_ICON_NAME, RECOMMEND_ITEM_STRING); gtk_menu_shell_append (shell, GTK_WIDGET (actions)); gtk_menu_item_set_submenu(actions, GTK_WIDGET(actionssub)); gtk_menu_shell_append(actionssub, play); gtk_menu_shell_append(actionssub, stop); gtk_menu_shell_append(actionssub, skip); gtk_menu_shell_append(actionssub, separ1); gtk_menu_shell_append(actionssub, dorecomm); gtk_menu_shell_append(actionssub, tag); gtk_menu_shell_append(actionssub, addtopls); gtk_menu_shell_append(actionssub, separ2); gtk_menu_shell_append(actionssub, love); gtk_menu_shell_append(actionssub, ban); gtk_menu_shell_append(actionssub, separ3); gtk_menu_shell_append(actionssub, dload); gtk_menu_shell_append(actionssub, stopafter); g_signal_connect(G_OBJECT(stopafter), "activate", G_CALLBACK(controller_set_stop_after), NULL); g_signal_connect(G_OBJECT(play), "activate", G_CALLBACK(controller_start_playing), NULL); g_signal_connect(G_OBJECT(stop), "activate", G_CALLBACK(controller_stop_playing), NULL); g_signal_connect(G_OBJECT(skip), "activate", G_CALLBACK(controller_skip_track), NULL); g_signal_connect(G_OBJECT(love), "activate", G_CALLBACK(love_track_selected), NULL); g_signal_connect(G_OBJECT(ban), "activate", G_CALLBACK(ban_track_selected), NULL); g_signal_connect(G_OBJECT(tag), "activate", G_CALLBACK(controller_tag_track), NULL); g_signal_connect(G_OBJECT(dorecomm), "activate", G_CALLBACK(controller_recomm_track), NULL); g_signal_connect(G_OBJECT(addtopls), "activate", G_CALLBACK(controller_add_to_playlist), NULL); g_signal_connect(G_OBJECT(dload), "activate", G_CALLBACK(download_track_selected), NULL); /* Bookmarks */ bookmarks = GTK_MENU_ITEM( gtk_menu_item_new_with_mnemonic(_("_Bookmarks"))); bmksub = GTK_MENU_SHELL(gtk_menu_new()); addbmk = ui_menu_item_create_from_icon ("gtk-new", _("Add bookmark...")); managebmk = ui_menu_item_create_from_icon ("gtk-edit", _("Manage bookmarks...")); bmkartist = gtk_menu_item_new_with_label(_("Bookmark this artist...")); bmktrack = gtk_menu_item_new_with_label(_("Bookmark this track...")); bmkradio = gtk_menu_item_new_with_label(_("Bookmark this radio...")); separ1 = gtk_separator_menu_item_new(); gtk_menu_shell_append (shell, GTK_WIDGET (bookmarks)); gtk_menu_item_set_submenu(bookmarks, GTK_WIDGET(bmksub)); gtk_menu_shell_append(bmksub, addbmk); gtk_menu_shell_append(bmksub, managebmk); gtk_menu_shell_append(bmksub, separ1); gtk_menu_shell_append(bmksub, bmkartist); gtk_menu_shell_append(bmksub, bmktrack); gtk_menu_shell_append(bmksub, bmkradio); g_signal_connect(G_OBJECT(managebmk), "activate", G_CALLBACK(controller_manage_bookmarks), NULL); g_signal_connect(G_OBJECT(addbmk), "activate", G_CALLBACK(add_bookmark_selected), GINT_TO_POINTER(BOOKMARK_TYPE_EMPTY)); g_signal_connect(G_OBJECT(bmkartist), "activate", G_CALLBACK(add_bookmark_selected), GINT_TO_POINTER(BOOKMARK_TYPE_ARTIST)); g_signal_connect(G_OBJECT(bmktrack), "activate", G_CALLBACK(add_bookmark_selected), GINT_TO_POINTER(BOOKMARK_TYPE_TRACK)); g_signal_connect(G_OBJECT(bmkradio), "activate", G_CALLBACK(add_bookmark_selected), GINT_TO_POINTER(BOOKMARK_TYPE_CURRENT_RADIO)); /* Help */ help = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(_("_Help"))); helpsub = GTK_MENU_SHELL(gtk_menu_new()); about = gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, accel); gtk_menu_shell_append (shell, GTK_WIDGET (help)); gtk_menu_item_set_submenu(help, GTK_WIDGET(helpsub)); gtk_menu_shell_append(helpsub, about); g_signal_connect(G_OBJECT(about), "activate", G_CALLBACK(controller_show_about), NULL); #ifdef USE_HILDON_WINDOW gtk_menu_shell_append (shell, quit); #endif /* Keyboard shortcuts */ gtk_widget_add_accelerator(play, "activate", accel, GDK_KEY_space, 0, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(stop, "activate", accel, GDK_KEY_space, 0, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(skip, "activate", accel, GDK_KEY_Right, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(ban, "activate", accel, GDK_KEY_b, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(love, "activate", accel, GDK_KEY_l, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(dorecomm, "activate", accel, GDK_KEY_r, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(tag, "activate", accel, GDK_KEY_t, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(addtopls, "activate", accel, GDK_KEY_a, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(settings, "activate", accel, GDK_KEY_p, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator(quit, "activate", accel, GDK_KEY_q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); menu->play = play; menu->stop = stop; menu->actionsmenu = GTK_WIDGET(actionssub); menu->radiomenu = GTK_WIDGET(radiosub); menu->settings = settings; menu->dload = dload; menu->love = love; menu->addtopls = addtopls; menu->bmkmenu = GTK_WIDGET (bmksub); menu->bmkartist = bmkartist; menu->bmktrack = bmktrack; menu->bmkradio = bmkradio; return menu; } static void vgl_main_menu_class_init (VglMainMenuClass *klass) { } static void vgl_main_menu_init (VglMainMenu *self) { } vagalume-0.8.6/src/playlist.h0000644000000000000000000000401112233552617013020 00000000000000/* * playlist.h -- Functions to control playlist objects * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef PLAYLIST_H #define PLAYLIST_H #include "vgl-object.h" typedef enum { LASTFM_TRACK_COMPONENT_ARTIST, LASTFM_TRACK_COMPONENT_TRACK, LASTFM_TRACK_COMPONENT_ALBUM } LastfmTrackComponent; typedef struct { VglObject parent; const char *stream_url; const char *title; guint id; const char *artist; guint artistid; const char *album; /* "" if empty, never NULL */ /* "" if empty, can also be the _same pointer_ as artist */ const char *album_artist; const char *pls_title; guint duration; const char *image_url; const char *image_data; size_t image_data_size; gboolean image_data_available; const char *trackauth; const char *free_track_url; gboolean dl_in_progress; /* Private */ GMutex *mutex; } LastfmTrack; typedef struct { GQueue *tracks; } LastfmPls; LastfmTrack * lastfm_track_new (void); void lastfm_track_set_cover_image (LastfmTrack *track, char *data, size_t size); LastfmTrack * lastfm_pls_get_track (LastfmPls *pls); void lastfm_pls_add_track (LastfmPls *pls, LastfmTrack *track); guint lastfm_pls_size (LastfmPls *pls); LastfmPls * lastfm_pls_new (void); void lastfm_pls_clear (LastfmPls *pls); void lastfm_pls_destroy (LastfmPls *pls); void lastfm_pls_merge (LastfmPls *pls1, LastfmPls *pls2); #endif vagalume-0.8.6/src/vgl-object.c0000644000000000000000000000322512233552617013214 00000000000000/* * vgl-object.c -- Very minimalist implementation of ref-counted objects * * Copyright (C) 2009, 2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "vgl-object.h" #ifndef G_DISABLE_CAST_CHECKS static const int vgl_object_header = 0x12bc0d9a; #endif gpointer vgl_object_new_with_size (int objsize, GDestroyNotify destroy_func) { VglObject *obj = g_slice_alloc0 (objsize); #ifndef G_DISABLE_CAST_CHECKS obj->header = vgl_object_header; #endif obj->refcount = 1; obj->objsize = objsize; obj->destroy_func = destroy_func; return obj; } gpointer vgl_object_ref (gpointer ptr) { VglObject *obj = ptr; g_return_val_if_fail (ptr != NULL, NULL); #ifndef G_DISABLE_CAST_CHECKS g_return_val_if_fail (obj->header == vgl_object_header, NULL); #endif g_atomic_int_inc ((int *) &(obj->refcount)); return obj; } void vgl_object_unref (gpointer ptr) { VglObject *obj = ptr; g_return_if_fail (ptr != NULL); #ifndef G_DISABLE_CAST_CHECKS g_return_if_fail (obj->header == vgl_object_header); #endif if (g_atomic_int_dec_and_test ((int *) &(obj->refcount))) { if (obj->destroy_func) { obj->destroy_func (ptr); } #ifndef G_DISABLE_CAST_CHECKS obj->header = 0; #endif g_slice_free1 (obj->objsize, obj); } } vagalume-0.8.6/src/uimisc.c0000644000000000000000000005417712233552617012465 00000000000000/* * uimisc.c -- Misc UI-related functions * * Copyright (C) 2007-2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include "config.h" #include "uimisc.h" #include "util.h" #include "compat.h" #include #include #ifdef MAEMO5 # include #endif #if defined(HILDON_LIBS) # include # include #elif defined(HILDON_1) # include # include #endif #if defined(HILDON_FM) # include #elif defined(HILDON_FM_2) # include #endif #define MENU_ITEM_ICON_SIZE 16 typedef struct { GtkDialog *dialog; GtkWidget *combo; GtkEntry *entry; GtkToggleButton *radio3; } StopAfterDialog; static const char *authors[] = { "Alberto Garcia Gonzalez\n\n", "Mario Sanchez Prada\n", NULL }; static const char *artists[] = { "Otto Krüja\n", NULL }; static const char appdescr[] = N_("Client for Last.fm and compatible services"); static const char copyright[] = "(c) 2007-2013 Igalia, S.L."; static const char website[] = "http://vagalume.igalia.com/"; static const char license[] = "Vagalume is free software: you can redistribute\n" "it and/or modify it under the terms of the GNU\n" "General Public License version 3 as published by\n" "the Free Software Foundation.\n" "\n" "Vagalume is distributed in the hope that it will\n" "be useful, but WITHOUT ANY WARRANTY; without even\n" "the implied warranty of MERCHANTABILITY or FITNESS\n" "FOR A PARTICULAR PURPOSE. See the GNU General\n" "Public License for more details.\n" "\n" "You should have received a copy of the GNU General\n" "Public License along with Vagalume. If not, see\n" "http://www.gnu.org/licenses/\n"; static const char translators_tpl[] = "%s (ca)\n* Carles Muñoz Gorriz \n\n" "%s (de)\n* Stephan Reichholf \n" "* Oskar Welzl \n\n" "%s (es)\n* Oscar A. Mata T. \n" "* Ricardo Mones \n\n" "%s (fi)\n* Janne Mäkinen \n" "* Mika Tapojärvi \n" "* Tommi Franttila \n\n" "%s (fr)\n* Julien Duponchelle \n" "* Jean-Alexandre Angles d'Auriac \n\n" "%s (gl)\n* Ignacio Casal Quinteiro \n" "* Amador Loureiro Blanco \n\n" "%s (it)\n* Andrea Grandi \n\n" "%s (lv)\n* Pēteris Caune \n\n" "%s (pl)\n* Dawid Pakuła (ZuLuS) \n\n" "%s (pt)\n* Marcos Garcia \n\n" "%s (pt_BR)\n* Rodrigo Flores \n\n" "%s (ru)\n* Sergei Ivanov \n" "* Vitaly Petrov "; /* Don't use gtk_button_new() in Nokia 770 or icons won't appear */ GtkWidget * compat_gtk_button_new (void) { #ifdef MAEMO2 return gtk_button_new_with_label(""); #else return gtk_button_new(); #endif } static void ui_show_dialog (GtkWindow *parent, const char *text, GtkMessageType type) { g_return_if_fail(text != NULL); GtkDialogFlags flags = GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT; GtkWidget *dialog = gtk_message_dialog_new(parent, flags, type, GTK_BUTTONS_OK, "%s", text); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } void ui_info_dialog (GtkWindow *parent, const char *text) { ui_show_dialog(parent, text, GTK_MESSAGE_INFO); } void ui_warning_dialog (GtkWindow *parent, const char *text) { ui_show_dialog(parent, text, GTK_MESSAGE_WARNING); } void ui_error_dialog (GtkWindow *parent, const char *text) { ui_show_dialog(parent, text, GTK_MESSAGE_ERROR); } void ui_info_banner (GtkWindow *parent, const char *text) { g_return_if_fail(parent != NULL && text != NULL); #ifdef MAEMO hildon_banner_show_information(NULL, NULL, text); #else /* TODO: Implement a notification banner for Gnome */ g_warning("Info banner not implemented!!"); #endif } #ifdef HAVE_GIO static void about_dialog_uri_hook (GtkAboutDialog *about, const gchar *link, gpointer data) { gchar *uri = g_strconcat (data, link, NULL); launch_url (uri, NULL); g_free (uri); } #endif void ui_about_dialog (GtkWindow *parent) { GdkPixbuf *logo = gdk_pixbuf_new_from_file (APP_ICON_BIG, NULL); char *translators = g_strdup_printf (translators_tpl, _("Catalan"), _("German"), _("Spanish"), _("Finnish"), _("French"), _("Galician"), _("Italian"), _("Latvian"), _("Polish"), _("Portuguese"), _("Portuguese"), _("Russian")); #ifdef HAVE_GIO gtk_about_dialog_set_url_hook (about_dialog_uri_hook, "", NULL); gtk_about_dialog_set_email_hook (about_dialog_uri_hook, "mailto:", NULL); #endif gtk_show_about_dialog (parent, "authors", authors, "comments", _(appdescr), "copyright", copyright, "license", license, "version", APP_VERSION, "website", website, "artists", artists, "translator-credits", translators, #ifdef HAVE_GTK_ABOUT_DIALOG_PROGRAM_NAME "program-name", APP_NAME, #else "name", APP_NAME, #endif /* HAVE_GTK_ABOUT_DIALOG_PROGRAM_NAME */ "logo", logo, NULL); g_object_unref (logo); g_free (translators); } GtkDialog * ui_base_dialog (GtkWindow *parent, const char *title) { GtkWidget *dialog; dialog = gtk_dialog_new_with_buttons(title, parent, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); return GTK_DIALOG(dialog); } gboolean ui_confirm_dialog (GtkWindow *parent, const char *text) { g_return_val_if_fail(text != NULL, FALSE); gint response; GtkDialog *dialog = ui_base_dialog(parent, _("Confirmation")); GtkWidget *label = gtk_label_new(text); GtkBox *vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); gtk_box_pack_start (vbox, label, FALSE, FALSE, 10); gtk_widget_show_all(GTK_WIDGET(dialog)); response = gtk_dialog_run(dialog); gtk_widget_destroy(GTK_WIDGET(dialog)); return (response == GTK_RESPONSE_ACCEPT); } char * ui_input_dialog (GtkWindow *parent, const char *title, const char *text, const char *value) { GtkDialog *dialog; GtkWidget *label; GtkEntry *entry; GtkBox *vbox; char *retvalue = NULL; dialog = ui_base_dialog(parent, title); vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); label = gtk_label_new(text); #ifdef MAEMO5 entry = GTK_ENTRY(hildon_entry_new(FINGER_SIZE)); #else entry = GTK_ENTRY(gtk_entry_new()); #endif gtk_box_pack_start (vbox, label, FALSE, FALSE, 10); gtk_box_pack_start (vbox, GTK_WIDGET (entry), FALSE, FALSE, 10); if (value != NULL) gtk_entry_set_text(entry, value); gtk_entry_set_activates_default(entry, TRUE); gtk_widget_show_all(GTK_WIDGET(dialog)); if (gtk_dialog_run(dialog) == GTK_RESPONSE_ACCEPT) { retvalue = g_strstrip(g_strdup(gtk_entry_get_text(entry))); } gtk_widget_destroy(GTK_WIDGET(dialog)); return retvalue; } gboolean ui_edit_bookmark_dialog (GtkWindow *parent, char **name, char **url, gboolean add) { GtkDialog *dialog; GtkWidget *namelabel, *urllabel; GtkEntry *nameentry, *urlentry; GtkBox *vbox; gboolean done, retvalue; dialog = ui_base_dialog(parent, add ? _("Add bookmark") : _("Edit bookmark")); namelabel = gtk_label_new(_("Bookmark name")); urllabel = gtk_label_new(_("Last.fm radio address")); #ifdef MAEMO5 nameentry = GTK_ENTRY (hildon_entry_new (FINGER_SIZE)); urlentry = GTK_ENTRY (hildon_entry_new (FINGER_SIZE)); #else nameentry = GTK_ENTRY(gtk_entry_new()); urlentry = GTK_ENTRY(gtk_entry_new()); #endif /* MAEMO5 */ if (*name != NULL) gtk_entry_set_text(nameentry, *name); if (*url != NULL) gtk_entry_set_text(urlentry, *url); vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); gtk_box_pack_start(vbox, namelabel, FALSE, FALSE, 4); gtk_box_pack_start(vbox, GTK_WIDGET(nameentry), FALSE, FALSE, 4); gtk_box_pack_start(vbox, urllabel, FALSE, FALSE, 4); gtk_box_pack_start(vbox, GTK_WIDGET(urlentry), FALSE, FALSE, 4); gtk_entry_set_activates_default(nameentry, TRUE); gtk_entry_set_activates_default(urlentry, TRUE); gtk_widget_show_all(GTK_WIDGET(dialog)); done = FALSE; while (!done) { if (gtk_dialog_run(dialog) == GTK_RESPONSE_ACCEPT) { char *tmpname, *tmpurl; tmpname = g_strdup(gtk_entry_get_text(nameentry)); tmpurl = g_strdup(gtk_entry_get_text(urlentry)); g_strstrip(tmpname); g_strstrip(tmpurl); if (tmpname[0] == '\0') { ui_info_dialog(GTK_WINDOW(dialog), _("Invalid bookmark name")); gtk_widget_grab_focus(GTK_WIDGET(nameentry)); } else if (strncmp(tmpurl, "lastfm://", 9)) { ui_info_dialog(GTK_WINDOW(dialog), _("Last.fm radio URLs must " "start with lastfm://")); gtk_widget_grab_focus(GTK_WIDGET(urlentry)); } else { retvalue = done = TRUE; g_free(*name); g_free(*url); *name = tmpname; *url = tmpurl; } if (!done) { g_free(tmpname); g_free(tmpurl); } } else { retvalue = FALSE; done = TRUE; } } gtk_widget_destroy(GTK_WIDGET(dialog)); return retvalue; } GtkWidget * ui_menu_item_create_from_icon (const gchar *icon_name, const gchar *label) { g_return_val_if_fail (icon_name != NULL && label != NULL, NULL); GtkWidget *item = gtk_image_menu_item_new_with_mnemonic (label); GtkIconTheme *icon_theme = gtk_icon_theme_get_default (); GdkPixbuf *pixbuf = gtk_icon_theme_load_icon (icon_theme, icon_name, MENU_ITEM_ICON_SIZE, 0, NULL); if (pixbuf != NULL) { GtkWidget *image = gtk_image_new_from_pixbuf (pixbuf); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); g_object_unref (pixbuf); } return item; } static GtkWidget * create_file_chooser_dialog (GtkWindow *parent, const char *title, GtkFileChooserAction action) { GtkWidget *dialog; #ifdef MAEMO dialog = hildon_file_chooser_dialog_new (parent, action); gtk_window_set_title (GTK_WINDOW (dialog), title); #else dialog = gtk_file_chooser_dialog_new ( title, parent, action, GTK_STOCK_OK, GTK_RESPONSE_OK, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, NULL); #endif gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), TRUE); return dialog; } char * ui_select_servers_file (GtkWindow *parent) { GtkWidget *dialog; char *file = NULL; dialog = create_file_chooser_dialog ( parent, _("Select server file to import"), GTK_FILE_CHOOSER_ACTION_OPEN); if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) { file = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); } gtk_widget_destroy (dialog); return file; } char * ui_select_download_dir (GtkWindow *parent, const char *curdir) { GtkWidget *dialog; char *dir = NULL; dialog = create_file_chooser_dialog ( parent, _("Select download directory"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); if (curdir != NULL) { gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), curdir); } if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) { dir = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); } gtk_widget_destroy(dialog); return dir; } GtkTreeModel * ui_create_options_list (const GList *elems) { GtkTreeIter iter; const GList *current = elems; GtkListStore *store = gtk_list_store_new (1, G_TYPE_STRING); for (; current != NULL; current = g_list_next(current)) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, current->data, -1); } return GTK_TREE_MODEL(store); } static void stop_after_dialog_update_sensitivity (StopAfterDialog *win) { gboolean radio3_active = gtk_toggle_button_get_active (win->radio3); gboolean ok_button_sensitive = TRUE; if (radio3_active) { const char *text = gtk_entry_get_text (win->entry); guint64 value = g_ascii_strtoull (text, NULL, 10); ok_button_sensitive = (value > 0 && value < 10080); } gtk_widget_set_sensitive (win->combo, radio3_active); gtk_dialog_set_response_sensitive (win->dialog, GTK_RESPONSE_ACCEPT, ok_button_sensitive); } static void stop_after_entry_changed (GtkWidget *w, GParamSpec *arg, StopAfterDialog *win) { stop_after_dialog_update_sensitivity (win); } static void stop_after_radio_button_toggled (GtkWidget *button, StopAfterDialog *win) { stop_after_dialog_update_sensitivity (win); } gboolean ui_stop_after_dialog (GtkWindow *parent, StopAfterType *stopafter, int *minutes) { GtkDialog *dialog; GtkWidget *alignment; GtkWidget *hbox, *vbox; GtkWidget *descrlabel, *minuteslabel; GtkWidget *combo; GtkEntry *entry; GtkListStore *model; GtkWidget *radio1, *radio2, *radio3; StopAfterDialog win; int default_times[] = { 5, 15, 30, 45, 60, 90, 120, 240, -1 }; int i; gboolean retvalue = FALSE; g_return_val_if_fail (minutes != NULL && stopafter != NULL, FALSE); /* Create all widgets */ dialog = ui_base_dialog (parent, _("Stop automatically")); descrlabel = gtk_label_new (_("When do you want to stop playback?")); minuteslabel = gtk_label_new (_("minutes")); alignment = gtk_alignment_new (0.5, 0.5, 0, 0); hbox = gtk_hbox_new (FALSE, 5); vbox = gtk_vbox_new (TRUE, 5); radio1 = gtk_radio_button_new (NULL); radio2 = gtk_radio_button_new_from_widget (GTK_RADIO_BUTTON (radio1)); radio3 = gtk_radio_button_new_from_widget (GTK_RADIO_BUTTON (radio1)); gtk_button_set_label (GTK_BUTTON (radio1), _("Don't stop")); gtk_button_set_label (GTK_BUTTON (radio2), _("Stop after this track")); /* Translators: the full text is "Stop after ____ minutes" */ gtk_button_set_label (GTK_BUTTON (radio3), _("Stop after")); /* Create and fill model */ model = gtk_list_store_new (1, G_TYPE_STRING); for (i = 0; default_times[i] != -1; i++) { GtkTreeIter iter; char str[4]; g_snprintf (str, 4, "%d", default_times[i]); gtk_list_store_append (model, &iter); gtk_list_store_set (model, &iter, 0, str, -1); } /* Create combo box */ combo = gtk_combo_box_text_new_with_entry (); gtk_combo_box_set_model (GTK_COMBO_BOX (combo), GTK_TREE_MODEL(model)); g_object_unref (model); entry = GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo))); gtk_entry_set_width_chars (entry, 4); #ifdef MAEMO hildon_gtk_entry_set_input_mode (entry, HILDON_GTK_INPUT_MODE_NUMERIC); #endif /* Set default values */ if (*stopafter == STOP_AFTER_DONT_STOP) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio1), TRUE); } else if (*stopafter == STOP_AFTER_THIS_TRACK) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio2), TRUE); } else if (*stopafter == STOP_AFTER_N_MINUTES) { char *str; gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio3), TRUE); if (*minutes > 0) { str = g_strdup_printf ("%d", *minutes); gtk_entry_set_text (entry, str); g_free (str); } } else { g_return_val_if_reached (FALSE); } /* Pack widgets */ gtk_box_pack_start (GTK_BOX (hbox), radio3, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), minuteslabel, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), descrlabel, FALSE, FALSE, 5); gtk_box_pack_start (GTK_BOX (vbox), radio1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), radio2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (alignment), vbox); gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (dialog)), alignment, TRUE, TRUE, 10); /* Fill StopAfterDialog struct */ win.dialog = dialog; win.combo = combo; win.entry = entry; win.radio3 = GTK_TOGGLE_BUTTON (radio3); /* Set sensitivity of combo box and OK button */ stop_after_dialog_update_sensitivity (&win); /* Connect signals */ g_signal_connect (radio3, "toggled", G_CALLBACK (stop_after_radio_button_toggled), &win); g_signal_connect (entry, "notify::text", G_CALLBACK (stop_after_entry_changed), &win); /* Run dialog */ gtk_widget_show_all (GTK_WIDGET (dialog)); if (gtk_dialog_run (dialog) == GTK_RESPONSE_ACCEPT) { if (gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (radio1))) { *stopafter = STOP_AFTER_DONT_STOP; } else if (gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (radio2))) { *stopafter = STOP_AFTER_THIS_TRACK; } else { const char *str = gtk_entry_get_text (entry); *minutes = g_ascii_strtoull (str, NULL, 10); *stopafter = STOP_AFTER_N_MINUTES; } retvalue = TRUE; } gtk_widget_destroy (GTK_WIDGET (dialog)); return retvalue; } vagalume-0.8.6/src/scrobbler.c0000644000000000000000000004770512233552617013150 00000000000000/* * scrobbler.c -- Audioscrobbler Realtime Submission Protocol * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * Version 1.2 implemented, see here: * http://www.audioscrobbler.net/development/protocol/ * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include #include "protocol.h" #include "playlist.h" #include "scrobbler.h" #include "http.h" #include "globaldefs.h" #include "util.h" #include "userconfig.h" #include "lastfm-ws.h" #define MAX_SCROBBLE_TRIES 50 typedef enum { RSP_RESPONSE_OK, RSP_RESPONSE_BADSESSION, RSP_RESPONSE_ERROR } RspResponse; typedef struct { VglObject parent; const char *id; const char *np_url; const char *post_url; const char *user; const char *pass; } RspSession; typedef struct { char *username; LastfmTrack *track; time_t start_time; RspRating rating; int tries; } RspTrack; static GCond *rsp_thread_cond = NULL; static VglServer *server = NULL; static GMutex *rsp_mutex = NULL; static GSList *rsp_queue = NULL; static gboolean rsp_initialized = FALSE; static RspSession *global_rsp_session = NULL; static RspTrack *current_track = NULL; static LastfmWsSession *global_ws_session; static GString *username = NULL; static GString *password = NULL; static gboolean enable_scrobbling = FALSE; static void rsp_track_destroy (RspTrack *track) { g_return_if_fail (track != NULL); g_free (track->username); vgl_object_unref (track->track); g_slice_free (RspTrack, track); } static RspTrack * rsp_track_new (const char *user, LastfmTrack *track, time_t start_time, RspRating rating) { RspTrack *t; g_return_val_if_fail (username && track && start_time > 0, NULL); t = g_slice_new (RspTrack); t->username = g_strdup (user); t->track = vgl_object_ref (track); t->start_time = start_time; t->rating = rating; t->tries = 0; return t; } static void rsp_session_destroy (RspSession *s) { g_free ((gpointer) s->id); g_free ((gpointer) s->np_url); g_free ((gpointer) s->post_url); g_free ((gpointer) s->user); g_free ((gpointer) s->pass); } static RspSession * rsp_session_new (const char *username, const char *password, LastfmErr *err) { g_return_val_if_fail(username != NULL && password != NULL, NULL); RspSession *s = NULL; char *timestamp, *auth, *url; char *buffer = NULL; timestamp = g_strdup_printf("%lu", time(NULL)); auth = compute_auth_token(password, timestamp); url = g_strconcat(server->rsp_base_url, "&u=", username, "&t=", timestamp, "&a=", auth, NULL); http_get_buffer(url, &buffer, NULL); if (buffer == NULL) { g_warning("Unable to initiate rsp session"); if (err != NULL) *err = LASTFM_ERR_CONN; } else { if (!strncmp(buffer, "OK\n", 3)) { /* Split in 5 parts and not 4 to prevent trailing garbage from going to r[3] */ char **r = g_strsplit(buffer, "\n", 5); s = vgl_object_new (RspSession, (GDestroyNotify) rsp_session_destroy); if (r[0] && r[1] && r[2] && r[3]) { s->id = g_strdup(r[1]); s->np_url = g_strdup(r[2]); s->post_url = g_strdup(r[3]); s->user = g_strdup (username); s->pass = g_strdup (password); } g_strfreev(r); } if (!s || !(s->id) || !(s->np_url) || !(s->post_url)) { g_warning("Error building rsp session"); if (err != NULL) *err = LASTFM_ERR_LOGIN; if (s) { vgl_object_unref (s); s = NULL; } } else if (err != NULL) { *err = LASTFM_ERR_NONE; } } g_free(auth); g_free(timestamp); g_free(url); g_free(buffer); return s; } static RspResponse rsp_set_nowplaying (const RspSession *rsp, const LastfmTrack *t) { g_return_val_if_fail(rsp != NULL && t != NULL, RSP_RESPONSE_ERROR); RspResponse retvalue = RSP_RESPONSE_ERROR; char *buffer; char *retbuf = NULL; char *duration = NULL; char *artist = escape_url(t->artist, TRUE); char *title = escape_url(t->title, TRUE); char *album = escape_url(t->album, TRUE); if (t->duration != 0) { duration = g_strdup_printf("&l=%u", t->duration / 1000); } buffer = g_strconcat("s=", rsp->id, "&a=", artist, "&t=", title, "&b=", album, "&m=&n=", duration, NULL); http_post_buffer (rsp->np_url, buffer, &retbuf, NULL, NULL); if (retbuf != NULL && !strncmp(retbuf, "OK", 2)) { g_debug("Correctly set Now Playing"); retvalue = RSP_RESPONSE_OK; } else if (retbuf != NULL) { g_debug("Problem setting Now Playing, response: %s", retbuf); if (g_str_has_prefix (retbuf, "BADSESSION")) { retvalue = RSP_RESPONSE_BADSESSION; } } else { g_debug("Problem setting Now Playing, connection error?"); } g_free(buffer); g_free(retbuf); g_free(duration); g_free(artist); g_free(title); g_free(album); return retvalue; } static RspResponse rsp_scrobble (const RspSession *rsp, const LastfmTrack *t, time_t start, RspRating rating) { g_return_val_if_fail(rsp != NULL && t != NULL, RSP_RESPONSE_ERROR); RspResponse retvalue = RSP_RESPONSE_ERROR; char *buffer; char *retbuf = NULL; char *duration = NULL; char *timestamp = g_strdup_printf("%lu", start); char *artist = escape_url(t->artist, TRUE); char *title = escape_url(t->title, TRUE); char *album = escape_url(t->album, TRUE); char *ratingstr; switch (rating) { case RSP_RATING_LOVE: ratingstr = "L"; break; case RSP_RATING_BAN: ratingstr = "B"; break; case RSP_RATING_SKIP: ratingstr = "S"; break; default: ratingstr = ""; break; } if (t->duration != 0) { duration = g_strdup_printf("&l[0]=%u", t->duration/1000); } buffer = g_strconcat("s=", rsp->id, "&a[0]=", artist, "&t[0]=", title, "&b[0]=", album, "&i[0]=", timestamp, "&o[0]=L", t->trackauth, "&n[0]=&m[0]=&r[0]=", ratingstr, duration, NULL); http_post_buffer (rsp->post_url, buffer, &retbuf, NULL, NULL); if (retbuf != NULL && !strncmp(retbuf, "OK", 2)) { g_debug("Track scrobbled"); retvalue = RSP_RESPONSE_OK; } else if (retbuf != NULL) { g_debug("Problem scrobbling track, response: %s", retbuf); if (g_str_has_prefix (retbuf, "BADSESSION")) { retvalue = RSP_RESPONSE_BADSESSION; } } else { g_debug("Problem scrobbling track, connection error?"); } g_free(buffer); g_free(retbuf); g_free(duration); g_free(timestamp); g_free(artist); g_free(title); g_free(album); return retvalue; } /* Clears rsp_global_session if it has the same id as @session */ static void rsp_global_session_clear (const RspSession *session) { g_return_if_fail (session != NULL); g_mutex_lock (rsp_mutex); if (global_rsp_session != NULL && g_str_equal (global_rsp_session->id, session->id)) { vgl_object_unref (global_rsp_session); global_rsp_session = NULL; } g_mutex_unlock (rsp_mutex); } static RspSession * rsp_session_get_or_renew (void) { RspSession *session; g_mutex_lock (rsp_mutex); if (global_rsp_session) { session = vgl_object_ref (global_rsp_session); } else { char *user = g_strdup (username->str); char *pass = g_strdup (password->str); g_mutex_unlock (rsp_mutex); session = rsp_session_new (user, pass, NULL); g_free (user); g_free (pass); g_mutex_lock (rsp_mutex); if (session) { if (global_rsp_session) { vgl_object_unref (global_rsp_session); } global_rsp_session = vgl_object_ref (session); } } g_mutex_unlock (rsp_mutex); return session; } static void rsp_scrobbler_thread_scrobble (RspTrack *track) { RspSession *s; LastfmWsSession *ws_session = NULL; int sleep_seconds = 0; g_return_if_fail (track != NULL); /* Get RSP session (or create one if necessary) */ s = rsp_session_get_or_renew (); g_mutex_lock (rsp_mutex); if (global_ws_session != NULL) { ws_session = vgl_object_ref (global_ws_session); } g_mutex_unlock (rsp_mutex); /* If there's no session, don't try to scrobble anything */ if (s == NULL) { sleep_seconds = 5; track = NULL; } while (track != NULL) { RspResponse ret; /* Love/ban if necessary */ if (track->rating == RSP_RATING_LOVE && ws_session) { lastfm_ws_love_track (ws_session, track->track); } else if (track->rating == RSP_RATING_BAN && ws_session) { lastfm_ws_ban_track (ws_session, track->track); } /* Scrobble track, but don't try too many times */ if (track->tries++ >= MAX_SCROBBLE_TRIES) { g_debug ("Too many failed tries, discarding track"); ret = RSP_RESPONSE_OK; } else { ret = rsp_scrobble (s, track->track, track->start_time, track->rating); } if (ret == RSP_RESPONSE_OK) { rsp_track_destroy (track); g_mutex_lock (rsp_mutex); rsp_queue = g_slist_delete_link (rsp_queue, rsp_queue); track = rsp_queue ? rsp_queue->data : NULL; g_mutex_unlock (rsp_mutex); } else if (ret == RSP_RESPONSE_BADSESSION) { rsp_global_session_clear (s); track = NULL; sleep_seconds = 5; } else { /* Server down? Try again later */ track = NULL; sleep_seconds = 60; } } if (sleep_seconds > 0) { g_debug ("Sleeping for %d seconds before retrying", sleep_seconds); g_usleep (sleep_seconds * G_USEC_PER_SEC); } if (s != NULL) { vgl_object_unref (s); } if (ws_session != NULL) { vgl_object_unref (ws_session); } } static gpointer rsp_scrobbler_thread (gpointer data) { while (rsp_initialized) { RspTrack *track; g_mutex_lock (rsp_mutex); /* Wait till there's a track in the scrobbling queue */ while (rsp_queue == NULL) { g_cond_wait (rsp_thread_cond, rsp_mutex); } track = rsp_queue->data; /* If that track belongs to another user, ignore it */ if (g_ascii_strcasecmp (track->username, username->str)) { g_debug ("Not scrobbling track played by %s " "(current user is %s)", track->username, username->str); rsp_track_destroy (track); track = NULL; rsp_queue = g_slist_delete_link (rsp_queue, rsp_queue); } g_mutex_unlock (rsp_mutex); if (track) { rsp_scrobbler_thread_scrobble (track); } } g_string_free (username, TRUE); g_string_free (password, TRUE); vgl_object_unref (server); g_mutex_free (rsp_mutex); g_cond_free (rsp_thread_cond); if (global_ws_session) { vgl_object_unref (global_ws_session); global_ws_session = NULL; } username = password = NULL; server = NULL; rsp_mutex = NULL; rsp_thread_cond = NULL; return NULL; } static gpointer set_nowplaying_thread (gpointer data) { LastfmTrack *track = (LastfmTrack *) data; RspSession *session = NULL; gboolean set_nowplaying = FALSE; g_return_val_if_fail (track != NULL, NULL); g_usleep (10 * G_USEC_PER_SEC); g_mutex_lock (rsp_mutex); if (current_track && current_track->track->id == track->id) { g_mutex_unlock (rsp_mutex); session = rsp_session_get_or_renew (); g_mutex_lock (rsp_mutex); set_nowplaying = (session != NULL); } g_mutex_unlock (rsp_mutex); if (set_nowplaying) { RspResponse ret = rsp_set_nowplaying (session, track); if (ret == RSP_RESPONSE_BADSESSION) { rsp_global_session_clear (session); vgl_object_unref (session); session = rsp_session_get_or_renew (); if (session) { rsp_set_nowplaying (session, track); } } } if (session) { vgl_object_unref (session); } vgl_object_unref (track); return NULL; } static void connected_cb (VglController *ctrl, LastfmWsSession *session, gpointer data) { g_mutex_lock (rsp_mutex); if (global_ws_session) { vgl_object_unref (global_ws_session); } global_ws_session = vgl_object_ref (session); g_mutex_unlock (rsp_mutex); } static void disconnected_cb (VglController *ctrl, gpointer data) { g_mutex_lock (rsp_mutex); if (global_ws_session) { vgl_object_unref (global_ws_session); global_ws_session = NULL; } g_mutex_unlock (rsp_mutex); } static void usercfg_changed_cb (VglController *ctrl, VglUserCfg *cfg, gpointer data) { gboolean changed = FALSE; g_mutex_lock (rsp_mutex); if (!g_str_equal (cfg->username, username->str)) { g_string_assign (username, cfg->username); changed = TRUE; } if (!g_str_equal (cfg->password, password->str)) { g_string_assign (password, cfg->password); changed = TRUE; } if (server != NULL) { vgl_object_unref (server); } server = vgl_object_ref (cfg->server); enable_scrobbling = cfg->enable_scrobbling; if (changed && global_rsp_session) { vgl_object_unref (global_rsp_session); global_rsp_session = NULL; } g_mutex_unlock (rsp_mutex); } static void track_stopped_cb (VglController *ctrl, RspRating rating, gpointer data) { g_mutex_lock (rsp_mutex); if (enable_scrobbling && current_track && current_track->track->duration > 30000) { RspTrack *rsp_track; int played = time (NULL) - current_track->start_time; if (rating == RSP_RATING_NONE && played < 240 && played < current_track->track->duration/2000) { rating = RSP_RATING_SKIP; } rsp_track = current_track; rsp_track->rating = rating; current_track = NULL; rsp_queue = g_slist_append (rsp_queue, rsp_track); g_cond_signal (rsp_thread_cond); } /* Clear track */ if (current_track) { rsp_track_destroy (current_track); current_track = NULL; } g_mutex_unlock (rsp_mutex); } static void track_started_cb (VglController *ctrl, LastfmTrack *track, gpointer data) { g_mutex_lock (rsp_mutex); if (current_track) { rsp_track_destroy (current_track); } current_track = rsp_track_new (username->str, track, time (NULL), RSP_RATING_NONE); g_mutex_unlock (rsp_mutex); if (enable_scrobbling) { g_thread_create (set_nowplaying_thread, vgl_object_ref (track), FALSE, NULL); } } static void controller_destroyed_cb (gpointer data, GObject *controller) { /* rsp_scrobbler_thread will destroying everything else */ rsp_initialized = FALSE; } void rsp_init (VglController *controller) { g_return_if_fail (!rsp_initialized); g_return_if_fail (VGL_IS_CONTROLLER (controller)); rsp_initialized = TRUE; rsp_mutex = g_mutex_new (); rsp_thread_cond = g_cond_new (); username = g_string_sized_new (20); password = g_string_sized_new (20); g_signal_connect (controller, "connected", G_CALLBACK (connected_cb), NULL); g_signal_connect (controller, "disconnected", G_CALLBACK (disconnected_cb), NULL); g_signal_connect (controller, "usercfg-changed", G_CALLBACK (usercfg_changed_cb), NULL); g_signal_connect (controller, "track-stopped", G_CALLBACK (track_stopped_cb), NULL); g_signal_connect (controller, "track-started", G_CALLBACK (track_started_cb), NULL); g_object_weak_ref (G_OBJECT (controller), controller_destroyed_cb, NULL); g_thread_create (rsp_scrobbler_thread, NULL, FALSE, NULL); } vagalume-0.8.6/src/imstatus.h0000644000000000000000000000062012233552617013032 00000000000000/* * imstatus.h -- set IM status to current track * * Copyright (C) 2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef IMSTATUS_H #define IMSTATUS_H #include "controller.h" void im_status_init (VglController *controller); #endif vagalume-0.8.6/src/audio.h0000644000000000000000000000214512233552617012266 00000000000000/* * audio.h -- All the audio related stuff * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef AUDIO_H #define AUDIO_H #include #define GST_DECODER_ENVVAR "VAGALUME_GST_DECODER" #define GST_SINK_ENVVAR "VAGALUME_GST_SINK" gboolean lastfm_audio_init (void); gboolean lastfm_audio_play (const char *url, GCallback audio_started_cb, const char *session_id); gboolean lastfm_audio_stop (void); int lastfm_audio_get_running_time (void); int lastfm_audio_get_volume (void); void lastfm_audio_set_volume (int vol); int lastfm_audio_increase_volume (int inc); void lastfm_audio_clear (void); const char * lastfm_audio_default_decoder_name (void); const char * lastfm_audio_default_sink_name (void); #endif vagalume-0.8.6/src/playlist.c0000644000000000000000000001155212233552617013023 00000000000000/* * playlist.c -- Functions to control playlist objects * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include "playlist.h" /** * Destroy a LastfmTrack object freeing all its allocated memory * @param track Track to be destroyed, or NULL */ static void lastfm_track_destroy (LastfmTrack *track) { g_mutex_free(track->mutex); g_free ((gpointer) track->stream_url); g_free ((gpointer) track->title); if (track->album_artist != track->artist) { g_free ((gpointer) track->album_artist); } g_free ((gpointer) track->artist); g_free ((gpointer) track->album); g_free ((gpointer) track->pls_title); g_free ((gpointer) track->image_url); g_free ((gpointer) track->image_data); g_free ((gpointer) track->trackauth); g_free ((gpointer) track->free_track_url); } /** * Creates a new LastfmTrack object * @return The new track */ LastfmTrack * lastfm_track_new (void) { LastfmTrack *track; track = vgl_object_new (LastfmTrack, (GDestroyNotify) lastfm_track_destroy); track->mutex = g_mutex_new(); return track; } /** * Set the cover image of a track object, erasing the previous one (if * any). After this, the new image data will be owned by this object * and will be destroyed automatically when the track is destroyed. * @param track The track * @param data The image data * @param size Size of the data buffer */ void lastfm_track_set_cover_image (LastfmTrack *track, char *data, size_t size) { g_return_if_fail(track != NULL); g_mutex_lock(track->mutex); g_free ((gpointer) track->image_data); track->image_data = data; track->image_data_size = size; track->image_data_available = TRUE; g_mutex_unlock(track->mutex); } /** * Get the size of a playlist * @param pls The playlist * @return The number of tracks in the playlist */ guint lastfm_pls_size (LastfmPls *pls) { g_return_val_if_fail(pls != NULL, 0); return g_queue_get_length(pls->tracks); } /** * Get the next track in a playlist. Note that this function removes * the track from the playlist (as it can only be played once). * @param pls The playlist * @return The next track (or NULL if the list is empty). It should be * unref'ed with vgl_object_unref() when no longer used. */ LastfmTrack * lastfm_pls_get_track (LastfmPls *pls) { g_return_val_if_fail(pls != NULL, NULL); LastfmTrack *track = NULL; if (!g_queue_is_empty(pls->tracks)) { track = (LastfmTrack *) g_queue_pop_head(pls->tracks); } return track; } /** * Append a track to the end of a playlist. * @param pls The playlist * @param track The track to be appended */ void lastfm_pls_add_track (LastfmPls *pls, LastfmTrack *track) { g_return_if_fail(pls != NULL && track != NULL); g_queue_push_tail(pls->tracks, track); } /** * Create a new, empty playlist * @return A new playlist. It should be destroyed with * lastfm_pls_destroy() when no longer used */ LastfmPls * lastfm_pls_new (void) { LastfmPls *pls = g_slice_new0(LastfmPls); pls->tracks = g_queue_new(); return pls; } /** * Remove all tracks from a playlist * @param pls The playlist to be cleared */ void lastfm_pls_clear (LastfmPls *pls) { g_return_if_fail (pls != NULL); LastfmTrack *track; while ((track = lastfm_pls_get_track(pls)) != NULL) { vgl_object_unref (track); } } /** * Destroy a playlist, including all the tracks that it contains * @param pls The playlist to be destroyed, or NULL. */ void lastfm_pls_destroy (LastfmPls *pls) { if (pls == NULL) return; lastfm_pls_clear(pls); g_queue_free(pls->tracks); g_slice_free(LastfmPls, pls); } /** * Merges two playlists, appending the contents of the second to the * end of the first one. The second playlist is cleared (but not * destroyed). * @param pls1 The first playlist * @param pls2 The second playlist (empty after this operation) */ void lastfm_pls_merge (LastfmPls *pls1, LastfmPls *pls2) { g_return_if_fail(pls1 != NULL && pls2 != NULL); LastfmTrack *track; while ((track = lastfm_pls_get_track(pls2)) != NULL) { lastfm_pls_add_track(pls1, track); } } vagalume-0.8.6/src/vgl-main-menu-hildon22.c0000644000000000000000000004201512233552617015253 00000000000000/* * vgl-main-menu-hildon22.c -- Main menu (Hildon 2.2 version) * * Copyright (C) 2010, 2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include "vgl-main-menu.h" #include "controller.h" #include "compat.h" struct _VglMainMenu { HildonAppMenu parent; GtkWidget *settings; GtkWidget *playradio; GtkWidget *people; GtkWidget *stopafter; GtkWidget *bookmarks; GtkWidget *bmkartist; GtkWidget *bmktrack; GtkWidget *bmkradio; }; struct _VglMainMenuClass { HildonAppMenuClass parent_class; }; G_DEFINE_TYPE (VglMainMenu, vgl_main_menu, HILDON_TYPE_APP_MENU); void vgl_main_menu_set_state (VglMainMenu *menu, VglMainWindowState state, const LastfmTrack *t, const char *radio_url) { g_return_if_fail (VGL_IS_MAIN_MENU (menu)); switch (state) { case VGL_MAIN_WINDOW_STATE_DISCONNECTED: case VGL_MAIN_WINDOW_STATE_STOPPED: gtk_widget_set_sensitive (menu->stopafter, FALSE); gtk_widget_set_sensitive (menu->playradio, TRUE); gtk_widget_set_sensitive (menu->people, TRUE); gtk_widget_set_sensitive (menu->bookmarks, TRUE); gtk_widget_set_sensitive (menu->settings, TRUE); gtk_widget_set_sensitive (menu->bmkartist, FALSE); gtk_widget_set_sensitive (menu->bmktrack, FALSE); break; case VGL_MAIN_WINDOW_STATE_PLAYING: gtk_widget_set_sensitive (menu->stopafter, TRUE); gtk_widget_set_sensitive (menu->playradio, TRUE); gtk_widget_set_sensitive (menu->people, TRUE); gtk_widget_set_sensitive (menu->bookmarks, TRUE); gtk_widget_set_sensitive (menu->settings, TRUE); gtk_widget_set_sensitive (menu->bmkartist, t->artistid > 0); gtk_widget_set_sensitive (menu->bmktrack, t->id > 0); break; case VGL_MAIN_WINDOW_STATE_CONNECTING: gtk_widget_set_sensitive (menu->stopafter, FALSE); gtk_widget_set_sensitive (menu->playradio, FALSE); gtk_widget_set_sensitive (menu->people, FALSE); gtk_widget_set_sensitive (menu->bookmarks, FALSE); gtk_widget_set_sensitive (menu->settings, FALSE); break; default: g_critical("Unknown ui state received: %d", state); break; } gtk_widget_set_sensitive (menu->bmkradio, radio_url != NULL); } void vgl_main_menu_set_track_as_loved (VglMainMenu *menu) { } void vgl_main_menu_set_track_as_added_to_playlist (VglMainMenu *menu, gboolean added) { } static void bookmark_dialog_destroyed_cb (GtkWidget *dialog, VglMainMenu *menu) { GtkContainer *table; table = GTK_CONTAINER (gtk_widget_get_parent (menu->bmkartist)); gtk_container_remove (table, menu->bmkartist); gtk_container_remove (table, menu->bmktrack); gtk_container_remove (table, menu->bmkradio); } static void manage_bookmarks_cb (GtkWidget *button, GtkWidget *dialog) { gtk_widget_destroy (dialog); controller_manage_bookmarks (); } static void bookmarks_selected_cb (GtkWidget *widget, VglMainMenu *menu) { GtkWidget *dialog, *table, *button, *vbox; dialog = gtk_dialog_new (); vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE); gtk_window_set_title (GTK_WINDOW (dialog), _("Bookmarks")); table = gtk_table_new (2, 2, TRUE); gtk_container_add (GTK_CONTAINER (vbox), table); button = gtk_button_new_from_stock (_("Manage bookmarks...")); hildon_gtk_widget_set_theme_size (button, FINGER_SIZE); g_signal_connect (button, "clicked", G_CALLBACK (manage_bookmarks_cb), dialog); gtk_table_attach_defaults (GTK_TABLE (table), g_object_ref (menu->bmkartist), 0, 1, 0, 1); gtk_table_attach_defaults (GTK_TABLE (table), g_object_ref (menu->bmktrack), 1, 2, 0, 1); gtk_table_attach_defaults (GTK_TABLE (table), g_object_ref (menu->bmkradio), 0, 1, 1, 2); gtk_table_attach_defaults (GTK_TABLE (table), button, 1, 2, 1, 2); g_signal_connect (dialog, "destroy", G_CALLBACK (bookmark_dialog_destroyed_cb), menu); gtk_widget_show_all (dialog); } static void add_bookmark_selected (GtkWidget *widget, gpointer data) { BookmarkType type = GPOINTER_TO_INT (data); gtk_widget_destroy (gtk_widget_get_toplevel (widget)); controller_add_bookmark (type); } static void user_radio_selected_cb (HildonPickerDialog *dialog, gint response, const char *user) { int active = -1; if (response == GTK_RESPONSE_OK) { HildonTouchSelector *sel; sel = hildon_picker_dialog_get_selector (dialog); active = hildon_touch_selector_get_active (sel, 0); } gtk_widget_destroy (GTK_WIDGET (dialog)); switch (active) { case -1: break; case 0: controller_play_others_radio_by_user (user, LASTFM_LIBRARY_RADIO); break; case 1: controller_play_others_radio_by_user (user, LASTFM_NEIGHBOURS_RADIO); break; case 2: controller_play_others_radio_by_user (user, LASTFM_LOVEDTRACKS_RADIO); break; case 3: controller_play_others_radio_by_user (user, LASTFM_MIX_RADIO); break; case 4: controller_play_others_radio_by_user ( user, LASTFM_USERPLAYLIST_RADIO); break; case 5: controller_play_others_radio_by_user (user, LASTFM_RECOMMENDED_RADIO); break; case 6: controller_play_others_radio_by_user (user, LASTFM_USERTAG_RADIO); break; default: g_return_if_reached (); } } static void user_selected_cb (GtkWidget *dialog, gint response, HildonTouchSelector *usersel) { GtkWidget *d; HildonTouchSelector *sel; char *user; GString *text; if (response != GTK_RESPONSE_OK) { return; } user = g_strstrip (hildon_touch_selector_get_current_text (usersel)); text = g_string_sized_new (100); gtk_widget_destroy (dialog); d = hildon_picker_dialog_new (NULL); sel = HILDON_TOUCH_SELECTOR (hildon_touch_selector_new_text ()); g_object_set (sel, "live-search", FALSE, NULL); gtk_window_set_title (GTK_WINDOW (d), _("Select radio")); g_string_printf (text, _("%s's library"), user); hildon_touch_selector_append_text (sel, text->str); g_string_printf (text, _("%s's neighbours"), user); hildon_touch_selector_append_text (sel, text->str); g_string_printf (text, _("%s's loved tracks"), user); hildon_touch_selector_append_text (sel, text->str); g_string_printf (text, _("%s's mix"), user); hildon_touch_selector_append_text (sel, text->str); g_string_printf (text, _("%s's playlist"), user); hildon_touch_selector_append_text (sel, text->str); g_string_printf (text, _("%s's recommendations"), user); hildon_touch_selector_append_text (sel, text->str); g_string_printf (text, _("%s's music tagged..."), user); hildon_touch_selector_append_text (sel, text->str); hildon_picker_dialog_set_selector (HILDON_PICKER_DIALOG (d), sel); g_signal_connect_data (d, "response", G_CALLBACK (user_radio_selected_cb), user, (GClosureNotify) g_free, 0); gtk_widget_show_all (d); g_string_free (text, TRUE); } static void people_cb (GtkButton *button, gpointer data) { GtkWidget *d; HildonTouchSelector *sel; const GList *friends; friends = controller_get_friend_list (); d = hildon_picker_dialog_new (NULL); sel = HILDON_TOUCH_SELECTOR (hildon_touch_selector_entry_new_text ()); gtk_window_set_title (GTK_WINDOW (d), _("Type any user name")); if (friends == NULL) { /* Hack for libhildon < 2.2.5 */ hildon_touch_selector_append_text (sel, ""); } else for (; friends != NULL; friends = friends->next) { hildon_touch_selector_append_text (sel, friends->data); } hildon_picker_dialog_set_selector (HILDON_PICKER_DIALOG (d), sel); g_signal_connect (d, "response", G_CALLBACK (user_selected_cb), sel); gtk_widget_show_all (d); } static void radio_selected_cb (GtkWidget *dialog, gint response, HildonTouchSelector *sel) { int active = -1; if (response == GTK_RESPONSE_OK) { active = hildon_touch_selector_get_active (sel, 0); } gtk_widget_destroy (dialog); switch (active) { case -1: break; case 0: controller_play_globaltag_radio (); break; case 1: controller_play_similarartist_radio (); break; case 2: controller_play_group_radio (); break; case 3: controller_play_radio (LASTFM_LIBRARY_RADIO); break; case 4: controller_play_radio (LASTFM_NEIGHBOURS_RADIO); break; case 5: controller_play_radio (LASTFM_LOVEDTRACKS_RADIO); break; case 6: controller_play_radio (LASTFM_MIX_RADIO); break; case 7: controller_play_radio (LASTFM_USERPLAYLIST_RADIO); break; case 8: controller_play_radio (LASTFM_RECOMMENDED_RADIO); break; case 9: controller_play_radio (LASTFM_USERTAG_RADIO); break; case 10: controller_play_radio_ask_url (); break; default: g_return_if_reached (); } } static void play_radio_cb (GtkButton *button, gpointer data) { GtkWidget *d; HildonTouchSelector *sel; d = hildon_picker_dialog_new (NULL); sel = HILDON_TOUCH_SELECTOR (hildon_touch_selector_new_text ()); g_object_set (sel, "live-search", FALSE, NULL); gtk_window_set_title (GTK_WINDOW (d), _("Select radio")); hildon_touch_selector_append_text (sel, _("Music tagged...")); hildon_touch_selector_append_text (sel, _("Artists similar to...")); hildon_touch_selector_append_text (sel, _("Group radio...")); hildon_touch_selector_append_text (sel, _("My library")); hildon_touch_selector_append_text (sel, _("My neighbours")); hildon_touch_selector_append_text (sel, _("My loved tracks")); hildon_touch_selector_append_text (sel, _("My mix")); hildon_touch_selector_append_text (sel, _("My playlist")); hildon_touch_selector_append_text (sel, _("My recommendations")); hildon_touch_selector_append_text (sel, _("My music tagged...")); hildon_touch_selector_append_text (sel, _("Enter URL...")); hildon_picker_dialog_set_selector (HILDON_PICKER_DIALOG (d), sel); g_signal_connect (d, "response", G_CALLBACK (radio_selected_cb), sel); gtk_widget_show_all (d); } static void vgl_main_menu_dispose (GObject *object) { VglMainMenu *menu = VGL_MAIN_MENU (object); if (menu->bmkartist) { gtk_widget_destroy (menu->bmkartist); menu->bmkartist = NULL; } if (menu->bmktrack) { gtk_widget_destroy (menu->bmktrack); menu->bmktrack = NULL; } if (menu->bmkradio) { gtk_widget_destroy (menu->bmkradio); menu->bmkradio = NULL; } G_OBJECT_CLASS (vgl_main_menu_parent_class)->dispose (object); } static void vgl_main_menu_class_init (VglMainMenuClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); gobject_class->dispose = vgl_main_menu_dispose; } static void vgl_main_menu_init (VglMainMenu *self) { GtkWidget *button; HildonAppMenu *menu = (HildonAppMenu *) self; button = gtk_button_new_from_stock (GTK_STOCK_PREFERENCES); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (controller_open_usercfg), NULL); self->settings = button; button = gtk_button_new_with_label (_("Import servers file")); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (controller_import_servers_file), NULL); button = gtk_button_new_with_label (_("Play radio")); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (play_radio_cb), NULL); self->playradio = button; button = gtk_button_new_with_label (_("People")); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (people_cb), NULL); self->people = button; button = gtk_button_new_with_label (_("Stop after...")); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (controller_set_stop_after), NULL); self->stopafter = button; button = gtk_button_new_with_label (_("Bookmarks")); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (bookmarks_selected_cb), self); self->bookmarks = button; button = gtk_button_new_from_stock (GTK_STOCK_ABOUT); hildon_app_menu_append (menu, GTK_BUTTON (button)); g_signal_connect (button, "clicked", G_CALLBACK (controller_show_about), NULL); button = gtk_button_new_from_stock (_("Bookmark this artist...")); hildon_gtk_widget_set_theme_size (button, FINGER_SIZE); g_signal_connect (button, "clicked", G_CALLBACK (add_bookmark_selected), GINT_TO_POINTER (BOOKMARK_TYPE_ARTIST)); self->bmkartist = button; button = gtk_button_new_from_stock (_("Bookmark this track...")); hildon_gtk_widget_set_theme_size (button, FINGER_SIZE); g_signal_connect (button, "clicked", G_CALLBACK (add_bookmark_selected), GINT_TO_POINTER (BOOKMARK_TYPE_TRACK)); self->bmktrack = button; button = gtk_button_new_from_stock (_("Bookmark this radio...")); hildon_gtk_widget_set_theme_size (button, FINGER_SIZE); g_signal_connect (button, "clicked", G_CALLBACK (add_bookmark_selected), GINT_TO_POINTER (BOOKMARK_TYPE_CURRENT_RADIO)); self->bmkradio = button; gtk_widget_show_all (GTK_WIDGET (menu)); } VglMainMenu * vgl_main_menu_new (GtkAccelGroup *accel) { VglMainMenu *menu = g_object_new (VGL_TYPE_MAIN_MENU, NULL); gtk_widget_add_accelerator (menu->settings, "activate", accel, GDK_KEY_p, GDK_CONTROL_MASK, 0); return menu; } vagalume-0.8.6/src/uimisc.h0000644000000000000000000001126312233552617012457 00000000000000/* * uimisc.h -- Misc UI-related functions * * Copyright (C) 2007-2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef UIMISC_H #define UIMISC_H #include #include "userconfig.h" #include "playlist.h" #include "controller.h" #include "lastfm-ws.h" #define RECOMMEND_ITEM_STRING _("_Recommend to...") #define TAG_ITEM_STRING _("_Tags...") #define ADD_TO_PLS_ITEM_STRING _("_Add to playlist") #define LOVE_ITEM_STRING _("_Love this track") #define BAN_ITEM_STRING _("_Ban this track") #define RECOMMEND_ITEM_ICON_NAME "mail-message-new" #define TAG_ITEM_ICON_NAME "accessories-text-editor" #define ADD_TO_PLS_ITEM_ICON_NAME "list-add" #define LOVE_ITEM_ICON_NAME "emblem-favorite" #define BAN_ITEM_ICON_NAME "process-stop" G_BEGIN_DECLS GtkWidget * compat_gtk_button_new (void); gboolean tagwin_run (GtkWindow *parent, const char *user, char **newtags, const GList *usertags, LastfmWsSession *ws_session, LastfmTrack *track, LastfmTrackComponent *type); gboolean recommwin_run (GtkWindow *parent, char **user, char **message, const GList *friends, const LastfmTrack *track, LastfmTrackComponent *type); void ui_info_banner (GtkWindow *parent, const char *text); void ui_info_dialog (GtkWindow *parent, const char *text); void ui_warning_dialog (GtkWindow *parent, const char *text); void ui_error_dialog (GtkWindow *parent, const char *text); void ui_about_dialog (GtkWindow *parent); char * ui_input_dialog (GtkWindow *parent, const char *title, const char *text, const char *value); gboolean ui_stop_after_dialog (GtkWindow *parent, StopAfterType *stopafter, int *minutes); char * ui_input_dialog_with_list (GtkWindow *parent, const char *title, const char *text, const GList *elems, const char *value); char * ui_select_servers_file (GtkWindow *parent); void ui_usertag_dialog (GtkWindow *parent, char **user, char **tag, const GList *userlist); gboolean ui_edit_bookmark_dialog (GtkWindow *parent, char **name, char **url, gboolean add); gboolean ui_usercfg_window (GtkWindow *parent, VglUserCfg **cfg); gboolean ui_confirm_dialog (GtkWindow *parent, const char *text); GtkWidget * ui_menu_item_create_from_icon (const gchar *icon_name, const gchar *label); /* Private functions (shaerd between uimisc implementations) */ GtkDialog * ui_base_dialog (GtkWindow *parent, const char *title); char * ui_select_download_dir (GtkWindow *parent, const char *curdir); GtkTreeModel * ui_create_options_list (const GList *elems); typedef enum { TAGCOMBO_STATE_NULL = 0, TAGCOMBO_STATE_LOADING, TAGCOMBO_STATE_READY } TagComboState; G_END_DECLS #endif vagalume-0.8.6/src/Makefile.am0000644000000000000000000000447412233552617013057 00000000000000# # This file is part of Vagalume and is published under the GNU GPLv3. # # Copyright (C) 2007-2010 Igalia, S.L. # # See the README file for more details. # bin_PROGRAMS = vagalume vagalume_LDADD = $(EXTRA_LIBS) vagalume_CFLAGS= $(EXTRA_CFLAGS) -DAPP_DATA_DIR=\"$(appdatadir)\" \ -DPIXMAP_DIR=\"$(pixmapdir)\" -DICON48_DIR=\"$(icon48dir)\" vagalume_SOURCES = \ audio.c audio.h \ compat.c compat.h \ connection.h \ controller.c controller.h \ dlwin.c dlwin.h \ globaldefs.h \ http.c http.h \ lastfm-ws.c lastfm-ws.h \ main.c \ playlist.c playlist.h \ protocol.c protocol.h \ radio.c radio.h \ scrobbler.c scrobbler.h \ uimisc.c uimisc.h \ userconfig.c userconfig.h \ util.c util.h \ vgl-bookmark-mgr.c vgl-bookmark-mgr.h \ vgl-bookmark-window.c vgl-bookmark-window.h \ vgl-main-menu.h \ vgl-main-window.c vgl-main-window.h \ vgl-object.c vgl-object.h \ vgl-server.c vgl-server.h \ xmlrpc.c xmlrpc.h BUILT_SOURCES = marshal.c marshal.h nodist_vagalume_SOURCES = marshal.c marshal.h CLEANFILES = marshal.c marshal.h EXTRA_DIST = marshal.list marshal.h: marshal.list glib-genmarshal --header \ --prefix=vgl_marshal marshal.list > marshal.h marshal.c: marshal.list glib-genmarshal --body \ --prefix=vgl_marshal marshal.list > marshal.c if HILDON_2_2 vagalume_SOURCES += uimisc-hildon22.c vgl-main-menu-hildon22.c else vagalume_SOURCES += uimisc-gtk.c vgl-main-menu-gtk.c endif if SET_IM_STATUS vagalume_SOURCES += imstatus.c imstatus.h endif if USE_INTERNAL_MD5 vagalume_SOURCES += md5/md5.c md5/md5.h endif if HAVE_TRAY_ICON vagalume_SOURCES += vgl-tray-icon.h vgl-tray-icon.c endif if HAVE_CONIC vagalume_SOURCES += connection.c endif if HAVE_DBUS_SUPPORT vagalume_SOURCES += dbus.c dbus.h endif if HAVE_MAEMO_SB_PLUGIN sbplugin_LTLIBRARIES = libvagalumesbplugin.la libvagalumesbplugin_la_LDFLAGS = -module -avoid-version libvagalumesbplugin_la_SOURCES = \ dbus.h \ globaldefs.h \ vgl-sb-plugin.c vgl-sb-plugin.h libvagalumesbplugin_la_LIBADD = $(SBPLUGIN_LIBS) libvagalumesbplugin_la_CFLAGS = $(SBPLUGIN_CFLAGS) \ -DAPP_DATA_DIR=\"$(appdatadir)\" \ -DPIXMAP_DIR=\"$(pixmapdir)\" endif # These two files are not needed install-data-hook: if test "x$(sbplugindir)" != "x"; then \ rm -f "$(DESTDIR)/$(sbplugindir)/libvagalumesbplugin.a" ; \ rm -f "$(DESTDIR)/$(sbplugindir)/libvagalumesbplugin.la" ; \ fi vagalume-0.8.6/src/radio.c0000644000000000000000000000504212233552617012255 00000000000000/* * radio.c -- Functions to build radio URLs * * Copyright (C) 2007-2008, 2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include "radio.h" char * lastfm_radio_url (LastfmRadio type, const char *data) { g_return_val_if_fail(data != NULL, NULL); switch (type) { case LASTFM_GLOBALTAG_RADIO: return g_strconcat("lastfm://globaltags/", data, NULL); case LASTFM_GROUP_RADIO: return g_strconcat("lastfm://group/", data, NULL); case LASTFM_LOVEDTRACKS_RADIO: return g_strconcat("lastfm://user/", data, "/loved", NULL); case LASTFM_MIX_RADIO: return g_strconcat("lastfm://user/", data, "/mix", NULL); case LASTFM_NEIGHBOURS_RADIO: return g_strconcat("lastfm://user/", data, "/neighbours", NULL); case LASTFM_LIBRARY_RADIO: return g_strconcat("lastfm://user/", data, "/personal", NULL); case LASTFM_SIMILAR_ARTIST_RADIO: return g_strconcat("lastfm://artist/", data, NULL); case LASTFM_USERPLAYLIST_RADIO: return g_strconcat("lastfm://user/", data, "/playlist", NULL); case LASTFM_RECOMMENDED_RADIO: case LASTFM_USERTAG_RADIO: g_critical("Radio type %d is not handled here", type); return NULL; default: g_critical("Unknown radio type %d", type); return NULL; } } char * lastfm_recommended_radio_url (const char *user, int val) { g_return_val_if_fail(user != NULL && val >= 0 && val <= 100, NULL); char value[4]; g_snprintf(value, 4, "%d", val); return g_strconcat("lastfm://user/", user, "/recommended/", value, NULL); } char * lastfm_usertag_radio_url (const char *user, const char *tag) { g_return_val_if_fail(user != NULL && tag != NULL, NULL); return g_strconcat("lastfm://usertags/", user, "/", tag, NULL); } gboolean lastfm_radio_url_is_custom (const char *url) { g_return_val_if_fail(url != NULL, FALSE); return !strncmp(url, "lastfm://play/", 14); } vagalume-0.8.6/src/protocol.c0000644000000000000000000004314112233552617013022 00000000000000/* * protocol.c -- Last.fm legacy streaming protocol and XSPF * * Copyright (C) 2007-2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include "http.h" #include "util.h" #include "protocol.h" #include "globaldefs.h" static const char custom_pls_path[] = "/1.0/webclient/getresourceplaylist.php"; static const xmlChar free_track_rel[] = "http://www.last.fm/freeTrackURL"; static const xmlChar album_page_rel[] = "http://www.last.fm/albumpage"; static const char lastfm_music_prefix[] = "http://www.last.fm/music/"; /** * Parse the output of a lastfm handshake and return a hashtable * containing keys and values * @param buffer A NULL string containing the handshake output * @return A new GHashTable containing the keys and values */ static GHashTable * lastfm_parse_handshake (const char *buffer) { GHashTable *hash; int i; char **lines = g_strsplit(buffer, "\n", 0); hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); for (i = 0; lines[i] != NULL; i++) { char **line = g_strsplit(lines[i], "=", 2); if (line[0] != NULL && line[1] != NULL) { char *key = g_strstrip(g_strdup(line[0])); char *val = g_strstrip(g_strdup(line[1])); if (key[0] != '\0' && val[0] != '\0') { g_hash_table_insert(hash, key, val); } else { g_free(key); g_free(val); } } g_strfreev(line); } g_strfreev(lines); return hash; } /** * Destroy a LastfmSession object, freeing all of its memory * @param session The session */ void lastfm_session_destroy (LastfmSession *session) { if (session == NULL) return; g_free(session->id); g_free(session->base_url); g_free(session->base_path); lastfm_pls_destroy(session->custom_pls); g_slice_free(LastfmSession, session); } /** * Create a new Last.fm session to play radios * @param username User's ID * @param password User's passwords * @param err If non-NULL, an error code will be written here * @return A new LastfmSession or NULL if it couldn't be created */ LastfmSession * lastfm_session_new (const char *username, const char *password, const char *handshake_url, LastfmErr *err, gboolean free_streams) { g_return_val_if_fail (username && password && handshake_url, NULL); char *buffer = NULL; char *md5password = get_md5_hash(password); char *url = g_strconcat(handshake_url, "&username=", username, "&passwordmd5=", md5password, NULL); http_get_buffer(url, &buffer, NULL); g_free(md5password); g_free(url); if (buffer == NULL) { g_warning("Unable to initiate handshake"); if (err != NULL) *err = LASTFM_ERR_CONN; return NULL; } GHashTable *response = lastfm_parse_handshake(buffer); g_free(buffer); LastfmSession *s = g_slice_new0(LastfmSession); s->id = g_strdup(g_hash_table_lookup(response, "session")); s->base_url = g_strdup(g_hash_table_lookup(response, "base_url")); s->base_path = g_strdup(g_hash_table_lookup(response, "base_path")); s->free_streams = free_streams; g_hash_table_destroy(response); if (s->id == NULL || s->base_url == NULL || s->base_path == NULL) { g_warning("Error building Last.fm session"); if (err != NULL) *err = LASTFM_ERR_LOGIN; lastfm_session_destroy(s); s = NULL; } else if (err != NULL) { *err = LASTFM_ERR_NONE; } return s; } static void parse_old_track_parts (xmlDoc *doc, xmlNode *node, LastfmTrack *track) { char *val; glong id, artistid, duration; xml_get_string (doc, node, "trackauth", (char **) &(track->trackauth)); xml_get_glong (doc, node, "id", &id); xml_get_glong (doc, node, "artistId", &artistid); xml_get_glong (doc, node, "duration", &duration); track->id = id; track->artistid = artistid; track->duration = duration; node = (xmlNode *) xml_get_string (doc, node, "link", &val); while (node != NULL) { xmlChar *rel = xmlGetProp (node, (xmlChar *) "rel"); if (rel != NULL && val != NULL && val[0] != '\0') { if (xmlStrEqual (rel, free_track_rel)) { g_free ((gpointer) track->free_track_url); track->free_track_url = val; val = NULL; } else if (xmlStrEqual (rel, album_page_rel) && g_str_has_prefix ( val, lastfm_music_prefix)) { char *artist, **parts; parts = g_strsplit (val, "/", 6); artist = lastfm_url_decode (parts[4]); g_strfreev (parts); g_free ((gpointer) track->album_artist); track->album_artist = artist; } xmlFree (rel); } g_free (val); node = (xmlNode *) xml_get_string (doc, node->next, "link", &val); } } static void parse_new_track_parts (xmlDoc *doc, xmlNode *node, LastfmTrack *track) { glong id, duration; xml_get_glong (doc, node, "identifier", &id); xml_get_glong (doc, node, "duration", &duration); track->id = id; track->duration = duration; node = (xmlNode *) xml_find_node (node, "extension"); if (node != NULL) { glong artistid; char *albumpage, *auth, *free_track; node = node->xmlChildrenNode; xml_get_glong (doc, node, "artistid", &artistid); xml_get_string (doc, node, "trackauth", &auth); xml_get_string (doc, node, "freeTrackURL", &free_track); xml_get_string (doc, node, "albumpage", &albumpage); if (albumpage && g_str_has_prefix (albumpage, lastfm_music_prefix)) { char *artist, **parts; parts = g_strsplit (albumpage, "/", 6); artist = lastfm_url_decode (parts[4]); g_strfreev (parts); g_free ((gpointer) track->album_artist); track->album_artist = artist; } /* We don't want empty strings */ if (auth && *auth == '\0') { g_free (auth); auth = NULL; } if (free_track && *free_track == '\0') { g_free (free_track); free_track = NULL; } track->trackauth = auth; track->free_track_url = free_track; track->artistid = artistid; g_free (albumpage); } } /** * Parse a element from an XSPF and add it to a playlist * @param doc The XML document that is being parsed * @param node The node poiting to the track to parse * @param pls The playlist where the track will be added * @param pls_title Title of the playlist where this track is in * @param new_format Whether the track is in the new XML format or not * @return Whether a track has been found and added to the playlist */ static gboolean lastfm_parse_track (xmlDoc *doc, xmlNode *node, LastfmPls *pls, const char *pls_title, gboolean new_format, gboolean free_streams) { g_return_val_if_fail (doc && node && pls, FALSE); gboolean retval = FALSE; LastfmTrack *track = lastfm_track_new (); track->pls_title = g_strdup (pls_title ? pls_title : _("(unknown radio)")); /* Common elements in both formats */ xml_get_string (doc, node, "location", (char **) &(track->stream_url)); xml_get_string (doc, node, "title", (char **) &(track->title)); xml_get_string (doc, node, "creator", (char **) &(track->artist)); xml_get_string (doc, node, "album", (char **) &(track->album)); xml_get_string (doc, node, "image", (char **) &(track->image_url)); if (new_format) { parse_new_track_parts (doc, node, track); } else { parse_old_track_parts (doc, node, track); } if (!track->stream_url || track->stream_url[0] == '\0') { g_debug("Found track with no stream URL, discarding it"); } else if (!track->title || track->title[0] == '\0') { g_debug("Found track with no title, discarding it"); } else if (!track->artist || track->artist[0] == '\0') { g_debug("Found track with no artist, discarding it"); } else { if (track->album_artist == NULL || !strcmp (track->artist, track->album_artist)) { /* Don't waste memory */ g_free ((gpointer) track->album_artist); track->album_artist = track->artist; } if (free_streams) { g_free ((char *) track->free_track_url); track->free_track_url = g_strdup (track->stream_url); } lastfm_pls_add_track(pls, track); retval = TRUE; } if (!retval) vgl_object_unref (track); return retval; } /** * Parse a playlist in XSPF form and add its tracks to a lastfm_pls * @param doc An XML document containing the playlist * @param default_pls_title The title of the playlist in case the XML * doesn't provide one * @return A new playlist, or NULL if none was found */ LastfmPls * lastfm_parse_playlist (xmlDoc *doc, const char *default_pls_title, gboolean free_streams) { const xmlNode *tracklist, *node, *root; gboolean new_format = FALSE; LastfmPls *pls = NULL; char *pls_title; g_return_val_if_fail (doc != NULL, NULL); /* First see whether the playlist is in the new format or not */ root = xmlDocGetRootElement (doc); node = xml_find_node (root, "lfm"); if (node != NULL) { new_format = TRUE; node = node->xmlChildrenNode; } else { node = root; } node = xml_find_node (node, "playlist"); if (node != NULL) { node = node->xmlChildrenNode; } else { g_warning ("Playlist file not in the expected format"); } /* Get playlist title */ xml_get_string (doc, node, "title", &pls_title); if (pls_title && pls_title[0] != '\0') { char *tmp = lastfm_url_decode (pls_title); g_free (pls_title); pls_title = tmp; } else { g_free (pls_title); pls_title = g_strdup (default_pls_title); } /* Get trackList node */ tracklist = xml_find_node (node, "trackList"); if (tracklist != NULL) { node = xml_find_node (tracklist->xmlChildrenNode, "track"); pls = lastfm_pls_new(); while (node != NULL) { lastfm_parse_track (doc, node->xmlChildrenNode, pls, pls_title, new_format, free_streams); node = xml_find_node (node->next, "track"); } if (lastfm_pls_size (pls) == 0) { lastfm_pls_destroy (pls); pls = NULL; } } else { g_warning("No tracks found in playlist"); } g_free(pls_title); return pls; } /** * Request a new playlist from the currently active radio. * @param s The session * @param discovery Whether to use discovery mode or not * @param pls_title Playlist title to use if no name is found in the response. * @return A new playlist or NULL if none has been obtained */ LastfmPls * lastfm_request_playlist (LastfmSession *s, gboolean discovery, const char *pls_title) { g_return_val_if_fail(s && s->id && s->base_url && s->base_path, NULL); const char *disc_mode = discovery ? "1" : "0"; char *url; char *buffer = NULL; size_t bufsize = 0; LastfmPls *pls = NULL; url = g_strconcat("http://", s->base_url, s->base_path, "/xspf.php?sk=", s->id, "&discovery=", disc_mode, "&desktop=1.5", NULL); http_get_buffer(url, &buffer, &bufsize); if (buffer != NULL) { xmlDoc *doc = xmlParseMemory(buffer, bufsize); if (doc != NULL) { pls = lastfm_parse_playlist (doc, pls_title, s->free_streams); xmlFreeDoc (doc); } else { g_warning ("Playlist is not an XML document"); } g_free(buffer); } g_free(url); return pls; } /** * Request a custom playlist (those starting with lastfm://play/). * These are handled different from the usual playlists * @param s The session * @param radio_url URL of the playlist * @return A new playlist, or NULL if none has been obtained */ LastfmPls * lastfm_request_custom_playlist (LastfmSession *s, const char *radio_url) { g_return_val_if_fail(s != NULL && radio_url != NULL, NULL); char *buffer = NULL; size_t bufsize = 0; LastfmPls *pls = NULL; char *url = NULL; char *radio_url_escaped = escape_url(radio_url, TRUE); url = g_strconcat("http://", s->base_url, custom_pls_path, "?sk=", s->id, "&url=", radio_url_escaped, "&desktop=1.5", NULL); http_get_buffer(url, &buffer, &bufsize); if (buffer != NULL) { xmlDoc *doc = xmlParseMemory(buffer, bufsize); if (doc != NULL) { pls = lastfm_parse_playlist (doc, NULL, s->free_streams); xmlFreeDoc (doc); } else { g_warning ("Playlist is not an XML document"); } g_free(buffer); } g_free(url); g_free(radio_url_escaped); return pls; } /** * Set a radio URL. All the following playlist requests will return * tracks from this radio. * @param s The session * @param radio_url URL of the radio to set * @param pls_title If non-NULL, the playlist title will be stored there. * @return Whether the radio has been set correctly */ gboolean lastfm_set_radio (LastfmSession *s, const char *radio_url, char **pls_title) { g_return_val_if_fail(s != NULL && s->id != NULL && s->base_url != NULL && s->base_path && radio_url != NULL, FALSE); char *buffer = NULL; char *title = NULL; gboolean retval = FALSE; char *url; char *radio_url_escaped = escape_url(radio_url, TRUE); url = g_strconcat("http://", s->base_url, s->base_path, "/adjust.php?session=", s->id, "&lang=", get_language_code(), "&url=", radio_url_escaped, NULL); http_get_buffer(url, &buffer, NULL); g_free(url); g_free(radio_url_escaped); if (buffer != NULL) { GHashTable *ht = lastfm_parse_handshake (buffer); const char *response = g_hash_table_lookup (ht, "response"); retval = response && g_str_equal (response, "OK"); title = g_strdup (g_hash_table_lookup (ht, "stationname")); g_hash_table_destroy (ht); } g_free(buffer); if (pls_title != NULL) { *pls_title = title; } else { g_free (title); } return retval; } vagalume-0.8.6/src/vgl-sb-plugin.h0000644000000000000000000000252312233552617013653 00000000000000/* * vgl-sb-plugin.h -- Status bar plugin for Vagalume * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * Mario Sanchez Prada * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VGL_SB_PLUGIN_H #define VGL_SB_PLUGIN_H #include #define VGL_SB_PLUGIN_TYPE (vgl_sb_plugin_get_type ()) #define VGL_SB_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VGL_SB_PLUGIN_TYPE, VglSbPlugin)) #define VGL_SB_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VGL_SB_PLUGIN_TYPE, VglSbPluginClass)) #define VGL_IS_SB_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VGL_SB_PLUGIN_TYPE)) #define VGL_IS_SB_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VGL_SB_PLUGIN_TYPE)) #define VGL_SB_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VGL_SB_PLUGIN_TYPE, VglSbPluginClass)) typedef struct _VglSbPlugin VglSbPlugin; typedef struct _VglSbPluginClass VglSbPluginClass; typedef struct _VglSbPluginPrivate VglSbPluginPrivate; struct _VglSbPlugin { StatusbarItem parent; VglSbPluginPrivate *priv; }; struct _VglSbPluginClass { StatusbarItemClass parent_class; }; GType vgl_sb_plugin_get_type (void); #endif /* !VGL_SB_PLUGIN_H */ vagalume-0.8.6/src/compat.c0000644000000000000000000000726512233552617012453 00000000000000/* * compat.c -- Implementations of some common functions for old systems * * Copyright (C) 2009, 2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "compat.h" #include #include #ifndef HAVE_GDK_THREADS_ADD_API typedef struct { GSourceFunc func; gpointer data; GDestroyNotify destroy; } GdkThreadsDispatch; static gboolean gdk_threads_dispatch (gpointer data) { GdkThreadsDispatch *dispatch = data; gboolean ret = FALSE; gdk_threads_enter (); ret = dispatch->func (dispatch->data); gdk_threads_leave (); return ret; } static void gdk_threads_dispatch_free (gpointer data) { GdkThreadsDispatch *dispatch = data; if (dispatch->destroy && dispatch->data) dispatch->destroy (dispatch->data); g_slice_free (GdkThreadsDispatch, data); } guint gdk_threads_add_idle_full (gint priority, GSourceFunc function, gpointer data, GDestroyNotify notify) { GdkThreadsDispatch *dispatch; g_return_val_if_fail (function != NULL, 0); dispatch = g_slice_new (GdkThreadsDispatch); dispatch->func = function; dispatch->data = data; dispatch->destroy = notify; return g_idle_add_full (priority, gdk_threads_dispatch, dispatch, gdk_threads_dispatch_free); } guint gdk_threads_add_idle (GSourceFunc function, gpointer data) { return gdk_threads_add_idle_full (G_PRIORITY_DEFAULT_IDLE, function, data, NULL); } guint gdk_threads_add_timeout_full (gint priority, guint interval, GSourceFunc function, gpointer data, GDestroyNotify notify) { GdkThreadsDispatch *dispatch; g_return_val_if_fail (function != NULL, 0); dispatch = g_slice_new (GdkThreadsDispatch); dispatch->func = function; dispatch->data = data; dispatch->destroy = notify; return g_timeout_add_full (priority, interval, gdk_threads_dispatch, dispatch, gdk_threads_dispatch_free); } guint gdk_threads_add_timeout (guint interval, GSourceFunc function, gpointer data) { return gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT, interval, function, data, NULL); } #endif /* HAVE_GDK_THREADS_ADD_API */ #ifndef HAVE_GTK_TOOLTIP void gtk_widget_set_tooltip_text (GtkWidget *widget, const gchar *text) { static GtkTooltips *tooltips = NULL; if (G_UNLIKELY (tooltips == NULL)) { tooltips = gtk_tooltips_new(); } gtk_tooltips_set_tip (tooltips, widget, text, text); } #endif /* HAVE_GTK_TOOLTIP */ #ifndef HAVE_GSTRCMP0 int g_strcmp0 (const char *str1, const char *str2) { if (!str1) return -(str1 != str2); if (!str2) return str1 != str2; return strcmp (str1, str2); } #endif /* HAVE_GSTRCMP0 */ vagalume-0.8.6/src/http.h0000644000000000000000000000351012233552617012141 00000000000000/* * http.h -- All the HTTP-specific functions * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef HTTP_H #define HTTP_H #include typedef gboolean (*http_download_progress_cb) (gpointer userdata, double dltotal, double dlnow); void http_set_proxy (const char *proxy, gboolean use_system_proxy); char * escape_url (const char *url, gboolean escape); gboolean http_get_buffer (const char *url, char **buffer, size_t *bufsize); gboolean http_get_to_fd (const char *url, int fd, const GSList *headers); gboolean http_download_file (const char *url, const char *filename, http_download_progress_cb cb, gpointer userdata); gboolean http_post_buffer (const char *url, const char *postdata, char **retbuf, size_t *retbufsize, const GSList *headers); void http_init (void); #endif vagalume-0.8.6/src/controller.h0000644000000000000000000001133112233552617013345 00000000000000/* * controller.h -- Where the control of the program is * * Copyright (C) 2007-2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef CONTROLLER_H #define CONTROLLER_H #include "vgl-main-window.h" #include "radio.h" #include G_BEGIN_DECLS #define VGL_TYPE_CONTROLLER \ (vgl_controller_get_type()) #define VGL_CONTROLLER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ VGL_TYPE_CONTROLLER, \ VglController)) #define VGL_CONTROLLER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST ((klass), \ VGL_TYPE_CONTROLLER, \ VglControllerClass)) #define VGL_IS_CONTROLLER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ VGL_TYPE_CONTROLLER)) #define VGL_IS_CONTROLLER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), \ VGL_TYPE_CONTROLLER)) #define VGL_CONTROLLER_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), \ VGL_TYPE_CONTROLLER, \ VglControllerClass)) #ifndef __TYPEDEF_VGL_CONTROLLER__ #define __TYPEDEF_VGL_CONTROLLER__ typedef struct _VglController VglController; #endif typedef struct _VglControllerClass VglControllerClass; struct _VglControllerClass { GObjectClass parent_class; }; struct _VglController { GObject parent; }; GType vgl_controller_get_type (void) G_GNUC_CONST; typedef enum { STOP_AFTER_DONT_STOP, STOP_AFTER_THIS_TRACK, STOP_AFTER_N_MINUTES } StopAfterType; typedef enum { BOOKMARK_TYPE_EMPTY, BOOKMARK_TYPE_ARTIST, BOOKMARK_TYPE_TRACK, BOOKMARK_TYPE_CURRENT_RADIO } BookmarkType; void controller_stop_playing (void); void controller_disconnect (void); void controller_start_playing (void); void controller_skip_track (void); void controller_set_stop_after (void); void controller_love_track (gboolean interactive); void controller_ban_track (gboolean interactive); void controller_play_radio_by_url (const char *url); void controller_play_radio (LastfmRadio type); void controller_play_others_radio (LastfmRadio type); void controller_play_others_radio_by_user (const char *username, LastfmRadio type); void controller_play_radio_ask_url (void); void controller_play_group_radio (void); void controller_play_globaltag_radio (void); void controller_play_similarartist_radio (void); void controller_tag_track (void); void controller_recomm_track (void); void controller_add_to_playlist (void); void controller_download_track (gboolean background); void controller_manage_bookmarks (void); void controller_add_bookmark (BookmarkType type); void controller_open_usercfg (void); void controller_import_servers_file (void); void controller_quit_app (void); void controller_run_app (const char *radio_url); void controller_show_error (const char *text); void controller_show_warning (const char *text); void controller_show_info (const char *text); void controller_show_banner (const char *text); void controller_show_about (void); gboolean controller_confirm_dialog (const char *text, gboolean show_always); void controller_show_mainwin (gboolean show); void controller_toggle_mainwin_visibility (void); int controller_increase_volume (int inc); void controller_set_volume (int vol); void controller_show_cover (void); LastfmTrack * controller_get_current_track (void); const GList * controller_get_friend_list (void); void controller_close_mainwin (void); G_END_DECLS #endif vagalume-0.8.6/src/protocol.h0000644000000000000000000000344512233552617013032 00000000000000/* * protocol.h -- Last.fm legacy streaming protocol and XSPF * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef PROTOCOL_H #define PROTOCOL_H #include #include #include "playlist.h" typedef enum { LASTFM_ERR_NONE, LASTFM_ERR_CONN, LASTFM_ERR_LOGIN } LastfmErr; typedef struct { char *id; char *base_url; char *base_path; LastfmPls *custom_pls; gboolean free_streams; } LastfmSession; LastfmSession * lastfm_session_new (const char *username, const char *password, const char *handshake_url, LastfmErr *err, gboolean free_streams); LastfmPls * lastfm_request_playlist (LastfmSession *s, gboolean discovery, const char *pls_title); LastfmPls * lastfm_parse_playlist (xmlDoc *doc, const char *default_pls_title, gboolean free_streams); LastfmPls * lastfm_request_custom_playlist (LastfmSession *s, const char *radio_url); void lastfm_session_destroy (LastfmSession *session); gboolean lastfm_set_radio (LastfmSession *s, const char *radio_url, char **pls_title); #endif vagalume-0.8.6/src/connection.h0000644000000000000000000000170412233552617013324 00000000000000/* * connection.h -- Internet connection handling * * Copyright (C) 2007 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef CONNECTION_H #define CONNECTION_H #include "config.h" #include typedef void (*connection_go_online_cb)(gpointer data); #ifdef HAVE_CONIC const char * connection_init (void); void connection_go_online (connection_go_online_cb cb, gpointer data); #else const char * connection_init (void) { return NULL; } void connection_go_online (connection_go_online_cb cb, gpointer data) { (*cb)(data); } #endif #endif vagalume-0.8.6/src/vgl-bookmark-window.h0000644000000000000000000000430712233552617015067 00000000000000/* * vgl-bookmark-window.h -- Bookmark manager window * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VGL_BOOKMARK_WINDOW_H #define VGL_BOOKMARK_WINDOW_H #include G_BEGIN_DECLS #define VGL_TYPE_BOOKMARK_WINDOW \ (vgl_bookmark_window_get_type()) #define VGL_BOOKMARK_WINDOW(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ VGL_TYPE_BOOKMARK_WINDOW, \ VglBookmarkWindow)) #define VGL_BOOKMARK_WINDOW_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST ((klass), \ VGL_TYPE_BOOKMARK_WINDOW, \ VglBookmarkWindowClass)) #define VGL_IS_BOOKMARK_WINDOW(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ VGL_TYPE_BOOKMARK_WINDOW)) #define VGL_IS_BOOKMARK_WINDOW_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), \ VGL_TYPE_BOOKMARK_WINDOW)) #define VGL_BOOKMARK_WINDOW_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), \ VGL_TYPE_BOOKMARK_WINDOW, \ VglBookmarkWindowClass)) typedef struct _VglBookmarkWindow VglBookmarkWindow; typedef struct _VglBookmarkWindowClass VglBookmarkWindowClass; typedef struct _VglBookmarkWindowPrivate VglBookmarkWindowPrivate; struct _VglBookmarkWindowClass { GtkDialogClass parent_class; }; struct _VglBookmarkWindow { GtkDialog parent; VglBookmarkWindowPrivate *priv; }; GType vgl_bookmark_window_get_type (void) G_GNUC_CONST; void vgl_bookmark_window_show (GtkWindow *parent); G_END_DECLS #endif /* VGL_BOOKMARK_WINDOW_H */ vagalume-0.8.6/src/vgl-tray-icon.c0000644000000000000000000005225312233552617013660 00000000000000/* * vgl-tray-icon.c -- Freedesktop tray icon * * Copyright (C) 2007-2009, 2011-2012 Igalia, S.L. * Authors: Mario Sanchez Prada * Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include "vgl-tray-icon.h" #include "globaldefs.h" #include "util.h" #include "uimisc.h" #include "scrobbler.h" #include "compat.h" #define TOOLTIP_DEFAULT_STRING _(" Stopped ") #define TOOLTIP_FORMAT_STRING _(" Now playing: \n %s \n by %s ") #define NOTIFICATION_BODY_NO_ALBUM _(" by %s") #define NOTIFICATION_BODY_WITH_ALBUM _(" by %s\n from %s") #define NOTIFICATION_ICON_SIZE 48 #define VGL_TRAY_ICON_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), \ VGL_TRAY_ICON_TYPE, VglTrayIconPrivate)) G_DEFINE_TYPE (VglTrayIcon, vgl_tray_icon, G_TYPE_OBJECT); enum { SETTINGS_ITEM, ABOUT_ITEM, RECOMMEND_ITEM, TAG_ITEM, ADD_TO_PLS_ITEM, LOVE_ITEM, BAN_ITEM, PLAY_ITEM, STOP_ITEM, NEXT_ITEM, QUIT_ITEM, N_MENU_ITEMS }; /* Private struct */ struct _VglTrayIconPrivate { GtkStatusIcon *tray_icon; gboolean now_playing; GtkWidget *ctxt_menu; GtkWidget *menu_item[N_MENU_ITEMS]; gboolean show_notifications; NotifyNotification *notification; }; /* Private */ /* Initialization/destruction functions */ static void vgl_tray_icon_finalize (GObject* object); static void vgl_tray_icon_class_init(VglTrayIconClass *klass); static void vgl_tray_icon_init (VglTrayIcon *vgl_tray_icon); /* Libnotify functions */ static void setup_libnotify (VglTrayIcon *vti); static void cleanup_libnotify (VglTrayIcon *vti); /* Panel update functions */ static void ctxt_menu_create (VglTrayIcon *vti); static void ctxt_menu_update (VglTrayIcon *vti); /* Signals handlers */ static void tray_icon_clicked (GtkStatusIcon *status_icon, gpointer user_data); static void tray_icon_popup_menu (GtkStatusIcon *status_icon, guint button, guint activate_time, gpointer data); static void ctxt_menu_item_activated (GtkWidget *item, gpointer data); static void vgl_tray_icon_notify_playback (VglTrayIcon *vti, LastfmTrack *track); /* Private */ /* Initialization/destruction functions */ static void vgl_tray_icon_class_init (VglTrayIconClass *klass) { GObjectClass *obj_class = G_OBJECT_CLASS(klass); obj_class -> finalize = vgl_tray_icon_finalize; g_type_class_add_private (obj_class, sizeof (VglTrayIconPrivate)); } static void vgl_tray_icon_init (VglTrayIcon *vti) { int i; VglTrayIconPrivate *priv = VGL_TRAY_ICON_GET_PRIVATE (vti); /* Init private attributes */ vti->priv = priv; priv->tray_icon = gtk_status_icon_new (); priv->now_playing = FALSE; for (i = 0; i < N_MENU_ITEMS; i++) { priv->menu_item[i] = NULL; } priv->notification = NULL; priv->show_notifications = FALSE; /* Create main panel */ ctxt_menu_create (vti); /* Connect signals */ g_signal_connect (priv->tray_icon, "activate", G_CALLBACK (tray_icon_clicked), vti); g_signal_connect (priv->tray_icon, "popup-menu", G_CALLBACK (tray_icon_popup_menu), vti); /* Set icon and tooltip */ gtk_status_icon_set_from_file (priv->tray_icon, APP_ICON); gtk_status_icon_set_tooltip_text (priv->tray_icon, TOOLTIP_DEFAULT_STRING); gtk_status_icon_set_visible(priv->tray_icon, TRUE); /* Init libnotify */ setup_libnotify (vti); /* Update contextual menu */ ctxt_menu_update (vti); } static void vgl_tray_icon_finalize (GObject* object) { VglTrayIcon *vti = VGL_TRAY_ICON (object); VglTrayIconPrivate *priv = vti->priv; /* Cleanup libnotify */ cleanup_libnotify (vti); /* Destroy local widgets */ if (priv->ctxt_menu) { gtk_widget_destroy (priv->ctxt_menu); } if (priv->tray_icon) { g_object_unref (priv->tray_icon); } /* call super class */ G_OBJECT_CLASS (vgl_tray_icon_parent_class) -> finalize(object); } /* Libnotify functions */ static void setup_libnotify (VglTrayIcon *vti) { if (!notify_init (APP_NAME)) { g_debug ("[TRAY ICON] :: Error initializing libnotify"); } else { g_debug ("[TRAY ICON] :: Success initializing libnotify"); } } static void cleanup_libnotify (VglTrayIcon *vti) { VglTrayIconPrivate *priv = vti->priv; if (notify_is_initted ()) { if (priv->notification) { notify_notification_close (priv->notification, NULL); g_object_unref (priv->notification); } notify_uninit (); } } /* Panel update functions */ static void ctxt_menu_create (VglTrayIcon *vti) { VglTrayIconPrivate *priv = vti->priv; GtkMenuShell *ctxt_menu; /* Create ctxt_menu and ctxt_menu items */ priv->ctxt_menu = gtk_menu_new (); ctxt_menu = GTK_MENU_SHELL (priv->ctxt_menu); priv->menu_item[SETTINGS_ITEM] = gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL); priv->menu_item[ABOUT_ITEM] = gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, NULL); priv->menu_item[RECOMMEND_ITEM] = ui_menu_item_create_from_icon (RECOMMEND_ITEM_ICON_NAME, RECOMMEND_ITEM_STRING); priv->menu_item[TAG_ITEM] = ui_menu_item_create_from_icon (TAG_ITEM_ICON_NAME, TAG_ITEM_STRING); priv->menu_item[ADD_TO_PLS_ITEM] = ui_menu_item_create_from_icon (ADD_TO_PLS_ITEM_ICON_NAME, ADD_TO_PLS_ITEM_STRING); priv->menu_item[LOVE_ITEM] = ui_menu_item_create_from_icon (LOVE_ITEM_ICON_NAME, LOVE_ITEM_STRING); priv->menu_item[BAN_ITEM] = ui_menu_item_create_from_icon (BAN_ITEM_ICON_NAME, BAN_ITEM_STRING); priv->menu_item[PLAY_ITEM] = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_PLAY,NULL); priv->menu_item[STOP_ITEM] = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_STOP,NULL); priv->menu_item[NEXT_ITEM] = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_NEXT,NULL); priv->menu_item[QUIT_ITEM] = gtk_image_menu_item_new_from_stock (GTK_STOCK_QUIT, NULL); /* Add items to ctxt_menu */ gtk_menu_shell_append (ctxt_menu, priv->menu_item[RECOMMEND_ITEM]); gtk_menu_shell_append (ctxt_menu, priv->menu_item[TAG_ITEM]); gtk_menu_shell_append (ctxt_menu, priv->menu_item[ADD_TO_PLS_ITEM]); gtk_menu_shell_append (ctxt_menu, gtk_separator_menu_item_new ()); gtk_menu_shell_append (ctxt_menu, priv->menu_item[LOVE_ITEM]); gtk_menu_shell_append (ctxt_menu, priv->menu_item[BAN_ITEM]); gtk_menu_shell_append (ctxt_menu, gtk_separator_menu_item_new ()); gtk_menu_shell_append (ctxt_menu, priv->menu_item[PLAY_ITEM]); gtk_menu_shell_append (ctxt_menu, priv->menu_item[STOP_ITEM]); gtk_menu_shell_append (ctxt_menu, priv->menu_item[NEXT_ITEM]); gtk_menu_shell_append (ctxt_menu, gtk_separator_menu_item_new ()); gtk_menu_shell_append (ctxt_menu, priv->menu_item[SETTINGS_ITEM]); gtk_menu_shell_append (ctxt_menu, priv->menu_item[ABOUT_ITEM]); gtk_menu_shell_append (ctxt_menu, gtk_separator_menu_item_new ()); gtk_menu_shell_append (ctxt_menu, priv->menu_item[QUIT_ITEM]); /* Connect signals */ g_signal_connect (priv->menu_item[SETTINGS_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[ABOUT_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[RECOMMEND_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[TAG_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[ADD_TO_PLS_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[LOVE_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[BAN_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[PLAY_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[STOP_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[NEXT_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); g_signal_connect (priv->menu_item[QUIT_ITEM], "activate", G_CALLBACK (ctxt_menu_item_activated), vti); /* Show widgets */ gtk_widget_show_all (priv->ctxt_menu); } static void ctxt_menu_update (VglTrayIcon *vti) { VglTrayIconPrivate *priv = vti->priv; gboolean np = priv->now_playing; /* Adjust sentitiveness for ctxt_menu items and show/hide buttons */ gtk_widget_set_sensitive (priv->menu_item[RECOMMEND_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[TAG_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[ADD_TO_PLS_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[LOVE_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[BAN_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[PLAY_ITEM], !np); gtk_widget_set_sensitive (priv->menu_item[STOP_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[NEXT_ITEM], np); if (np) { gtk_widget_hide (priv->menu_item[PLAY_ITEM]); gtk_widget_show (priv->menu_item[STOP_ITEM]); } else { gtk_widget_show (priv->menu_item[PLAY_ITEM]); gtk_widget_hide (priv->menu_item[STOP_ITEM]); } } /* Signals handlers */ static void tray_icon_clicked (GtkStatusIcon *status_icon, gpointer data) { controller_toggle_mainwin_visibility (); } static void tray_icon_popup_menu (GtkStatusIcon *status_icon, guint button, guint activate_time, gpointer data) { VglTrayIcon *vti = VGL_TRAY_ICON (data); VglTrayIconPrivate *priv = vti->priv; gtk_menu_popup (GTK_MENU (priv->ctxt_menu), NULL, NULL, gtk_status_icon_position_menu, priv->tray_icon, button, activate_time); } static void ctxt_menu_item_activated (GtkWidget *item, gpointer data) { VglTrayIcon *vti = VGL_TRAY_ICON (data); VglTrayIconPrivate *priv = vti->priv; if (item == priv->menu_item[SETTINGS_ITEM]) { controller_open_usercfg(); } else if (item == priv->menu_item[ABOUT_ITEM]) { controller_show_about(); } else if (item == priv->menu_item[RECOMMEND_ITEM]) { controller_recomm_track(); } else if (item == priv->menu_item[TAG_ITEM]) { controller_tag_track(); } else if (item == priv->menu_item[ADD_TO_PLS_ITEM]) { controller_add_to_playlist(); } else if (item == priv->menu_item[LOVE_ITEM]) { controller_love_track (TRUE); } else if (item == priv->menu_item[BAN_ITEM]) { controller_ban_track (TRUE); } else if (item == priv->menu_item[PLAY_ITEM]) { controller_start_playing (); } else if (item == priv->menu_item[STOP_ITEM]) { controller_stop_playing (); } else if (item == priv->menu_item[NEXT_ITEM]) { controller_skip_track (); } else if (item == priv->menu_item[QUIT_ITEM]) { controller_quit_app (); } else { g_warning ("[TRAY ICON] :: Unknown action"); } } static void usercfg_changed_cb (VglController *ctrl, VglUserCfg *cfg, VglTrayIcon *icon) { icon->priv->show_notifications = cfg->show_notifications; } static void track_stopped_cb (VglController *ctrl, RspRating rating, VglTrayIcon *icon) { vgl_tray_icon_notify_playback (icon, NULL); } static void track_started_cb (VglController *ctrl, LastfmTrack *track, VglTrayIcon *icon) { vgl_tray_icon_notify_playback (icon, track); } static void controller_destroyed_cb (gpointer data, GObject *controller) { VglTrayIcon *icon = VGL_TRAY_ICON (data); g_object_unref (icon); } /* Public */ VglTrayIcon * vgl_tray_icon_create (VglController *controller) { VglTrayIcon *icon; g_return_val_if_fail (VGL_IS_CONTROLLER (controller), NULL); icon = g_object_new (VGL_TRAY_ICON_TYPE, NULL); g_signal_connect (controller, "usercfg-changed", G_CALLBACK (usercfg_changed_cb), icon); g_signal_connect (controller, "track-stopped", G_CALLBACK (track_stopped_cb), icon); g_signal_connect (controller, "track-started", G_CALLBACK (track_started_cb), icon); g_object_weak_ref (G_OBJECT (controller), controller_destroyed_cb, icon); return icon; } static GdkPixbuf * get_default_album_cover_icon (void) { static GdkPixbuf *pixbuf = NULL; /* Create "empty" GdkPixbuf if not created yet */ if (pixbuf == NULL) { pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 1, 1); } return g_object_ref (pixbuf); } typedef struct { LastfmTrack *track; VglTrayIcon *vti; } VglTrayIconPlaybackData; static void show_notification (VglTrayIcon *vti, LastfmTrack *track) { g_return_if_fail(VGL_IS_TRAY_ICON(vti) && track != NULL); VglTrayIconPrivate *priv = vti->priv; GdkPixbuf *icon = NULL; gchar *notification_summary = NULL; gchar *notification_body = NULL; int i; if (track->image_data != NULL) { /* Set album image as icon if specified */ icon = get_pixbuf_from_image (track->image_data, track->image_data_size, NOTIFICATION_ICON_SIZE); } /* Set summary text (title) */ /* We need to replace "&" with "and" since it fails on some environments due to a strange bug (probably in libnotify) */ notification_summary = string_replace(track->title, "&", "and"); /* Remove also '<' and '>', which are conflicting chars */ for (i = 0; notification_summary[i] != '\0'; i++) { if (notification_summary[i] == '<' || notification_summary[i] == '>') { notification_summary[i] = ' '; } } /* Set body text (artist and, perhaps, the album) */ if (track->album[0] == '\0') { /* No album */ notification_body = g_markup_printf_escaped (NOTIFICATION_BODY_NO_ALBUM, track->artist); } else { /* Both artist and album */ notification_body = g_markup_printf_escaped (NOTIFICATION_BODY_WITH_ALBUM, track->artist, track->album); } /* Try loading the default cover icon if an error occurred or * not image_url was set for the current track */ if (icon == NULL) { icon = get_default_album_cover_icon (); } /* Create the notification if not already created */ if (priv->notification == NULL) { priv->notification = #if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7) notify_notification_new_with_status_icon ( notification_summary, notification_body, NULL, priv->tray_icon); #else notify_notification_new ( notification_summary, notification_body, NULL); #endif } else { notify_notification_update (priv->notification, notification_summary, notification_body, NULL); } /* Set cover image */ notify_notification_set_icon_from_pixbuf (priv->notification, icon); /* Show notification */ notify_notification_show (priv->notification, NULL); /* Cleanup */ g_object_unref(icon); g_free (notification_summary); g_free (notification_body); } static gboolean notify_playback_idle (gpointer userdata) { VglTrayIconPlaybackData *d = userdata; VglTrayIconPrivate *priv; g_return_val_if_fail (d != NULL, FALSE); /* Set the now_playing private attribute and update panel */ priv = d->vti->priv; priv->now_playing = (d->track != NULL); ctxt_menu_update (d->vti); /* Update tooltip and show notification, if needed */ if (priv->now_playing) { gchar *tooltip_string = NULL; /* Set the tooltip */ tooltip_string = g_strdup_printf (TOOLTIP_FORMAT_STRING, d->track->title, d->track->artist); gtk_status_icon_set_tooltip_text (priv->tray_icon, tooltip_string); g_free (tooltip_string); /* Show the notification, if required */ if (priv->show_notifications) { show_notification (d->vti, d->track); } } else { gtk_status_icon_set_tooltip_text (priv->tray_icon, TOOLTIP_DEFAULT_STRING); } /* Cleanup */ g_object_unref(d->vti); if (d->track != NULL) vgl_object_unref(d->track); g_slice_free(VglTrayIconPlaybackData, d); return FALSE; } static gpointer download_cover_thread (gpointer userdata) { VglTrayIconPlaybackData *data = userdata; lastfm_get_track_cover_image (data->track); if (data->track->image_data == NULL) { g_debug ("Error getting cover image"); } gdk_threads_add_idle (notify_playback_idle, data); return NULL; } static void vgl_tray_icon_notify_playback (VglTrayIcon *vti, LastfmTrack *track) { g_return_if_fail(VGL_IS_TRAY_ICON(vti)); VglTrayIconPlaybackData *data; gboolean dl_cover; data = g_slice_new(VglTrayIconPlaybackData); data->vti = g_object_ref(vti); data->track = track ? vgl_object_ref(track) : NULL; dl_cover = track && track->image_url && track->image_data == NULL; if (vti->priv->show_notifications && dl_cover) { g_thread_create (download_cover_thread, data, FALSE, NULL); } else { gdk_threads_add_idle (notify_playback_idle, data); } } vagalume-0.8.6/src/main.c0000644000000000000000000000750512233552617012111 00000000000000/* * main.c -- Main file, basic initialization * * Copyright (C) 2007-2011, 2013 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume. * * Vagalume is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * Vagalume 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 Vagalume. If not, see . */ #include #include #include #include #include #include "controller.h" #include "globaldefs.h" #include "audio.h" #ifdef HAVE_DBUS_SUPPORT # include #endif #ifdef MAEMO5 # include # undef APP_NAME # define APP_NAME "FMRadio" /* Hack to play music while in silent mode */ #endif int main (int argc, char **argv) { char *radio = NULL; signal(SIGPIPE, SIG_IGN); #if !GLIB_CHECK_VERSION(2,32,0) g_thread_init (NULL); #endif gdk_threads_init (); #ifdef HAVE_DBUS_SUPPORT dbus_g_thread_init (); #endif gdk_threads_enter (); #ifdef MAEMO5 hildon_gtk_init (&argc, &argv); #else gtk_init (&argc, &argv); #endif /* MAEMO5 */ g_set_application_name(APP_NAME); bindtextdomain (GETTEXT_PACKAGE, VAGALUME_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); if (g_getenv ("VAGALUME_DEBUG") == NULL && g_getenv ("G_MESSAGES_DEBUG") == NULL) { g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, (GLogFunc) gtk_true, NULL); } #if defined(HAVE_GETOPT) && !defined(MAEMO) int opt; while ((opt = getopt(argc, argv, "d:s:h")) != -1) { switch (opt) { case 'd': g_setenv(GST_DECODER_ENVVAR, optarg, TRUE); break; case 's': g_setenv(GST_SINK_ENVVAR, optarg, TRUE); break; default: g_print(_("Usage:\n %s [-d decoder] " "[-s sink] [lastfm radio url]\n\n" " decoder: GStreamer decoder " "(default: '%s')\n" " sink: GStreamer sink " "(default: '%s')\n"), argv[0], lastfm_audio_default_decoder_name(), lastfm_audio_default_sink_name()); return -1; } } if (optind + 1 < argc) { g_print(_("Too many unrecognized options\n")); return -1; } else if (optind + 1 == argc) { radio = g_strdup(argv[optind]); } #else /* check input arguments */ if (argc != 1) { if (argc != 2 || strncmp("lastfm://", argv[1], 9)) { g_print (_("Usage: %s [lastfm radio url]\n"), argv[0]); return -1; } } if (argc == 2) { radio = g_strdup(argv[1]); } #endif gtk_icon_theme_append_search_path( gtk_icon_theme_get_default(), THEME_ICONS_DIR); controller_run_app (radio); g_free(radio); gdk_threads_leave (); return 0; } vagalume-0.8.6/src/dlwin.h0000644000000000000000000000132312233552617012277 00000000000000/* * dlwin.h -- Download window * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef DLWIN_H #define DLWIN_H typedef void (*dlwin_cb) (gboolean success, gpointer userdata); void dlwin_download_file (const char *url, const char *filename, const char *dstpath, dlwin_cb cb, gpointer cbdata); #endif vagalume-0.8.6/src/compat.h0000644000000000000000000000756212233552617012460 00000000000000/* * compat.h -- Implementations of some common functions for old systems * * Copyright (C) 2009, 2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VGL_COMPAT_H #define VGL_COMPAT_H #include "config.h" #include #include #include #ifndef GDK_KEY_space # define GDK_KEY_space GDK_space # define GDK_KEY_Right GDK_Right # define GDK_KEY_KP_Add GDK_KP_Add # define GDK_KEY_KP_Subtract GDK_KP_Subtract # define GDK_KEY_plus GDK_plus # define GDK_KEY_minus GDK_minus # define GDK_KEY_F6 GDK_F6 # define GDK_KEY_F7 GDK_F7 # define GDK_KEY_F8 GDK_F8 # define GDK_KEY_b GDK_b # define GDK_KEY_l GDK_l # define GDK_KEY_r GDK_r # define GDK_KEY_t GDK_t # define GDK_KEY_a GDK_a # define GDK_KEY_p GDK_p # define GDK_KEY_q GDK_q #endif /* GDK_KEY_space */ #ifndef HAVE_GDK_THREADS_ADD_TIMEOUT_SECONDS # define gdk_threads_add_timeout_seconds(A,B,C) \ gdk_threads_add_timeout ((A)*1000,B,C) #endif #ifndef HAVE_GDK_THREADS_ADD_API G_BEGIN_DECLS guint gdk_threads_add_idle_full (gint priority, GSourceFunc function, gpointer data, GDestroyNotify notify); guint gdk_threads_add_idle (GSourceFunc function, gpointer data); guint gdk_threads_add_timeout_full (gint priority, guint interval, GSourceFunc function, gpointer data, GDestroyNotify notify); guint gdk_threads_add_timeout (guint interval, GSourceFunc function, gpointer data); G_END_DECLS #endif /* HAVE_GDK_THREADS_ADD_API */ #ifndef HAVE_GTK_DIALOG_GET_CONTENT_AREA # define gtk_dialog_get_content_area(X) (((GtkDialog *) (X))->vbox) # define gtk_dialog_get_action_area(X) (((GtkDialog *) (X))->action_area) #endif /* HAVE_GTK_DIALOG_GET_CONTENT_AREA */ #ifndef HAVE_GTK_TOOLTIP G_BEGIN_DECLS void gtk_widget_set_tooltip_text (GtkWidget *widget, const gchar *text); G_END_DECLS #endif /* HAVE_GTK_TOOLTIP */ #if !GTK_CHECK_VERSION(2,16,0) # define gtk_status_icon_set_tooltip_text(X,Y) \ gtk_status_icon_set_tooltip(X,Y) #endif /* !GTK_CHECK_VERSION(2,16,0) */ #ifdef GTK_WIDGET_IS_SENSITIVE # define gtk_widget_is_sensitive(X) GTK_WIDGET_IS_SENSITIVE(X) #endif /* GTK_WIDGET_IS_SENSITIVE */ #ifndef GTK_TYPE_PROGRESS # define gtk_progress_set_text_alignment(X,Y,Z) #endif /* GTK_TYPE_PROGRESS */ #if !GTK_CHECK_VERSION(3,0,0) # define gtk_progress_bar_set_show_text(X,Y) #endif /* !GTK_CHECK_VERSION(3,0,0) */ #ifndef HAVE_GSTRCMP0 G_BEGIN_DECLS int g_strcmp0 (const char *str1, const char *str2); G_END_DECLS #endif #ifndef GTK_TYPE_COMBO_BOX_TEXT # define GtkComboBoxText GtkComboBox # define GTK_COMBO_BOX_TEXT(X) GTK_COMBO_BOX(X) # define gtk_combo_box_text_new gtk_combo_box_new_text # define gtk_combo_box_text_append_text(X,Y) \ gtk_combo_box_append_text(X,Y) # define gtk_combo_box_text_get_active_text(X) \ gtk_combo_box_get_active_text(X) # define gtk_combo_box_text_new_with_entry() \ g_object_new(GTK_TYPE_COMBO_BOX_ENTRY, "text-column", 0, NULL) #endif /* GTK_TYPE_COMBO_BOX_TEXT */ #endif /* VGL_COMPAT_H */ vagalume-0.8.6/src/userconfig.h0000644000000000000000000000424612233552617013335 00000000000000/* * userconfig.h -- Read and write the user configuration file * * Copyright (C) 2007-2009, 2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef USERCONFIG_H #define USERCONFIG_H #include #include "vgl-server.h" typedef struct { char *username; /* Never NULL, even if not defined */ char *password; /* Never NULL, even if not defined */ char *http_proxy; /* Never NULL, even if not defined */ char *download_dir; /* Never NULL */ char *imstatus_template; /* Never NULL */ VglServer *server; gboolean use_proxy; gboolean use_system_proxy; gboolean low_bitrate; gboolean discovery_mode; gboolean enable_scrobbling; gboolean im_pidgin; gboolean im_gajim; gboolean im_gossip; gboolean im_telepathy; gboolean disable_confirm_dialogs; gboolean show_notifications; gboolean close_to_systray; gboolean autodl_free_tracks; } VglUserCfg; VglUserCfg * vgl_user_cfg_new (void); void vgl_user_cfg_destroy (VglUserCfg *cfg); void vgl_user_cfg_set_username (VglUserCfg *cfg, const char *username); void vgl_user_cfg_set_password (VglUserCfg *cfg, const char *password); void vgl_user_cfg_set_http_proxy (VglUserCfg *cfg, const char *proxy); void vgl_user_cfg_set_download_dir (VglUserCfg *cfg, const char *dir); void vgl_user_cfg_set_server_name (VglUserCfg *cfg, const char *name); void vgl_user_cfg_set_imstatus_template (VglUserCfg *cfg, const char *str); VglUserCfg * vgl_user_cfg_read (void); gboolean vgl_user_cfg_write (VglUserCfg *cfg); const char * vgl_user_cfg_get_cfgdir (void); #endif vagalume-0.8.6/src/imstatus.c0000644000000000000000000003637012233552617013040 00000000000000/* * imstatus.c -- set IM status to current track * * Copyright (C) 2008, 2009 Igalia, S.L. * Authors: Alberto Garcia * Tim Wegener * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "globaldefs.h" #include #include #include #include #include "imstatus.h" #include "util.h" #include "playlist.h" #include "userconfig.h" static char *saved_pidgin_status = NULL; static char *saved_telepathy_status = NULL; static char *saved_gajim_status = NULL; static char *saved_gossip_status = NULL; static gboolean im_pidgin = FALSE; static gboolean im_telepathy = FALSE; static gboolean im_gajim = FALSE; static gboolean im_gossip = FALSE; static GString *im_status_template = NULL; static gboolean error_happened (gboolean code, GError *error) { g_return_val_if_fail(code || error != NULL, TRUE); gboolean retval = FALSE; if (!code) { if (error->domain == DBUS_GERROR && error->code == DBUS_GERROR_REMOTE_EXCEPTION) { g_warning("Caught remote method exception %s: %s", dbus_g_error_get_name (error), error->message); } else { g_warning("Error: (%d) %s", error->code, error->message); } retval = TRUE; } if (error != NULL) g_error_free(error); return retval; } static DBusGProxy * get_dbus_proxy (const char *dest, const char *objpath, const char *iface) { g_return_val_if_fail (dest && objpath && iface, NULL); DBusGConnection *connection; DBusGProxy *proxy = NULL; GError *error = NULL; connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error); if (connection != NULL) { proxy = dbus_g_proxy_new_for_name(connection, dest, objpath, iface); } else { g_warning("Failed to open connection to bus: %s", (error && error->message) ? error->message : "(unknown error)"); } if (error != NULL) g_error_free(error); if (connection != NULL) dbus_g_connection_unref(connection); return proxy; } static gboolean gajim_set_status (const char *message) { g_return_val_if_fail(message != NULL, FALSE); DBusGProxy *proxy; GError *error = NULL; gboolean result; char *status = NULL; gboolean change_status_result; gboolean retval = FALSE; proxy = get_dbus_proxy("org.gajim.dbus", "/org/gajim/dbus/RemoteObject", "org.gajim.dbus.RemoteInterface"); if (proxy == NULL) goto cleanup; result = dbus_g_proxy_call (proxy, "get_status", &error, G_TYPE_STRING, "", G_TYPE_INVALID, G_TYPE_STRING, &status, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; /* todo: abort if not online or chat? or dnd? */ if (saved_gajim_status == NULL) { dbus_g_proxy_call(proxy, "get_status_message", &error, G_TYPE_STRING, "", G_TYPE_INVALID, G_TYPE_STRING, &saved_gajim_status, G_TYPE_INVALID); } g_debug("Gajim: setting status %s", message); /* gajim-remote help says: status, message, account */ /* gajim/src/common/connection.py says: show, msg, auto=False */ result = dbus_g_proxy_call(proxy, "change_status", &error, G_TYPE_STRING, status, G_TYPE_STRING, message, G_TYPE_BOOLEAN, FALSE, G_TYPE_INVALID, G_TYPE_BOOLEAN, &change_status_result, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; retval = TRUE; cleanup: g_free(status); if (proxy != NULL) g_object_unref(proxy); return retval; } static gboolean gossip_set_status (const char *message) { g_return_val_if_fail(message != NULL, FALSE); DBusGProxy *proxy; GError *error = NULL; gboolean result; char **chats = NULL; char *state_str = NULL; char *status = NULL; const char *id; gboolean retval = FALSE; proxy = get_dbus_proxy("org.gnome.Gossip", "/org/gnome/Gossip", "org.gnome.Gossip"); if (proxy == NULL) goto cleanup; result = dbus_g_proxy_call(proxy, "GetOpenChats", &error, G_TYPE_INVALID, G_TYPE_STRV, &chats, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; id = *chats; result = dbus_g_proxy_call(proxy, "GetPresence", &error, G_TYPE_STRING, id, G_TYPE_INVALID, G_TYPE_STRING, &state_str, G_TYPE_STRING, &status, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; if (saved_gossip_status == NULL) { saved_gossip_status = status; status = NULL; } /* todo: abort if not online or chat? or dnd? */ g_debug("Gossip: setting status %s", message); result = dbus_g_proxy_call(proxy, "SetPresence", &error, G_TYPE_STRING, state_str, G_TYPE_STRING, message, G_TYPE_INVALID, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; retval = TRUE; cleanup: g_free(state_str); g_free(status); g_strfreev(chats); if (proxy != NULL) g_object_unref(proxy); return retval; } static gboolean pidgin_set_status (const char *message) { g_return_val_if_fail(message != NULL, FALSE); DBusGProxy *proxy; GError *error = NULL; gboolean result; unsigned int current; int status; gboolean retval = FALSE; proxy = get_dbus_proxy("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject", "im.pidgin.purple.PurpleInterface"); if (proxy == NULL) goto cleanup; result = dbus_g_proxy_call(proxy, "PurpleSavedstatusGetCurrent", &error, G_TYPE_INVALID, G_TYPE_INT, ¤t, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; result = dbus_g_proxy_call(proxy, "PurpleSavedstatusGetType", &error, G_TYPE_INT, current, G_TYPE_INVALID, G_TYPE_INT, &status, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; /* todo: abort if not online */ if (saved_pidgin_status == NULL) { dbus_g_proxy_call(proxy, "PurpleSavedstatusGetMessage", &error, G_TYPE_INT, current, G_TYPE_INVALID, G_TYPE_STRING, &saved_pidgin_status, G_TYPE_INVALID); } g_debug("Pidgin: setting status %s", message); result = dbus_g_proxy_call(proxy, "PurpleSavedstatusSetMessage", &error, G_TYPE_INT, current, G_TYPE_STRING, message, G_TYPE_INVALID, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; result = dbus_g_proxy_call(proxy, "PurpleSavedstatusActivate", &error, G_TYPE_INT, current, G_TYPE_INVALID, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; retval = TRUE; cleanup: if (proxy != NULL) g_object_unref(proxy); return retval; } static gboolean telepathy_set_status (const char *message) { g_return_val_if_fail(message != NULL, FALSE); DBusGProxy *proxy; GError *error = NULL; gboolean result; unsigned int presence; gboolean retval = FALSE; proxy = get_dbus_proxy("org.freedesktop.Telepathy.MissionControl", "/org/freedesktop/Telepathy/MissionControl", "org.freedesktop.Telepathy.MissionControl"); if (proxy == NULL) goto cleanup; result = dbus_g_proxy_call(proxy, "GetPresence", &error, G_TYPE_INVALID, G_TYPE_UINT, &presence, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; if (saved_telepathy_status == NULL) { dbus_g_proxy_call(proxy, "GetPresenceMessage", &error, G_TYPE_INVALID, G_TYPE_STRING, &saved_telepathy_status, G_TYPE_INVALID); } /* todo: abort if not online or chat? or dnd? */ g_debug("Telepathy: setting status %s", message); result = dbus_g_proxy_call(proxy, "SetPresence", &error, G_TYPE_UINT, presence, G_TYPE_STRING, message, G_TYPE_INVALID, G_TYPE_INVALID); if (error_happened(result, error)) goto cleanup; retval = TRUE; cleanup: if (proxy != NULL) g_object_unref(proxy); return retval; } static gboolean im_set_status_idle (gpointer data) { LastfmTrack *track = (LastfmTrack *) data; GString *msg; g_return_val_if_fail (data != NULL, FALSE); msg = g_string_sized_new (200); g_string_assign (msg, im_status_template->str); /* Modify the template */ string_replace_gstr(msg, "{artist}", track->artist); string_replace_gstr(msg, "{title}", track->title); string_replace_gstr(msg, "{station}", track->pls_title); string_replace_gstr(msg, "{version}", APP_VERSION); /* Set the status */ gdk_threads_enter(); if (im_pidgin) pidgin_set_status (msg->str); if (im_gajim) gajim_set_status (msg->str); if (im_gossip) gossip_set_status (msg->str); if (im_telepathy) telepathy_set_status (msg->str); gdk_threads_leave(); /* Cleanup */ g_string_free (msg, TRUE); vgl_object_unref (track); return FALSE; } static gboolean im_clear_status_idle (gpointer data) { gdk_threads_enter(); if (saved_pidgin_status != NULL) { if (pidgin_set_status(saved_pidgin_status)) { g_free(saved_pidgin_status); saved_pidgin_status = NULL; } } if (saved_gajim_status != NULL) { if (gajim_set_status(saved_gajim_status)) { g_free(saved_gajim_status); saved_gajim_status = NULL; } } if (saved_gossip_status != NULL) { if (gossip_set_status(saved_gossip_status)) { g_free(saved_gossip_status); saved_gossip_status = NULL; } } if (saved_telepathy_status != NULL) { if (telepathy_set_status(saved_telepathy_status)) { g_free(saved_telepathy_status); saved_telepathy_status = NULL; } } gdk_threads_leave(); return FALSE; } static void usercfg_changed_cb (VglController *ctrl, VglUserCfg *cfg) { if (im_pidgin != cfg->im_pidgin || im_telepathy != cfg->im_telepathy || im_gajim != cfg->im_gajim || im_gossip != cfg->im_gossip || !g_str_equal (im_status_template->str, cfg->imstatus_template)) { LastfmTrack *np = controller_get_current_track (); im_pidgin = cfg->im_pidgin; im_telepathy = cfg->im_telepathy; im_gajim = cfg->im_gajim; im_gossip = cfg->im_gossip; g_string_assign (im_status_template, cfg->imstatus_template); g_idle_add (im_clear_status_idle, NULL); if (np != NULL) { g_idle_add (im_set_status_idle, vgl_object_ref (np)); } } } static void player_stopped_cb (VglController *ctrl, gpointer data) { g_idle_add (im_clear_status_idle, NULL); } static void track_started_cb (VglController *ctrl, LastfmTrack *track, gpointer data) { g_idle_add (im_set_status_idle, vgl_object_ref (track)); } static void controller_destroyed_cb (gpointer data, GObject *controller) { g_string_free (im_status_template, TRUE); im_status_template = NULL; } void im_status_init (VglController *controller) { g_return_if_fail (VGL_IS_CONTROLLER (controller)); im_status_template = g_string_sized_new (80); g_signal_connect (controller, "usercfg-changed", G_CALLBACK (usercfg_changed_cb), NULL); g_signal_connect (controller, "player-stopped", G_CALLBACK (player_stopped_cb), NULL); g_signal_connect (controller, "track-started", G_CALLBACK (track_started_cb), NULL); g_object_weak_ref (G_OBJECT (controller), controller_destroyed_cb, NULL); } vagalume-0.8.6/src/lastfm-ws.h0000644000000000000000000001074412233552617013106 00000000000000/* * lastfm-ws.h -- Last.fm Web Services v2.0 * * Copyright (C) 2009, 2011, 2013 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef LASTFM_WS_H #define LASTFM_WS_H #include "playlist.h" #include "protocol.h" #include "vgl-server.h" #include G_BEGIN_DECLS typedef enum { LASTFM_OK, LASTFM_NOT_FOUND = 25, LASTFM_GEO_RESTRICTED = 28 } LastfmErrorCode; /* Opaque type that represents a Last.fm Web Services session */ typedef struct _LastfmWsSession LastfmWsSession; LastfmSession * lastfm_ws_session_get_v1_session (LastfmWsSession *session); char * lastfm_ws_get_auth_token (const VglServer *srv, char **auth_url); LastfmWsSession * lastfm_ws_get_session_from_token (VglServer *srv, const char *token); LastfmWsSession * lastfm_ws_get_session (VglServer *srv, const char *user, const char *pass, LastfmErr *err); LastfmErrorCode lastfm_ws_radio_tune (LastfmWsSession *session, const char *radio_url, const char *lang); LastfmPls * lastfm_ws_radio_get_playlist (const LastfmWsSession *session, gboolean discovery, gboolean low_bitrate, gboolean scrobbling); gboolean lastfm_ws_get_friends (const VglServer *srv, const char *user, GList **friendlist); gboolean lastfm_ws_get_user_tags (const VglServer *srv, const char *username, GList **taglist); gboolean lastfm_ws_get_user_track_tags (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, GList **taglist); gboolean lastfm_ws_get_track_tags (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, GList **taglist); gboolean lastfm_ws_add_tags (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, const char *tags); gboolean lastfm_ws_remove_tag (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, const char *tag); gboolean lastfm_ws_share_track (const LastfmWsSession *session, const LastfmTrack *track, const char *text, LastfmTrackComponent type, const char *rcpt); gboolean lastfm_ws_love_track (const LastfmWsSession *session, const LastfmTrack *track); gboolean lastfm_ws_ban_track (const LastfmWsSession *session, const LastfmTrack *track); gboolean lastfm_ws_tag_track (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, GSList *tags); gboolean lastfm_ws_add_to_playlist (const LastfmWsSession *session, const LastfmTrack *track); G_END_DECLS #endif /* LASTFM_WS_H */ vagalume-0.8.6/src/scrobbler.h0000644000000000000000000000104512233552617013140 00000000000000/* * scrobbler.h -- Audioscrobbler Realtime Submission Protocol * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef SCROBBLER_H #define SCROBBLER_H #include "controller.h" typedef enum { RSP_RATING_NONE, RSP_RATING_LOVE, RSP_RATING_BAN, RSP_RATING_SKIP } RspRating; void rsp_init (VglController *controller); #endif vagalume-0.8.6/src/vgl-bookmark-window.c0000644000000000000000000003740312233552617015065 00000000000000/* * vgl-bookmark-window.c -- Bookmark manager window * * Copyright (C) 2007-2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "vgl-bookmark-window.h" #include "vgl-bookmark-mgr.h" #include "controller.h" #include "uimisc.h" #include "compat.h" #include #include #ifdef MAEMO5 # include #endif enum { ID_COLUMN, NAME_COLUMN, URL_COLUMN, N_COLUMNS }; enum { BMK_ADDED, BMK_CHANGED, BMK_REMOVED, N_SIGNALS }; #define VGL_BOOKMARK_WINDOW_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), VGL_TYPE_BOOKMARK_WINDOW, \ VglBookmarkWindowPrivate)) G_DEFINE_TYPE (VglBookmarkWindow, vgl_bookmark_window, GTK_TYPE_DIALOG); struct _VglBookmarkWindowPrivate { GtkTreeView *treeview; VglBookmarkMgr *mgr; GtkWidget *playbtn, *addbtn, *editbtn, *delbtn, *closebtn; gulong sig[N_SIGNALS]; }; static void vgl_bookmark_window_close(VglBookmarkWindow *win); /* After a drag and drop, make sure that the bookmark manager keeps * the items in the same order as the treeview */ static void drag_end_cb (GtkWidget *widget, GdkDragContext *ctx, VglBookmarkWindow *win) { g_return_if_fail (VGL_IS_BOOKMARK_WINDOW (win)); GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model (win->priv->treeview); gboolean valid = gtk_tree_model_get_iter_first (model, &iter); int length = gtk_tree_model_iter_n_children (model, NULL); int *ids = g_new (int, length + 1); /* List of bookmark IDs */ int pos = 0; while (valid) { int val; gtk_tree_model_get (model, &iter, ID_COLUMN, &val, -1); ids [pos++] = val; valid = gtk_tree_model_iter_next (model, &iter); } ids [pos] = -1; /* Terminate the list */ vgl_bookmark_mgr_reorder (win->priv->mgr, ids); g_free (ids); } static gboolean find_bookmark_by_id (GtkTreeModel *model, int id, GtkTreeIter *iter) { gboolean valid = gtk_tree_model_get_iter_first(model, iter); while (valid) { int this_id; gtk_tree_model_get (model, iter, ID_COLUMN, &this_id, -1); if (this_id == id) { return TRUE; } valid = gtk_tree_model_iter_next(model, iter); } return FALSE; } static void bookmark_added_cb (VglBookmarkMgr *mgr, VglBookmark *bmk, VglBookmarkWindow *win) { g_return_if_fail(VGL_IS_BOOKMARK_WINDOW(win) && bmk != NULL); GtkTreeIter iter; GtkListStore *st; st = GTK_LIST_STORE (gtk_tree_view_get_model (win->priv->treeview)); gtk_list_store_append(st, &iter); gtk_list_store_set(st, &iter, ID_COLUMN, bmk->id, -1); gtk_list_store_set(st, &iter, NAME_COLUMN, bmk->name, -1); gtk_list_store_set(st, &iter, URL_COLUMN, bmk->url, -1); } static void bookmark_changed_cb (VglBookmarkMgr *mgr, VglBookmark *bmk, VglBookmarkWindow *win) { g_return_if_fail(VGL_IS_BOOKMARK_WINDOW(win) && bmk != NULL); GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model (win->priv->treeview); GtkListStore *st = GTK_LIST_STORE(model); if (find_bookmark_by_id(model, bmk->id, &iter)) { gtk_list_store_set(st, &iter, NAME_COLUMN, bmk->name, -1); gtk_list_store_set(st, &iter, URL_COLUMN, bmk->url, -1); } else { g_critical("%s: Bookmark with id %d not found in TreeModel", __FUNCTION__, bmk->id); } } static void bookmark_removed_cb (VglBookmarkMgr *mgr, int id, VglBookmarkWindow *win) { g_return_if_fail(VGL_IS_BOOKMARK_WINDOW(win) && id >= 0); GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model (win->priv->treeview); if (find_bookmark_by_id(model, id, &iter)) { gtk_list_store_remove(GTK_LIST_STORE(model), &iter); } else { g_critical("%s: Bookmark with id %d not found in TreeModel", __FUNCTION__, id); } } static void play_selected_row (VglBookmarkWindow *win) { GtkTreeSelection *sel; GtkTreeIter iter; GtkTreeModel *model; char *url = NULL; sel = gtk_tree_view_get_selection (win->priv->treeview); if (gtk_tree_selection_get_selected(sel, &model, &iter)) { gtk_tree_model_get (model, &iter, URL_COLUMN, &url, -1); } else { g_critical("Play button clicked with no item selected!"); } vgl_bookmark_window_close(win); if (url != NULL) { controller_play_radio_by_url(url); g_free(url); } } static void play_button_clicked (GtkWidget *widget, VglBookmarkWindow *win) { play_selected_row (win); } static void add_button_clicked (GtkWidget *widget, VglBookmarkWindow *win) { char *name = NULL, *url = NULL; if (ui_edit_bookmark_dialog(GTK_WINDOW(win), &name, &url, TRUE)) { vgl_bookmark_mgr_add_bookmark (win->priv->mgr, name, url); g_free(name); g_free(url); } } static void edit_button_clicked (GtkWidget *widget, VglBookmarkWindow *win) { GtkTreeSelection *sel; GtkTreeIter iter; GtkTreeModel *model; sel = gtk_tree_view_get_selection (win->priv->treeview); if (gtk_tree_selection_get_selected(sel, &model, &iter)) { int id; char *name, *url; gtk_tree_model_get (model, &iter, ID_COLUMN, &id, NAME_COLUMN, &name, URL_COLUMN, &url, -1); if (ui_edit_bookmark_dialog(GTK_WINDOW(win), &name, &url, FALSE)) { vgl_bookmark_mgr_change_bookmark (win->priv->mgr, id, name, url); } g_free(name); g_free(url); } else { g_critical("Edit button clicked with no item selected!"); } } static void delete_button_clicked (GtkWidget *widget, VglBookmarkWindow *win) { GtkTreeSelection *sel; GtkTreeIter iter; GtkTreeModel *model; sel = gtk_tree_view_get_selection (win->priv->treeview); if (gtk_tree_selection_get_selected(sel, &model, &iter)) { int id; gtk_tree_model_get (model, &iter, ID_COLUMN, &id, -1); vgl_bookmark_mgr_remove_bookmark (win->priv->mgr, id); } else { g_critical("Delete button clicked with no item selected!"); } } static void close_button_clicked (GtkWidget *widget, VglBookmarkWindow *win) { vgl_bookmark_window_close(win); } static void selection_changed (GtkTreeSelection *sel, VglBookmarkWindow *win) { gboolean selected; VglBookmarkWindowPrivate *priv = win->priv; selected = gtk_tree_selection_get_selected(sel, NULL, NULL); gtk_widget_set_sensitive(priv->playbtn, selected); gtk_widget_set_sensitive(priv->editbtn, selected); gtk_widget_set_sensitive(priv->delbtn, selected); } static void row_clicked (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, VglBookmarkWindow *win) { play_selected_row (win); } static void vgl_bookmark_window_finalize (GObject *object) { VglBookmarkWindow *win = VGL_BOOKMARK_WINDOW(object); VglBookmarkWindowPrivate *priv = win->priv; g_signal_handler_disconnect (priv->mgr, priv->sig[BMK_ADDED]); g_signal_handler_disconnect (priv->mgr, priv->sig[BMK_CHANGED]); g_signal_handler_disconnect (priv->mgr, priv->sig[BMK_REMOVED]); G_OBJECT_CLASS(vgl_bookmark_window_parent_class)->finalize(object); } static void vgl_bookmark_window_class_init (VglBookmarkWindowClass *klass) { GObjectClass *obj_class = (GObjectClass *)klass; obj_class->finalize = vgl_bookmark_window_finalize; g_type_class_add_private(obj_class, sizeof(VglBookmarkWindowPrivate)); } static void vgl_bookmark_window_init (VglBookmarkWindow *self) { GtkWidget *scrwindow; GtkBox *vbox, *action_area; GtkCellRenderer *render; GtkTreeViewColumn *col; GtkTreeSelection *sel; GtkListStore *store; const GList *bookmarks; VglBookmarkWindowPrivate *priv = VGL_BOOKMARK_WINDOW_GET_PRIVATE(self); self->priv = priv; /* Create widgets and private data */ store = gtk_list_store_new(N_COLUMNS, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING); #ifdef MAEMO5 scrwindow = hildon_pannable_area_new (); #else scrwindow = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrwindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); #endif /* MAEMO5 */ priv->treeview = GTK_TREE_VIEW(gtk_tree_view_new()); priv->playbtn = gtk_button_new_from_stock(GTK_STOCK_MEDIA_PLAY); priv->addbtn = gtk_button_new_from_stock(GTK_STOCK_ADD); priv->editbtn = gtk_button_new_from_stock(GTK_STOCK_EDIT); priv->delbtn = gtk_button_new_from_stock(GTK_STOCK_DELETE); priv->closebtn = gtk_button_new_from_stock(GTK_STOCK_CLOSE); priv->mgr = vgl_bookmark_mgr_get_instance(); render = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes("Bookmark", render, "text", NAME_COLUMN, NULL); sel = gtk_tree_view_get_selection(priv->treeview); /* Configure widgets */ gtk_window_set_title(GTK_WINDOW(self), _("Bookmarks")); gtk_window_set_modal(GTK_WINDOW(self), TRUE); gtk_window_set_destroy_with_parent(GTK_WINDOW(self), TRUE); gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE); gtk_tree_view_set_model(priv->treeview, GTK_TREE_MODEL(store)); g_object_unref(store); gtk_tree_view_set_headers_visible(priv->treeview, FALSE); gtk_tree_view_append_column(priv->treeview, col); gtk_tree_view_set_reorderable(priv->treeview, TRUE); gtk_tree_view_set_search_column(priv->treeview, NAME_COLUMN); /* Signals */ g_signal_connect(priv->playbtn, "clicked", G_CALLBACK(play_button_clicked), self); g_signal_connect(priv->treeview, "row-activated", G_CALLBACK(row_clicked), self); g_signal_connect(priv->treeview, "drag-end", G_CALLBACK(drag_end_cb), self); g_signal_connect(priv->addbtn, "clicked", G_CALLBACK(add_button_clicked), self); g_signal_connect(priv->editbtn, "clicked", G_CALLBACK(edit_button_clicked), self); g_signal_connect(priv->delbtn, "clicked", G_CALLBACK(delete_button_clicked), self); g_signal_connect(priv->closebtn, "clicked", G_CALLBACK(close_button_clicked), self); g_signal_connect(sel, "changed", G_CALLBACK(selection_changed), self); g_signal_connect(self, "delete-event", G_CALLBACK(vgl_bookmark_window_close), self); priv->sig[BMK_ADDED] = g_signal_connect ( priv->mgr, "bookmark-added", G_CALLBACK (bookmark_added_cb), self); priv->sig[BMK_CHANGED] = g_signal_connect ( priv->mgr, "bookmark-changed", G_CALLBACK (bookmark_changed_cb), self); priv->sig[BMK_REMOVED] = g_signal_connect ( priv->mgr, "bookmark-removed", G_CALLBACK (bookmark_removed_cb), self); /* Set initial state of buttons */ selection_changed(sel, self); /* Load all existing bookmarks */ bookmarks = vgl_bookmark_mgr_get_bookmark_list(priv->mgr); while (bookmarks != NULL) { VglBookmark *bmk = (VglBookmark *) bookmarks->data; bookmark_added_cb(priv->mgr, bmk, self); bookmarks = bookmarks->next; } /* Add widgets to window */ vbox = GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))); action_area = GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (self))); gtk_container_add(GTK_CONTAINER(scrwindow), GTK_WIDGET(priv->treeview)); gtk_box_pack_start(vbox, scrwindow, TRUE, TRUE, 0); gtk_box_pack_start(action_area, priv->playbtn, FALSE, FALSE, 0); gtk_box_pack_start(action_area, priv->addbtn, FALSE, FALSE, 0); gtk_box_pack_start(action_area, priv->editbtn, FALSE, FALSE, 0); gtk_box_pack_start(action_area, priv->delbtn, FALSE, FALSE, 0); gtk_box_pack_start(action_area, priv->closebtn, FALSE, FALSE, 0); #ifdef MAEMO5 hildon_gtk_tree_view_set_ui_mode (priv->treeview, HILDON_UI_MODE_EDIT); hildon_gtk_widget_set_theme_size (priv->playbtn, FINGER_SIZE); hildon_gtk_widget_set_theme_size (priv->addbtn, FINGER_SIZE); hildon_gtk_widget_set_theme_size (priv->editbtn, FINGER_SIZE); hildon_gtk_widget_set_theme_size (priv->delbtn, FINGER_SIZE); gtk_widget_set_no_show_all (priv->closebtn, TRUE); #endif /* MAEMO5 */ gtk_widget_show_all(gtk_bin_get_child(GTK_BIN(self))); } static GtkWidget * vgl_bookmark_window_new (GtkWindow *parent) { GtkWidget *win = g_object_new (VGL_TYPE_BOOKMARK_WINDOW, "default-height", 300, NULL); if (parent) { gtk_window_set_transient_for(GTK_WINDOW(win), parent); } return win; } static void vgl_bookmark_window_close (VglBookmarkWindow *win) { vgl_bookmark_mgr_save_to_disk (win->priv->mgr, FALSE); gtk_widget_destroy(GTK_WIDGET(win)); } void vgl_bookmark_window_show (GtkWindow *parent) { /* Singleton, only one bookmark window can exist */ static GtkWidget *win = NULL; if (win == NULL) { win = vgl_bookmark_window_new (parent); g_object_add_weak_pointer (G_OBJECT (win), (gpointer) &win); } gtk_window_present (GTK_WINDOW (win)); } vagalume-0.8.6/src/util.c0000644000000000000000000004257512233552617012150 00000000000000/* * util.c -- Misc util functions * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "util.h" #include "http.h" #ifndef HAVE_GCHECKSUM # include "md5/md5.h" #endif #include #include #include /** * Computes the MD5 hash of a NULL-terminated string * @param str The string * @return The MD5 hash, in hexadecimal */ char * get_md5_hash (const char *str) { g_return_val_if_fail(str != NULL, NULL); #ifdef HAVE_GCHECKSUM return g_compute_checksum_for_string(G_CHECKSUM_MD5, str, -1); #else const int digestlen = 16; unsigned char digest[digestlen]; guint i; md5_state_t state; md5_init(&state); md5_append(&state, (const md5_byte_t *)str, strlen(str)); md5_finish(&state, digest); char *hexdigest = g_malloc(digestlen*2 + 1); for (i = 0; i < digestlen; i++) { sprintf(hexdigest + 2*i, "%02x", digest[i]); } return hexdigest; #endif /* HAVE_GCHECKSUM */ } /** * Computes the authentication token used in some last.fm services * Consists on MD5 ( MD5 ( password) + timestamp ) * @param password The password, cleartext * @param timestamp The timestamp * @return The auth token */ char * compute_auth_token (const char *password, const char *timestamp) { g_return_val_if_fail(password && timestamp, NULL); char *md5password = get_md5_hash(password); char *tmp = g_strconcat(md5password, timestamp, NULL); char *retval = get_md5_hash(tmp); g_free(md5password); g_free(tmp); return retval; } /** * Joins all the strings (char *) in a GList using an optional * separator between them * @param list The GList * @param separator The separator * @return A newly allocated string */ char * str_glist_join (const GList *list, const char *separator) { if (list == NULL) return g_strdup(""); const GList *iter = list; GString *str = g_string_sized_new(100); for (; iter != NULL; iter = iter->next) { str = g_string_append(str, (char *) iter->data); if (iter->next != NULL && separator != NULL) { str = g_string_append(str, separator); } } return g_string_free(str, FALSE); } /** * Checks whether a file exists * @param filename Full path to the file * @return TRUE if it exists, FALSE otherwise */ gboolean file_exists (const char *filename) { g_return_val_if_fail(filename, FALSE); return !access(filename, F_OK); } /** * Replaces all occurrences of a text within a string (GString) * @param str The string to be modified * @param old The original text * @param new The new text */ void string_replace_gstr (GString *str, const char *old, const char *new) { g_return_if_fail(str && old && new); int oldlen = strlen(old); int newlen = strlen(new); const char *cur = str->str; while ((cur = strstr(cur, old)) != NULL) { int position = cur - str->str; g_string_erase(str, position, oldlen); g_string_insert(str, position, new); cur = str->str + position + newlen; } } /** * Replaces all occurrences of a text within a string (char *) * @param str The original string * @param old The original text * @param new The new text * @return A newly-created string */ char * string_replace (const char *str, const char *old, const char *new) { g_return_val_if_fail(str && old && new, NULL); GString *gstr = g_string_new(str); string_replace_gstr(gstr, old, new); return g_string_free(gstr, FALSE); } /** * Replaces all occurences of a char within a string (char *) * @param str The string to be modified * @param old The original char * @param new The new char **/ static void string_replace_char (char *str, char old, char new) { char *i; g_return_if_fail (str != NULL); for (i = str; *i != '\0'; i++) { if (*i == old) { *i = new; } } } /** * Creates a GdkPixbuf from a image in any supported format * @param data The original image in memory, or NULL * @param size The size of the buffer containing the original image * @param imgsize The resulting pixbuf will be imgsize x imgsize pixels * @return The GdkPixbuf, or NULL */ GdkPixbuf * get_pixbuf_from_image (const char *data, size_t size, int imgsize) { g_return_val_if_fail(imgsize > 0, NULL); GdkPixbufLoader *ldr = NULL; GdkPixbuf *pixbuf = NULL; if (data != NULL) { g_return_val_if_fail(size > 0, NULL); GError *err = NULL; ldr = gdk_pixbuf_loader_new(); gdk_pixbuf_loader_set_size(ldr, imgsize, imgsize); gdk_pixbuf_loader_write(ldr, (guchar *) data, size, NULL); gdk_pixbuf_loader_close(ldr, &err); if (err != NULL) { g_warning("Error loading image: %s", err->message ? err->message : "unknown"); g_error_free(err); } else { pixbuf = gdk_pixbuf_loader_get_pixbuf(ldr); g_object_ref(pixbuf); } } if (ldr != NULL) g_object_unref(G_OBJECT(ldr)); return pixbuf; } /** * Gets the home directory * @return The HOME directory, or NULL if not found */ const char * get_home_directory (void) { const char *homedir = g_getenv ("HOME"); if (homedir == NULL) { homedir = g_get_home_dir (); } if (homedir == NULL) { g_warning ("Unable to get home directory"); } return homedir; } /** * Get the 2-letter language code from the currently active language * @return The language code, or "en" if it is unset. This string is * static and must not be modified */ const char * get_language_code (void) { static char lang[3] = ""; if (lang[0] == '\0') { const char *env = g_getenv("LANGUAGE"); if (!env) env = g_getenv("LC_MESSAGES"); if (!env) env = g_getenv("LC_ALL"); if (!env) env = g_getenv("LANG"); if (env != NULL && strlen(env) > 1) { strncpy(lang, env, 2); lang[2] = '\0'; } else { strncpy(lang, "en", 3); } } return lang; } /** * Obfuscates an ASCII string. All characters between 33 and 126 will * be modified. The string will be modified in place. Calling this * function twice will return the original string. * @param str The string to be obfuscated. It will be modified in place * @return The same string, for convenience */ char * obfuscate_string (char *str) { guchar *ptr; g_return_val_if_fail (str != NULL, NULL); for (ptr = (guchar *) str; *ptr != '\0'; ptr++) { if (*ptr >= 33 && *ptr < 127) { int offset = *ptr - 33; offset = (offset + ((127 - 33) / 2)) % (127 - 33); *ptr = (guchar) (33 + offset); } } return str; } /** * Decodes a string stored in the encoding used by Last.fm in URLs: * spaces are replaced by '+', and some chars such as the ampersand * are encoded twice * @param str The original string * @return The decoded string in a newly-allocated buffer */ char * lastfm_url_decode (const char *str) { char *tmp; GString *gstr; g_return_val_if_fail (str != NULL, NULL); tmp = escape_url (str, FALSE); gstr = g_string_new (tmp); g_free (tmp); string_replace_gstr (gstr, "&", "&"); string_replace_gstr (gstr, "%26", "&"); string_replace_char (gstr->str, '+', ' '); return g_string_free (gstr, FALSE); } /** * Encodes a string with the encoding used by Last.fm in URLs: spaces * are replaced by '+', and some chars such as the ampersand are * encoded twice * @param str The original string * @return The encoded string in a newly-allocated buffer */ char * lastfm_url_encode (const char *str) { char *retvalue; GString *gstr; g_return_val_if_fail (str != NULL, NULL); gstr = g_string_new (str); string_replace_char (gstr->str, ' ', '+'); string_replace_gstr (gstr, "&", "%26"); retvalue = escape_url (gstr->str, TRUE); g_string_free (gstr, TRUE); return retvalue; } /** * Launch an URL using GIO library. * This function is available only if Vagalume has been compiled with * GIO support. * @param url The URL to show */ #ifdef HAVE_GIO void launch_url (const char *url, GAppLaunchContext *context) { GError *error = NULL; /* FIXME: check for gtk 2.14 and use GdkAppLaunchContext */ if (!context) context = g_app_launch_context_new(); else g_object_ref(context); if (!g_app_info_launch_default_for_uri (url, context, &error)) g_warning ("Launching failed: %s\n", error->message); g_object_unref(context); } #endif /** * Add a child element to an XML node consisting on a string. * @param parent Parent XML node * @param name Name of the child node to be created * @param value Value of the child node */ void xml_add_string (xmlNode *parent, const char *name, const char *value) { xmlNode *node; xmlChar *enc; g_return_if_fail (parent && name && value); node = xmlNewNode (NULL, (xmlChar *) name); enc = xmlEncodeEntitiesReentrant (NULL, (xmlChar *) value); xmlNodeSetContent (node, enc); xmlFree (enc); xmlAddChild (parent, node); } /** * Add a child element to an XML node consisting on a boolean. * @param parent Parent XML node * @param name Name of the child node to be created * @param value Value of the child node */ void xml_add_bool (xmlNode *parent, const char *name, gboolean value) { xml_add_string (parent, name, value ? "1" : "0"); } /** * Add a child element to an XML node consisting on a long int. * @param parent Parent XML node * @param name Name of the child node to be created * @param value Value of the child node */ void xml_add_glong (xmlNode *parent, const char *name, glong value) { const int maxlen = sizeof (glong) * 3; /* Enough to store a glong */ char strvalue[maxlen]; g_snprintf (strvalue, maxlen, "%ld", value); xml_add_string (parent, name, strvalue); } /** * Find an XML node in a list by its name * @param node The first node on the list to search * @param name Name of the node to find * @return The node, or NULL if it was not found */ const xmlNode * xml_find_node (const xmlNode *node, const char *name) { const xmlNode *iter; g_return_val_if_fail (name != NULL, NULL); for (iter = node; iter != NULL; iter = iter->next) { if (xmlStrEqual (iter->name, (xmlChar *) name)) { return iter; } } return NULL; } /** * Find an XML node in a list and get its value as a string. * @param doc The xmlDoc * @param node The first node on the list to search * @param name The name of the node to find * @param value A pointer to a string for the return value (or NULL if * no value is found) * @return The node, or NULL if it was not found. */ const xmlNode * xml_get_string (xmlDoc *doc, const xmlNode *node, const char *name, char **value) { g_return_val_if_fail (doc && name && value, NULL); node = xml_find_node (node, name); if (node) { xmlChar *val; val = xmlNodeListGetString (doc, node->xmlChildrenNode, 1); if (val != NULL) { *value = g_strstrip (g_strdup ((char *) val)); xmlFree (val); } else { *value = g_strdup (""); } } else { *value = NULL; } return node; } /** * Find an XML node in a list and get its value as a boolean. * @param doc The xmlDoc * @param node The first node on the list to search * @param name The name of the node to find * @param value A pointer to a boolean for the return value. * @return The node, or NULL if it was not found. */ const xmlNode * xml_get_bool (xmlDoc *doc, const xmlNode *node, const char *name, gboolean *value) { const xmlNode *position; char *strval; g_return_val_if_fail (doc && name && value, NULL); position = xml_get_string (doc, node, name, &strval); *value = strval ? g_str_equal (strval, "1") : FALSE; g_free (strval); return position; } /** * Find an XML node in a list and get its value as a glong. * @param doc The xmlDoc * @param node The first node on the list to search * @param name The name of the node to find * @param value A pointer to a glong for the return value. * @return The node, or NULL if it was not found. */ const xmlNode * xml_get_glong (xmlDoc *doc, const xmlNode *node, const char *name, glong *value) { const xmlNode *position; char *strval = NULL; g_return_val_if_fail (doc && name && value, NULL); position = xml_get_string (doc, node, name, &strval); *value = strval ? atol (strval) : -1; g_free (strval); return position; } /** * Download the album cover of a track, and store it in the track * object. This function can take a long time so better use threads or * make sure it won't block anything important. The cover of the same * track won't be downloaded twice, not even if you call this function * while other thread is downloading it. * @param track The track */ void lastfm_get_track_cover_image (LastfmTrack *track) { g_return_if_fail(track != NULL); static GStaticMutex static_mutex = G_STATIC_MUTEX_INIT; static GList *dloads_in_progress = NULL; static GCond *cond = NULL; GMutex *mutex = g_static_mutex_get_mutex (&static_mutex); /* If this track has no cover image then we have nothing to do */ if (track->image_url == NULL) return; /* Critical section: decide if the cover needs to be downloaded */ g_mutex_lock(mutex); if (G_UNLIKELY (cond == NULL)) { cond = g_cond_new(); } if (!track->image_data_available) { if (g_list_find(dloads_in_progress, track) != NULL) { /* If the track is being downloaded, then wait */ while (!track->image_data_available) { g_cond_wait(cond, mutex); } } else { /* Otherwise, mark the track as being downloaded */ dloads_in_progress = g_list_prepend(dloads_in_progress, track); } } g_mutex_unlock(mutex); if (!track->image_data_available) { char *imgdata; size_t imgsize; /* Download the cover and save it on the track */ http_get_buffer(track->image_url, &imgdata, &imgsize); lastfm_track_set_cover_image(track, imgdata, imgsize); /* Remove from the download list and tell everyone */ g_mutex_lock(mutex); dloads_in_progress = g_list_remove(dloads_in_progress, track); g_cond_broadcast(cond); g_mutex_unlock(mutex); } } vagalume-0.8.6/src/xmlrpc.h0000644000000000000000000000257712233552617012503 00000000000000/* * xmlrpc.h -- Legacy XMLRPC-based functions to tag artists, tracks, * albums, loves and hates * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef XMLRPC_H #define XMLRPC_H #include #include "playlist.h" gboolean tag_track (const char *user, const char *password, const LastfmTrack *track, LastfmTrackComponent type, GSList *tags); gboolean recommend_track (const char *user, const char *password, const LastfmTrack *track, const char *text, LastfmTrackComponent type, const char *rcpt); gboolean add_to_playlist (const char *user, const char *password, const LastfmTrack *track); #endif vagalume-0.8.6/src/dbus.h0000644000000000000000000000510412233552617012120 00000000000000/* * dbus.h -- D-BUS interface * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Mario Sanchez Prada * Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VAGALUME_DBUS_H #define VAGALUME_DBUS_H #include "globaldefs.h" #include "playlist.h" #include "controller.h" #define APP_DBUS_SERVICE "com.igalia." APP_NAME_LC #define APP_DBUS_OBJECT "/com/igalia/" APP_NAME_LC #define APP_DBUS_IFACE APP_DBUS_SERVICE /* D-Bus methods */ #define APP_DBUS_METHOD_PLAYURL "PlayUrl" #define APP_DBUS_METHOD_PLAY "Play" #define APP_DBUS_METHOD_STOP "Stop" #define APP_DBUS_METHOD_SKIP "Skip" #define APP_DBUS_METHOD_LOVETRACK "LoveTrack" #define APP_DBUS_METHOD_BANTRACK "BanTrack" #define APP_DBUS_METHOD_SHOWWINDOW "ShowWindow" #define APP_DBUS_METHOD_HIDEWINDOW "HideWindow" #define APP_DBUS_METHOD_CLOSEAPP "CloseApp" #define APP_DBUS_METHOD_VOLUMEUP "VolumeUp" #define APP_DBUS_METHOD_VOLUMEDOWN "VolumeDown" #define APP_DBUS_METHOD_SETVOLUME "SetVolume" #define APP_DBUS_METHOD_TOPAPP "top_application" #define APP_DBUS_METHOD_REQUEST_STATUS "request_status" /* D-Bus signals */ #define APP_DBUS_SIGNAL_NOTIFY "notify" #define APP_DBUS_SIGNAL_NOTIFY_PLAYING "playing" #define APP_DBUS_SIGNAL_NOTIFY_STOPPED "stopped" #define APP_DBUS_SIGNAL_NOTIFY_STARTED "started" #define APP_DBUS_SIGNAL_NOTIFY_CLOSING "closing" #ifdef HAVE_GSD_MEDIA_PLAYER_KEYS /* Gnome Settings Daemon - Media Player Keys D-Bus interface */ #define GSD_DBUS_SERVICE "org.gnome.SettingsDaemon" #define GSD_DBUS_MK_OBJECT "/org/gnome/SettingsDaemon/MediaKeys" #define GSD_DBUS_MK_IFACE GSD_DBUS_SERVICE ".MediaKeys" #define GSD_DBUS_MK_GRAB_KEYS "GrabMediaPlayerKeys" #define GSD_DBUS_MK_RELEASE_KEYS "ReleaseMediaPlayerKeys" #define GSD_DBUS_MK_KEYPRESSED "MediaPlayerKeyPressed" #define GSD_DBUS_MK_KEYPRESSED_STOP "Stop" #define GSD_DBUS_MK_KEYPRESSED_PLAY "Play" #define GSD_DBUS_MK_KEYPRESSED_PREVIOUS "Previous" #define GSD_DBUS_MK_KEYPRESSED_NEXT "Next" #endif /* HAVE_GSD_MEDIA_PLAYER_KEYS */ typedef enum { DBUS_INIT_OK, DBUS_INIT_ERROR, DBUS_INIT_ALREADY_RUNNING } DbusInitReturnCode; DbusInitReturnCode lastfm_dbus_init (VglController *controller); void lastfm_dbus_close (void); void lastfm_dbus_notify_playback (LastfmTrack *track); void lastfm_dbus_notify_started (void); void lastfm_dbus_notify_closing (void); void lastfm_dbus_play_radio_url (const char *url); #endif vagalume-0.8.6/src/vgl-main-window.h0000644000000000000000000001022612233552617014203 00000000000000/* * vgl-main-window.h -- Main program window * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef VGL_MAIN_WINDOW_H #define VGL_MAIN_WINDOW_H #include "globaldefs.h" #include "playlist.h" #include #if defined(HILDON_LIBS) # include #elif defined(HILDON_1) # include #endif G_BEGIN_DECLS #define VGL_TYPE_MAIN_WINDOW \ (vgl_main_window_get_type()) #define VGL_MAIN_WINDOW(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ VGL_TYPE_MAIN_WINDOW, \ VglMainWindow)) #define VGL_MAIN_WINDOW_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST ((klass), \ VGL_TYPE_MAIN_WINDOW, \ VglMainWindowClass)) #define VGL_IS_MAIN_WINDOW(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ VGL_TYPE_MAIN_WINDOW)) #define VGL_IS_MAIN_WINDOW_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), \ VGL_TYPE_MAIN_WINDOW)) #define VGL_MAIN_WINDOW_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), \ VGL_TYPE_MAIN_WINDOW, \ VglMainWindowClass)) #ifndef __TYPEDEF_VGL_CONTROLLER__ #define __TYPEDEF_VGL_CONTROLLER__ typedef struct _VglController VglController; #endif typedef struct _VglMainWindow VglMainWindow; typedef struct _VglMainWindowClass VglMainWindowClass; typedef struct _VglMainWindowPrivate VglMainWindowPrivate; struct _VglMainWindowClass { #ifdef USE_HILDON_WINDOW HildonWindowClass parent_class; #else GtkWindowClass parent_class; #endif }; struct _VglMainWindow { #ifdef USE_HILDON_WINDOW HildonWindow parent; #else GtkWindow parent; #endif VglMainWindowPrivate *priv; }; /* UI state */ typedef enum { VGL_MAIN_WINDOW_STATE_DISCONNECTED, VGL_MAIN_WINDOW_STATE_STOPPED, VGL_MAIN_WINDOW_STATE_PLAYING, VGL_MAIN_WINDOW_STATE_CONNECTING } VglMainWindowState; GType vgl_main_window_get_type (void) G_GNUC_CONST; GtkWidget * vgl_main_window_new (VglController *controller); void vgl_main_window_destroy (VglMainWindow *w); void vgl_main_window_show (VglMainWindow *w, gboolean show); void vgl_main_window_toggle_visibility (VglMainWindow *w); void vgl_main_window_set_state (VglMainWindow *w, VglMainWindowState s, const LastfmTrack *t, const char *radio_url); void vgl_main_window_show_status_msg (VglMainWindow *w, const char *text); void vgl_main_window_set_album_cover (VglMainWindow *w, const char *data, int size); void vgl_main_window_set_track_as_loved (VglMainWindow *w); void vgl_main_window_set_track_as_added_to_playlist (VglMainWindow *w, gboolean added); void vgl_main_window_run_app (void); GtkWindow * vgl_main_window_get_window (VglMainWindow *w, gboolean get_if_hidden); gboolean vgl_main_window_is_hidden (VglMainWindow *w); G_END_DECLS #endif /* VGL_MAIN_WINDOW_H */ vagalume-0.8.6/src/radio.h0000644000000000000000000000212312233552617012257 00000000000000/* * radio.h -- Functions to build radio URLs * * Copyright (C) 2007-2008, 2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef RADIO_H #define RADIO_H typedef enum { LASTFM_GLOBALTAG_RADIO = 0, LASTFM_GROUP_RADIO, LASTFM_LOVEDTRACKS_RADIO, LASTFM_MIX_RADIO, LASTFM_NEIGHBOURS_RADIO, LASTFM_LIBRARY_RADIO, LASTFM_SIMILAR_ARTIST_RADIO, LASTFM_RECOMMENDED_RADIO, LASTFM_USERPLAYLIST_RADIO, LASTFM_USERTAG_RADIO } LastfmRadio; char * lastfm_radio_url (LastfmRadio type, const char *data); char * lastfm_recommended_radio_url (const char *user, int value); char * lastfm_usertag_radio_url (const char *user, const char *tag); gboolean lastfm_radio_url_is_custom (const char *url); #endif vagalume-0.8.6/src/marshal.list0000644000000000000000000000001712233552617013334 00000000000000VOID:UINT,UINT vagalume-0.8.6/src/vgl-main-menu.h0000644000000000000000000000374712233552617013652 00000000000000/* * vgl-main-menu.h -- Main menu * * Copyright (C) 2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef VGL_MAIN_MENU_H #define VGL_MAIN_MENU_H #include "vgl-main-window.h" #include G_BEGIN_DECLS #define VGL_TYPE_MAIN_MENU (vgl_main_menu_get_type()) #define VGL_MAIN_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ VGL_TYPE_MAIN_MENU, VglMainMenu)) #define VGL_MAIN_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \ VGL_TYPE_MAIN_MENU, VglMainMenuClass)) #define VGL_IS_MAIN_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ VGL_TYPE_MAIN_MENU)) #define VGL_IS_MAIN_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ VGL_TYPE_MAIN_MENU)) #define VGL_MAIN_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ VGL_TYPE_MAIN_MENU, VglMainMenuClass)) typedef struct _VglMainMenu VglMainMenu; typedef struct _VglMainMenuClass VglMainMenuClass; GType vgl_main_menu_get_type (void) G_GNUC_CONST; VglMainMenu * vgl_main_menu_new (GtkAccelGroup *accel); void vgl_main_menu_set_track_as_loved (VglMainMenu *menu); void vgl_main_menu_set_track_as_added_to_playlist (VglMainMenu *menu, gboolean added); void vgl_main_menu_set_state (VglMainMenu *menu, VglMainWindowState state, const LastfmTrack *t, const char *radio_url); G_END_DECLS #endif /* VGL_MAIN_MENU_H */ vagalume-0.8.6/src/connection.c0000644000000000000000000000673412233552617013327 00000000000000/* * connection.c -- Internet connection handling * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include #include "connection.h" #include "controller.h" #include #include static ConIcConnection *con_ic_connection = NULL; static gboolean is_online = FALSE; /* * Data passed to the ConIc signal handler when the user tries to * go online */ typedef struct { connection_go_online_cb cb; gpointer cbdata; } connection_go_online_handler_data; /** * Handler called each time the device goes online or offline. This * will update the is_online variable and disconnect the player if * needed */ static void con_ic_status_handler (ConIcConnection *conn, ConIcConnectionEvent *event, gpointer data) { ConIcConnectionStatus status; status = con_ic_connection_event_get_status(event); is_online = (status == CON_IC_STATUS_CONNECTED); if (!is_online) { gdk_threads_enter(); controller_disconnect(); gdk_threads_leave(); } } /** * This function initializes the connection manager * @return An error message, or NULL if everything went OK */ const char * connection_init (void) { con_ic_connection = con_ic_connection_new(); if (con_ic_connection == NULL) { return _("Error initializing internet connection manager"); } g_signal_connect (con_ic_connection, "connection-event", G_CALLBACK (con_ic_status_handler), NULL); return NULL; } /** * Handler called after the user tries to connect the device. * This handler will be removed here so it won't be called again * @param conn The connection * @param event The connection event * @param userdata The callback to call from here */ static void connection_go_online_handler (ConIcConnection *conn, ConIcConnectionEvent *event, gpointer userdata) { connection_go_online_handler_data *data; gulong id; data = (connection_go_online_handler_data *) userdata; id = g_signal_handler_find(conn, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, data); g_signal_handler_disconnect(conn, id); (*(data->cb))(data->cbdata); g_slice_free(connection_go_online_handler_data, data); } /** * Connects the device if it's disconnected and then call the callback * @param cb The callback * @param cbdata The callback's data */ void connection_go_online (connection_go_online_cb cb, gpointer cbdata) { if (is_online) { (*cb)(cbdata); return; } connection_go_online_handler_data *data; data = g_slice_new(connection_go_online_handler_data); data->cb = cb; data->cbdata = cbdata; g_signal_connect(con_ic_connection, "connection-event", G_CALLBACK(connection_go_online_handler), data); con_ic_connection_connect(con_ic_connection, CON_IC_CONNECT_FLAG_NONE); } vagalume-0.8.6/src/vgl-tray-icon.h0000644000000000000000000000302712233552617013660 00000000000000/* * vgl-tray-icon.h -- Freedesktop tray icon * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Mario Sanchez Prada * Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #ifndef _VGL_TRAY_ICON_H #define _VGL_TRAY_ICON_H #include #include "playlist.h" #include "controller.h" G_BEGIN_DECLS #define VGL_TRAY_ICON_TYPE (vgl_tray_icon_get_type()) #define VGL_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, VGL_TRAY_ICON_TYPE, VglTrayIcon)) #define VGL_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST(klass, VGL_TRAY_ICON_TYPE, VglTrayIconClass)) #define VGL_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, VGL_TRAY_ICON_TYPE)) #define VGL_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), VGL_TRAY_ICON_TYPE)) #define VGL_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VGL_TRAY_ICON_TYPE, VglTrayIconClass)) typedef struct _VglTrayIcon VglTrayIcon; typedef struct _VglTrayIconClass VglTrayIconClass; typedef struct _VglTrayIconPrivate VglTrayIconPrivate; struct _VglTrayIcon { GObject parent_instance; VglTrayIconPrivate *priv; }; struct _VglTrayIconClass { GObjectClass parent_class; }; GType vgl_tray_icon_get_type (void) G_GNUC_CONST; /* Public methods */ VglTrayIcon * vgl_tray_icon_create (VglController *controller); G_END_DECLS #endif /* _VGL_TRAY_ICON_H */ vagalume-0.8.6/src/vgl-server.h0000644000000000000000000000213112233552617013254 00000000000000/* * vgl-server.h -- Server data * * Copyright (C) 2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VGL_SERVER_H #define VGL_SERVER_H #include "vgl-object.h" G_BEGIN_DECLS typedef struct { VglObject parent; const char *name; const char *orig_ws_url; const char *orig_rsp_url; const char *ws_base_url; const char *rsp_base_url; const char *old_hs_url; const char *api_key; const char *api_secret; gboolean old_str_api; gboolean free_streams; } VglServer; gboolean vgl_server_list_init (void); void vgl_server_list_finalize (void); gboolean vgl_server_import_file (const char *filename); const GList * vgl_server_list_get (void); VglServer * vgl_server_list_find_by_name (const char *name); VglServer * vgl_server_get_default (void); G_END_DECLS #endif /* VGL_SERVER_H */ vagalume-0.8.6/src/lastfm-ws.c0000644000000000000000000010745712233552617013111 00000000000000/* * lastfm-ws.c -- Last.fm Web Services v2.0 * * Copyright (C) 2009-2011, 2013 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "lastfm-ws.h" #include "http.h" #include "radio.h" #include "util.h" #include "xmlrpc.h" #include #include /* Uncomment this to use the new album.getInfo() web service to obtain * album tags. Note that it gives less results than the old method */ /* #define VGL_USE_NEW_ALBUM_TAGS_API 1 */ typedef enum { HTTP_REQUEST_GET, HTTP_REQUEST_POST } HttpRequestType; struct _LastfmWsSession { VglObject parent; char *username; char *password; char *key; char *radio_name; VglServer *srv; gboolean subscriber; LastfmSession *v1sess; GMutex *mutex; }; /* Name/value pairs for URL parameters */ typedef struct { char *name; char *value; } LastfmWsParameter; static LastfmWsParameter * lastfm_ws_parameter_new (const char *name, const char *value) { LastfmWsParameter *p = g_slice_new (LastfmWsParameter); p->name = g_strdup (name); p->value = g_strdup (value); return p; } static int lastfm_ws_parameter_compare (const LastfmWsParameter *a, const LastfmWsParameter *b) { return strcmp (a->name, b->name); } static void lastfm_ws_parameter_destroy (LastfmWsParameter *param) { g_free (param->name); g_free (param->value); g_slice_free (LastfmWsParameter, param); } static void lastfm_ws_session_destroy (LastfmWsSession *session) { g_free (session->username); g_free (session->password); g_free (session->key); vgl_object_unref (session->srv); g_free (session->radio_name); g_mutex_free (session->mutex); if (session->v1sess) { lastfm_session_destroy (session->v1sess); } } static LastfmWsSession * lastfm_ws_session_new (const char *username, const char *password, const char *key, VglServer *srv, gboolean subscriber) { LastfmWsSession *session; g_return_val_if_fail (username && key && srv, NULL); session = vgl_object_new (LastfmWsSession, (GDestroyNotify) lastfm_ws_session_destroy); session->username = g_strdup (username); session->password = g_strdup (password); session->key = g_strdup (key); session->srv = vgl_object_ref (srv); session->radio_name = NULL; session->v1sess = NULL; session->subscriber = subscriber; session->mutex = g_mutex_new (); return session; } LastfmSession * lastfm_ws_session_get_v1_session (LastfmWsSession *session) { g_return_val_if_fail (session != NULL, NULL); return session->v1sess; } static void lastfm_ws_sign_url (GString *url, const GList *params, const char *api_secret) { const GList *iter; char *md5; GString *sig = g_string_sized_new (200); for (iter = params; iter != NULL; iter = iter->next) { LastfmWsParameter *p = (LastfmWsParameter *) iter->data; g_string_append_printf (sig, "%s%s", p->name, p->value); } g_string_append (sig, api_secret); md5 = get_md5_hash (sig->str); g_string_append_printf (url, "&api_sig=%s", md5); g_free (md5); g_string_free (sig, TRUE); } static char * lastfm_ws_format_params (const VglServer *srv, HttpRequestType type, gboolean add_api_sig, const GList *params) { GString *url; const GList *iter; g_return_val_if_fail (srv != NULL, NULL); /* 200 bytes should be enough for all method calls */ url = g_string_sized_new (200); if (type == HTTP_REQUEST_GET) { g_string_assign (url, srv->ws_base_url); g_string_append_c (url, '?'); } for (iter = params; iter != NULL; iter = iter->next) { LastfmWsParameter *p = (LastfmWsParameter *) iter->data; char *encvalue = escape_url (p->value, TRUE); g_string_append_printf (url, "%s=%s", p->name, encvalue); g_free (encvalue); if (iter->next != NULL) { g_string_append_c (url, '&'); } } if (add_api_sig) { /* Compute and append API signature */ lastfm_ws_sign_url (url, params, srv->api_secret); } /* Return */ return g_string_free (url, FALSE); } static gboolean lastfm_ws_http_request (const VglServer *srv, const char *method, HttpRequestType type, gboolean add_api_sig, gint *error_code, xmlDoc **doc, const xmlNode **node, ...) { gboolean retvalue = FALSE; const char *name; char *buffer, *url; size_t bufsize; GList *l = NULL; va_list args; g_return_val_if_fail (srv && method && doc && node, FALSE); *doc = NULL; *node = NULL; if (error_code != NULL) { *error_code = 0; } /* Add all parameters to a list */ va_start (args, node); name = va_arg (args, char *); while (name != NULL) { const char *value = va_arg (args, char *); l = g_list_prepend (l, lastfm_ws_parameter_new (name, value)); name = va_arg (args, char *); } va_end (args); /* Add 'method' and 'api_key' parameters */ l = g_list_prepend (l, lastfm_ws_parameter_new ("method", method)); l = g_list_prepend (l, lastfm_ws_parameter_new ("api_key", srv->api_key)); /* Sort list alphabetically */ l = g_list_sort (l, (GCompareFunc) lastfm_ws_parameter_compare); /* Create URL and make HTTP request */ url = lastfm_ws_format_params (srv, type, add_api_sig, l); if (type == HTTP_REQUEST_GET) { http_get_buffer (url, &buffer, &bufsize); } else { http_post_buffer (srv->ws_base_url, url, &buffer, &bufsize, NULL); } g_free (url); /* Parse response, create XML doc and validate the root node */ if (buffer != NULL) { *doc = xmlParseMemory (buffer, bufsize); if (*doc != NULL) { xmlNode *n = xmlDocGetRootElement (*doc); if ((n = (xmlNode *) xml_find_node (n, "lfm"))) { xmlChar *status; status = xmlGetProp (n, (xmlChar *) "status"); if (status) { retvalue = xmlStrEqual ( status, (xmlChar *) "ok"); xmlFree (status); } n = n->xmlChildrenNode; if (retvalue) { *node = n; } } if (!retvalue && error_code != NULL) { n = (xmlNode *) xml_find_node (n, "error"); if (n != NULL) { xmlChar *err; err = xmlGetProp (n,(xmlChar *)"code"); if (err) { *error_code = atol ((char *) err); xmlFree (err); } } } if (!retvalue) { xmlFreeDoc (*doc); *doc = NULL; } } } /* Cleanup */ g_list_foreach (l, (GFunc) lastfm_ws_parameter_destroy, NULL); g_list_free (l); g_free (buffer); return retvalue; } char * lastfm_ws_get_auth_token (const VglServer *srv, char **auth_url) { char *retvalue = NULL; xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (srv, NULL); lastfm_ws_http_request (srv, "auth.getToken", HTTP_REQUEST_GET, TRUE, NULL, &doc, &node, NULL); if (doc != NULL) { xml_get_string (doc, node, "token", &retvalue); xmlFreeDoc (doc); } if (retvalue != NULL) { if (auth_url != NULL) { *auth_url = g_strconcat ( "http://www.last.fm/api/auth/" "?api_key=", srv->api_key, "&token=", retvalue, NULL); } } else { if (auth_url != NULL) { *auth_url = NULL; } g_warning ("Unable to get auth token"); } return retvalue; } LastfmWsSession * lastfm_ws_get_session_from_token (VglServer *srv, const char *token) { LastfmWsSession *retvalue = NULL; xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (srv && token, NULL); lastfm_ws_http_request (srv, "auth.getSession", HTTP_REQUEST_GET, TRUE, NULL, &doc, &node, "token", token, NULL); if (doc != NULL) { node = xml_find_node (node, "session"); if (node != NULL) { char *user, *key; gboolean subscriber; node = node->xmlChildrenNode; xml_get_string (doc, node, "name", &user); xml_get_string (doc, node, "key", &key); xml_get_bool (doc, node, "subscriber", &subscriber); if (user && *user != '\0' && key && *key != '\0') { retvalue = lastfm_ws_session_new ( user, user, key, srv, subscriber); } g_free (user); g_free (key); } xmlFreeDoc (doc); } if (!retvalue) { g_warning ("Unable to get session"); } return retvalue; } LastfmWsSession * lastfm_ws_get_session (VglServer *srv, const char *user, const char *pass, LastfmErr *err) { LastfmWsSession *retvalue = NULL; int errcode; char *lcuser, *md5pw, *usermd5pw, *authtoken; xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (srv && user && pass && err, NULL); lcuser = g_ascii_strdown (user, -1); md5pw = get_md5_hash (pass); usermd5pw = g_strconcat (lcuser, md5pw, NULL); authtoken = get_md5_hash (usermd5pw); lastfm_ws_http_request (srv, "auth.getMobileSession", HTTP_REQUEST_GET, TRUE, &errcode, &doc, &node, "authToken", authtoken, "username", lcuser, NULL); if (doc != NULL) { node = xml_find_node (node, "session"); if (node != NULL) { char *key; gboolean subscriber; node = node->xmlChildrenNode; xml_get_string (doc, node, "key", &key); xml_get_bool (doc, node, "subscriber", &subscriber); if (key && key[0] != '\0') { retvalue = lastfm_ws_session_new ( lcuser, pass, key, srv, subscriber); } g_free (key); } xmlFreeDoc (doc); } if (retvalue) { retvalue->v1sess = lastfm_session_new (lcuser, pass, srv->old_hs_url, err, srv->free_streams); } else { g_warning ("Unable to get session"); *err = errcode == 4 ? LASTFM_ERR_LOGIN : LASTFM_ERR_CONN; } g_free (lcuser); g_free (md5pw); g_free (usermd5pw); g_free (authtoken); return retvalue; } LastfmErrorCode lastfm_ws_radio_tune (LastfmWsSession *session, const char *radio_url, const char *lang) { xmlDoc *doc; const xmlNode *node; gint error_code; g_return_val_if_fail (session && radio_url, LASTFM_NOT_FOUND); /* If this is a custom URL, store the playlist for later */ if (session->v1sess) { if (lastfm_radio_url_is_custom (radio_url)) { LastfmPls *pls = lastfm_request_custom_playlist ( session->v1sess, radio_url); g_mutex_lock (session->mutex); lastfm_pls_destroy (session->v1sess->custom_pls); session->v1sess->custom_pls = pls; g_mutex_unlock (session->mutex); return (pls != NULL) ? LASTFM_OK : LASTFM_NOT_FOUND; } else if (session->v1sess->custom_pls) { g_mutex_lock (session->mutex); lastfm_pls_destroy (session->v1sess->custom_pls); session->v1sess->custom_pls = NULL; g_mutex_unlock (session->mutex); } if (session->srv->old_str_api) { gboolean set; g_free (session->radio_name); session->radio_name = NULL; set = lastfm_set_radio (session->v1sess, radio_url, &(session->radio_name)); return set ? LASTFM_OK : LASTFM_NOT_FOUND; } } lastfm_ws_http_request (session->srv, "radio.tune", HTTP_REQUEST_POST, TRUE, &error_code, &doc, &node, "sk", session->key, "station", radio_url, lang ? "lang" : NULL, lang, NULL); if (doc != NULL) { node = xml_find_node (node, "station"); if (node != NULL) { node = node->xmlChildrenNode; } g_mutex_lock (session->mutex); g_free (session->radio_name); xml_get_string (doc, node, "name", &(session->radio_name)); g_mutex_unlock (session->mutex); xmlFreeDoc (doc); } else { /* Fall back to the old streaming API if the new one * doesn't work */ if (session->v1sess && !session->subscriber) { session->srv->old_str_api = TRUE; return lastfm_ws_radio_tune (session, radio_url, lang); } } return error_code; } LastfmPls * lastfm_ws_radio_get_playlist (const LastfmWsSession *session, gboolean discovery, gboolean low_bitrate, gboolean scrobbling) { LastfmPls *pls = NULL; xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (session, NULL); if (session->v1sess) { /* If there's a custom playlist available, return it (see lastfm_ws_radio_tune()) */ if (session->v1sess->custom_pls) { g_mutex_lock (session->mutex); pls = session->v1sess->custom_pls; session->v1sess->custom_pls = NULL; g_mutex_unlock (session->mutex); return pls; } if (session->srv->old_str_api) { return lastfm_request_playlist (session->v1sess, discovery, session->radio_name); } } lastfm_ws_http_request (session->srv, "radio.getPlaylist", HTTP_REQUEST_GET, TRUE, NULL, &doc, &node, "discovery", discovery ? "1" : "0", "rtp", scrobbling ? "1" : "0", "sk", session->key, low_bitrate ? "bitrate" : NULL, "64", NULL); if (doc != NULL) { g_mutex_lock (session->mutex); pls = lastfm_parse_playlist (doc, session->radio_name, session->srv->free_streams); g_mutex_unlock (session->mutex); xmlFreeDoc (doc); } else { /* Fall back to the old streaming API if the new one * doesn't work */ if (session->v1sess && !session->subscriber) { session->srv->old_str_api = TRUE; return lastfm_ws_radio_get_playlist ( session, discovery, low_bitrate, scrobbling); } } return pls; } gboolean lastfm_ws_get_friends (const VglServer *srv, const char *user, GList **friendlist) { GList *list = NULL; gboolean retvalue = FALSE; xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (srv && user && friendlist, FALSE); lastfm_ws_http_request (srv, "user.getFriends", HTTP_REQUEST_GET, FALSE, NULL, &doc, &node, "limit", "0", "recenttracks", "0", "user", user, NULL); if (doc != NULL) { node = xml_find_node (node, "friends"); if (node != NULL) { node = node->xmlChildrenNode; retvalue = TRUE; } while ((node = xml_find_node (node, "user"))) { char *name; xml_get_string (doc, node->xmlChildrenNode, "name", &name); if (name) { list = g_list_append (list, name); } node = node->next; } if (list != NULL) { list = g_list_sort (list, (GCompareFunc) g_ascii_strcasecmp); } xmlFreeDoc (doc); } if (!retvalue) { g_warning ("Unable to get friend list"); } *friendlist = list; return retvalue; } static gboolean parse_xml_tags (xmlDoc *doc, const xmlNode *node, const char *parent_name, GList **list) { gboolean retvalue = FALSE; const xmlNode *iter = node; g_return_val_if_fail (doc && list && !*list, FALSE); iter = xml_find_node (iter, parent_name); if (iter != NULL) { iter = xml_find_node (iter->xmlChildrenNode, "tag"); retvalue = TRUE; } while (iter != NULL) { char *tag; xml_get_string (doc, iter->xmlChildrenNode, "name", &tag); if (tag != NULL && tag[0] != '\0') { *list = g_list_prepend (*list, tag); } else { g_warning ("Found tag with no name"); g_free (tag); } iter = xml_find_node (iter->next, "tag"); } *list = g_list_reverse (*list); return retvalue; } gboolean lastfm_ws_get_user_tags (const VglServer *srv, const char *username, GList **taglist) { gboolean retvalue = FALSE; xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (srv && username && taglist && !*taglist, FALSE); lastfm_ws_http_request (srv, "user.getTopTags", HTTP_REQUEST_GET, FALSE, NULL, &doc, &node, "user", username, NULL); if (doc != NULL) { retvalue = parse_xml_tags (doc, node, "toptags", taglist); xmlFreeDoc (doc); } if (!retvalue) { g_warning ("Unable to get user tags"); } return retvalue; } gboolean lastfm_ws_get_user_track_tags (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, GList **taglist) { gboolean retvalue = FALSE; xmlDoc *doc; const xmlNode *node; const char *method, *extraparam, *extraparamvalue, *artist; g_return_val_if_fail (track && session && taglist, FALSE); artist = track->artist; *taglist = NULL; switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: method = "artist.getTags"; extraparam = extraparamvalue = NULL; break; case LASTFM_TRACK_COMPONENT_TRACK: method = "track.getTags"; extraparam = "track"; extraparamvalue = track->title; break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail (track->album[0] != '\0', FALSE); artist = track->album_artist; method = "album.getTags"; extraparam = "album"; extraparamvalue = track->album; break; default: g_return_val_if_reached (FALSE); } lastfm_ws_http_request (session->srv, method, HTTP_REQUEST_GET, TRUE, NULL, &doc, &node, "artist", artist, "sk", session->key, extraparam, extraparamvalue, NULL); if (doc != NULL) { retvalue = parse_xml_tags (doc, node, "tags", taglist); xmlFreeDoc (doc); } if (!retvalue) { g_warning ("Unable to get user track tags"); } return retvalue; } #ifndef VGL_USE_NEW_ALBUM_TAGS_API static gboolean lastfm_ws_old_get_album_tags (const LastfmTrack *track, GList **taglist) { const char album_tags_url[] = "http://ws.audioscrobbler.com/1.0/album/%s/%s/toptags.xml"; char *artist, *album, *url, *buffer; size_t bufsize; gboolean found = FALSE; artist = lastfm_url_encode (track->album_artist); album = lastfm_url_encode (track->album); url = g_strdup_printf (album_tags_url, artist, album); http_get_buffer (url, &buffer, &bufsize); if (buffer != NULL) { xmlDoc *doc = xmlParseMemory (buffer, bufsize); if (doc != NULL) { xmlNode *node = xmlDocGetRootElement (doc); found = parse_xml_tags (doc, node, "toptags", taglist); xmlFreeDoc (doc); } } g_free (artist); g_free (album); g_free (url); g_free (buffer); return found; } #endif /* VGL_USE_NEW_ALBUM_TAGS_API */ gboolean lastfm_ws_get_track_tags (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, GList **taglist) { gboolean retvalue = FALSE; xmlDoc *doc; const xmlNode *node; const char *method, *extraparam, *extraparamvalue, *artist; g_return_val_if_fail (session && track && taglist, FALSE); artist = track->artist; *taglist = NULL; switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: method = "artist.getTopTags"; extraparam = extraparamvalue = NULL; break; case LASTFM_TRACK_COMPONENT_TRACK: method = "track.getTopTags"; extraparam = "track"; extraparamvalue = track->title; break; case LASTFM_TRACK_COMPONENT_ALBUM: /* The new API to get album tags seems to return less * results than the old API */ g_return_val_if_fail (track->album[0] != '\0', FALSE); #ifdef VGL_USE_NEW_ALBUM_TAGS_API artist = track->album_artist; method = "album.getInfo"; extraparam = "album"; extraparamvalue = track->album; break; #else return lastfm_ws_old_get_album_tags (track, taglist); #endif default: g_return_val_if_reached (FALSE); } lastfm_ws_http_request (session->srv, method, HTTP_REQUEST_GET, FALSE, NULL, &doc, &node, "artist", artist, extraparam, extraparamvalue, NULL); if (doc != NULL) { #ifdef VGL_USE_NEW_ALBUM_TAGS_API if (type == LASTFM_TRACK_COMPONENT_ALBUM) { if ((node = xml_find_node (node, "album"))) { node = node->xmlChildrenNode; } } #endif retvalue = parse_xml_tags (doc, node, "toptags", taglist); xmlFreeDoc (doc); } if (!retvalue) { g_warning ("Unable to get track tags"); } return retvalue; } gboolean lastfm_ws_add_tags (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, const char *tags) { xmlDoc *doc; const xmlNode *node; const char *method, *extraparam, *extraparamvalue, *artist; g_return_val_if_fail (session && track && tags, FALSE); artist = track->artist; switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: method = "artist.addTags"; extraparam = extraparamvalue = NULL; break; case LASTFM_TRACK_COMPONENT_TRACK: method = "track.addTags"; extraparam = "track"; extraparamvalue = track->title; break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail (track->album[0] != '\0', FALSE); artist = track->album_artist; method = "album.addTags"; extraparam = "album"; extraparamvalue = track->album; break; default: g_return_val_if_reached (FALSE); } lastfm_ws_http_request (session->srv, method, HTTP_REQUEST_POST, TRUE, NULL, &doc, &node, "artist", artist, "sk", session->key, "tags", tags, extraparam, extraparamvalue, NULL); if (doc != NULL) { xmlFreeDoc (doc); return TRUE; } else { g_warning ("Error adding tags"); return FALSE; } } gboolean lastfm_ws_remove_tag (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, const char *tag) { xmlDoc *doc; const xmlNode *node; const char *method, *extraparam, *extraparamvalue, *artist; g_return_val_if_fail (session && track && tag, FALSE); artist = track->artist; switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: method = "artist.removeTag"; extraparam = extraparamvalue = NULL; break; case LASTFM_TRACK_COMPONENT_TRACK: method = "track.removeTag"; extraparam = "track"; extraparamvalue = track->title; break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail (track->album[0] != '\0', FALSE); artist = track->album_artist; method = "album.removeTag"; extraparam = "album"; extraparamvalue = track->album; break; default: g_return_val_if_reached (FALSE); } lastfm_ws_http_request (session->srv, method, HTTP_REQUEST_POST, TRUE, NULL, &doc, &node, "artist", artist, "sk", session->key, "tag", tag, extraparam, extraparamvalue, NULL); if (doc != NULL) { xmlFreeDoc (doc); return TRUE; } else { g_warning ("Error adding tags"); return FALSE; } } gboolean lastfm_ws_share_track (const LastfmWsSession *session, const LastfmTrack *track, const char *text, LastfmTrackComponent type, const char *rcpt) { xmlDoc *doc; const xmlNode *node; const char *method, *extraparam, *extraparamvalue; g_return_val_if_fail (session && track && text && rcpt, FALSE); switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: method = "artist.share"; extraparam = extraparamvalue = NULL; break; case LASTFM_TRACK_COMPONENT_TRACK: method = "track.share"; extraparam = "track"; extraparamvalue = track->title; break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail (track->album[0] != '\0', FALSE); /* Use v1 API: sharing albums is not supported in v2 */ return recommend_track (session->username, session->password, track, text, type, rcpt); default: g_return_val_if_reached (FALSE); } lastfm_ws_http_request (session->srv, method, HTTP_REQUEST_POST, TRUE, NULL, &doc, &node, "artist", track->artist, "message", text, "recipient", rcpt, "sk", session->key, extraparam, extraparamvalue, NULL); if (doc != NULL) { xmlFreeDoc (doc); return TRUE; } else { return FALSE; } } gboolean lastfm_ws_love_track (const LastfmWsSession *session, const LastfmTrack *track) { xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (session && track, FALSE); lastfm_ws_http_request (session->srv, "track.love", HTTP_REQUEST_POST, TRUE, NULL, &doc, &node, "artist", track->artist, "sk", session->key, "track", track->title, NULL); if (doc != NULL) { xmlFreeDoc (doc); return TRUE; } else { return FALSE; } } gboolean lastfm_ws_ban_track (const LastfmWsSession *session, const LastfmTrack *track) { xmlDoc *doc; const xmlNode *node; g_return_val_if_fail (session && track, FALSE); lastfm_ws_http_request (session->srv, "track.ban", HTTP_REQUEST_POST, TRUE, NULL, &doc, &node, "artist", track->artist, "sk", session->key, "track", track->title, NULL); if (doc != NULL) { xmlFreeDoc (doc); return TRUE; } else { return FALSE; } } gboolean lastfm_ws_tag_track (const LastfmWsSession *session, const LastfmTrack *track, LastfmTrackComponent type, GSList *tags) { g_return_val_if_fail (session && track, FALSE); /* Fall back to the old API while the new one isn't implemented */ return tag_track (session->username, session->password, track, type, tags); } gboolean lastfm_ws_add_to_playlist (const LastfmWsSession *session, const LastfmTrack *track) { g_return_val_if_fail (session && track, FALSE); /* Fall back to the old API while the new one isn't implemented */ return add_to_playlist (session->username, session->password, track); } vagalume-0.8.6/src/http.c0000644000000000000000000003216012233552617012137 00000000000000/* * http.c -- All the HTTP-specific functions * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "http.h" #include "globaldefs.h" #include "util.h" #include "compat.h" #include #include #include #include #include #ifdef HAVE_LIBPROXY # include static pxProxyFactory *proxy_factory = NULL; static gboolean use_global_proxy = FALSE; #endif static GStaticRWLock proxy_lock = G_STATIC_RW_LOCK_INIT; static char *proxy_url = NULL; /* HTTP connections will abort after this time */ static const int http_timeout = 20; typedef struct { char *buffer; size_t size; } curl_buffer; typedef struct { http_download_progress_cb cb; gpointer userdata; } http_dl_progress_wrapper_data; static void update_proxy_url (const char *proxy) { if (g_strcmp0 (proxy, proxy_url) != 0) { g_free (proxy_url); proxy_url = g_strdup (proxy); } } void http_set_proxy (const char *proxy, gboolean use_system_proxy) { g_static_rw_lock_writer_lock (&proxy_lock); #ifdef HAVE_LIBPROXY use_global_proxy = use_system_proxy; if (!use_global_proxy) update_proxy_url (proxy); #else update_proxy_url (proxy); #endif g_static_rw_lock_writer_unlock (&proxy_lock); } void http_init (void) { curl_global_init(CURL_GLOBAL_ALL); #ifdef HAVE_LIBPROXY proxy_factory = px_proxy_factory_new (); #endif } char * escape_url (const char *url, gboolean escape) { g_return_val_if_fail(url != NULL, NULL); CURL *handle; char *str, *curl_str; handle = curl_easy_init(); if (escape) { #ifdef HAVE_CURL_EASY_ESCAPE curl_str = curl_easy_escape(handle, url, 0); } else { curl_str = curl_easy_unescape(handle, url, 0, NULL); #else curl_str = curl_escape(url, 0); } else { curl_str = curl_unescape(url, 0); #endif } str = g_strdup(curl_str); curl_free(curl_str); curl_easy_cleanup(handle); return str; } static size_t http_copy_buffer (void *src, size_t size, size_t nmemb, void *dest) { curl_buffer *dstbuf = (curl_buffer *) dest; size_t datasize = size*nmemb; size_t writefrom = dstbuf->size; if (datasize == 0 || src == NULL) return 0; dstbuf->size += datasize; /* Allocate an extra byte to place the final \0 */ dstbuf->buffer = g_realloc(dstbuf->buffer, dstbuf->size + 1); memcpy(dstbuf->buffer + writefrom, src, datasize); return datasize; } static CURL * create_curl_handle (const char *url) { CURL *handle = curl_easy_init (); curl_easy_setopt (handle, CURLOPT_NOSIGNAL, 1); curl_easy_setopt (handle, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt (handle, CURLOPT_LOW_SPEED_LIMIT, 1); curl_easy_setopt (handle, CURLOPT_LOW_SPEED_TIME, http_timeout); curl_easy_setopt (handle, CURLOPT_CONNECTTIMEOUT, http_timeout); #ifdef HAVE_LIBPROXY if (use_global_proxy) { char **proxies; const char *found = NULL; proxies = px_proxy_factory_get_proxies (proxy_factory, (char *) url); if (proxies != NULL) { char **p; for (p = proxies; found == NULL && *p != NULL; p++) { if (g_str_has_prefix (*p, "direct://") || g_str_has_prefix (*p, "http://") || g_str_has_prefix (*p, "socks://") || g_str_has_prefix (*p, "socks4://") || g_str_has_prefix (*p, "socks5://")) { found = *p; } } } g_static_rw_lock_writer_lock (&proxy_lock); if (use_global_proxy) update_proxy_url (found); g_static_rw_lock_writer_unlock (&proxy_lock); g_strfreev (proxies); } #endif g_static_rw_lock_reader_lock (&proxy_lock); if (proxy_url != NULL) { curl_easy_setopt (handle, CURLOPT_PROXY, proxy_url); if (!g_str_equal (proxy_url, "direct://")) { curl_proxytype type = CURLPROXY_HTTP; if (g_str_has_prefix (proxy_url, "socks://") || g_str_has_prefix (proxy_url, "socks5://")) { /* TODO: make socks:// fall back to Socks 4 */ type = CURLPROXY_SOCKS5; } else if (g_str_has_prefix (proxy_url, "socks4://")) { type = CURLPROXY_SOCKS4; } curl_easy_setopt (handle, CURLOPT_PROXYTYPE, type); } } g_static_rw_lock_reader_unlock (&proxy_lock); return handle; } gboolean http_get_to_fd (const char *url, int fd, const GSList *headers) { g_return_val_if_fail(url != NULL && fd > 0, FALSE); CURLcode retcode; CURL *handle; FILE *f = fdopen(fd, "w"); struct curl_slist *hdrs = NULL; if (f == NULL) { g_warning("Unable to fdopen() fd %d", fd); close(fd); return FALSE; } g_debug("Requesting URL %s", url); hdrs = curl_slist_append(hdrs, "User-Agent: " APP_FULLNAME); if (headers != NULL) { const GSList *iter = headers; for (; iter != NULL; iter = g_slist_next(iter)) { hdrs = curl_slist_append(hdrs, iter->data); } } handle = create_curl_handle (url); curl_easy_setopt(handle, CURLOPT_URL, url); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, NULL); curl_easy_setopt(handle, CURLOPT_WRITEDATA, f); curl_easy_setopt(handle, CURLOPT_HTTPHEADER, hdrs); retcode = curl_easy_perform(handle); curl_easy_cleanup(handle); if (hdrs != NULL) curl_slist_free_all(hdrs); fclose(f); /* We only return false for _read_ errors */ if (retcode == CURLE_OK || retcode == CURLE_WRITE_ERROR) { return TRUE; } else { g_warning("Error getting URL %s", url); return FALSE; } } static int http_dl_progress_wrapper (void *data, double dltotal, double dlnow, double ultotal, double ulnow) { http_dl_progress_wrapper_data *wrapdata; wrapdata = (http_dl_progress_wrapper_data *) data; g_return_val_if_fail(wrapdata != NULL && wrapdata->cb != NULL, -1); if ((*(wrapdata->cb))(wrapdata->userdata, dltotal, dlnow)) { return 0; } else { return -1; } } gboolean http_download_file (const char *url, const char *filename, http_download_progress_cb cb, gpointer userdata) { g_return_val_if_fail(url != NULL && filename != NULL, FALSE); http_dl_progress_wrapper_data *wrapdata = NULL; CURLcode retcode; CURL *handle; FILE *f = NULL; if (!file_exists(filename)) { f = fopen(filename, "wb"); } else { g_warning("File %s already exists", filename); } if (f == NULL) { g_warning("Unable to open %s for writing", filename); return FALSE; } handle = create_curl_handle (url); curl_easy_setopt(handle, CURLOPT_URL, url); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, NULL); curl_easy_setopt(handle, CURLOPT_WRITEDATA, f); if (cb != NULL) { wrapdata = g_slice_new(http_dl_progress_wrapper_data); wrapdata->cb = cb; wrapdata->userdata = userdata; curl_easy_setopt(handle, CURLOPT_PROGRESSFUNCTION, http_dl_progress_wrapper); curl_easy_setopt(handle, CURLOPT_PROGRESSDATA, wrapdata); curl_easy_setopt(handle, CURLOPT_NOPROGRESS, FALSE); } retcode = curl_easy_perform(handle); curl_easy_cleanup(handle); fclose(f); if (wrapdata != NULL) { g_slice_free(http_dl_progress_wrapper_data, wrapdata); } if (retcode == CURLE_OK) { return TRUE; } else { g_warning("Error downloading URL %s", url); return FALSE; } } gboolean http_get_buffer (const char *url, char **buffer, size_t *bufsize) { g_return_val_if_fail(url != NULL && buffer != NULL, FALSE); curl_buffer dstbuf = { NULL, 0 }; CURLcode retcode; CURL *handle; const char *pwpos = strstr(url, "passwordmd5="); struct curl_slist *hdrs = NULL; if (pwpos == NULL) { g_debug("Requesting URL %s", url); } else { char *newurl = g_strndup(url, pwpos - url); g_debug("Requesting URL %spasswordmd5=", newurl); g_free(newurl); } handle = create_curl_handle (url); curl_easy_setopt(handle, CURLOPT_URL, url); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, http_copy_buffer); curl_easy_setopt(handle, CURLOPT_WRITEDATA, &dstbuf); hdrs = curl_slist_append(hdrs, "User-Agent: " APP_FULLNAME); curl_easy_setopt(handle, CURLOPT_HTTPHEADER, hdrs); retcode = curl_easy_perform(handle); curl_easy_cleanup(handle); if (hdrs != NULL) curl_slist_free_all(hdrs); if (retcode != CURLE_OK) { g_warning("Error getting URL %s", url); g_free(dstbuf.buffer); dstbuf.buffer = NULL; } if (dstbuf.buffer != NULL) { dstbuf.buffer[dstbuf.size] = '\0'; } *buffer = dstbuf.buffer; if (bufsize != NULL) { *bufsize = dstbuf.size; } return (retcode == CURLE_OK); } gboolean http_post_buffer (const char *url, const char *postdata, char **retbuf, size_t *retbufsize, const GSList *headers) { g_return_val_if_fail(url != NULL && postdata != NULL, FALSE); curl_buffer dstbuf = { NULL, 0 }; CURLcode retcode; CURL *handle; struct curl_slist *hdrs = NULL; handle = create_curl_handle (url); if (retbuf != NULL) { curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, http_copy_buffer); curl_easy_setopt(handle, CURLOPT_WRITEDATA, &dstbuf); } hdrs = curl_slist_append(hdrs, "User-Agent: " APP_FULLNAME); if (headers != NULL) { const GSList *iter = headers; for (; iter != NULL; iter = g_slist_next(iter)) { hdrs = curl_slist_append(hdrs, iter->data); } } g_debug("Posting to URL %s\n%s", url, postdata); curl_easy_setopt(handle, CURLOPT_URL, url); curl_easy_setopt(handle, CURLOPT_POSTFIELDS, postdata); curl_easy_setopt(handle, CURLOPT_HTTPHEADER, hdrs); retcode = curl_easy_perform(handle); curl_easy_cleanup(handle); if (hdrs != NULL) curl_slist_free_all(hdrs); if (retcode != CURLE_OK) { g_warning("Error posting to URL %s", url); g_free(dstbuf.buffer); dstbuf.buffer = NULL; } if (retbuf != NULL) { if (dstbuf.buffer != NULL) { dstbuf.buffer[dstbuf.size] = '\0'; } *retbuf = dstbuf.buffer; if (retbufsize != NULL) { *retbufsize = dstbuf.size; } } return (retcode == CURLE_OK); } vagalume-0.8.6/src/vgl-sb-plugin.c0000644000000000000000000007343612233552617013661 00000000000000/* * vgl-sb-plugin.c -- Status bar plugin for Vagalume * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * Mario Sanchez Prada * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include #include #include #include #include #include #include #include #include #include #include "vgl-sb-plugin.h" #include "globaldefs.h" #include "dbus.h" /* This is run by hildon-desktop, so we need to redefine the _(String) macro to use the Vagalume domain */ #undef _ #define _(String) dgettext (GETTEXT_PACKAGE, String) #define MAIN_PANEL_WIDTH 300 #define NO_ARTIST_STRING _("No artist") #define NO_TRACK_STRING _("No track") #define NO_ALBUM_STRING _("No album") #define PLAY_ITEM_STRING _("Play") #define STOP_ITEM_STRING _("Stop") #define SKIP_ITEM_STRING _("Skip") #define LOVE_ITEM_STRING _("Love") #define BAN_ITEM_STRING _("Ban") #define SHOW_APP_ITEM_STRING _("Show main window") #define CLOSE_APP_ITEM_STRING _("Close Vagalume") #define VGL_SB_PLUGIN_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), \ VGL_SB_PLUGIN_TYPE, VglSbPluginPrivate)) enum { ARTIST_ITEM, TRACK_ITEM, ALBUM_ITEM, PLAY_ITEM, STOP_ITEM, NEXT_ITEM, LOVE_ITEM, BAN_ITEM, SHOW_WIN_ITEM, QUIT_ITEM, N_MENU_ITEMS }; struct _VglSbPluginPrivate { osso_context_t *osso_context; DBusConnection *dbus_connection; gboolean dbus_filter_added; gboolean is_visible; gboolean now_playing; gboolean running_app; gchar *artist_string; gchar *track_string; gchar *album_string; GtkWidget *button; GtkWidget *icon; GtkWidget *main_panel; GtkWidget *menu_item[N_MENU_ITEMS]; gulong plugin_btn_handler_id; gulong main_panel_handler_id; gulong menu_handler_id[N_MENU_ITEMS]; gboolean dispose_has_run; }; HD_DEFINE_PLUGIN (VglSbPlugin, vgl_sb_plugin, STATUSBAR_TYPE_ITEM); /* Initialization/destruction functions */ static void vgl_sb_plugin_class_init (VglSbPluginClass *klass); static void vgl_sb_plugin_init (VglSbPlugin *vsbp); static void vgl_sb_plugin_dispose (GObject *object); /* Dbus stuff */ static gboolean dbus_init (VglSbPlugin *vsbp); static void dbus_cleanup (VglSbPlugin *vsbp); static DBusHandlerResult dbus_req_handler (DBusConnection *connection, DBusMessage *message, gpointer data); static void dbus_send_request (VglSbPlugin *vsbp, const gchar *request); static void dbus_send_request_with_params (VglSbPlugin *vsbp, const char *request, int first_type, ...); static void notify_handler (VglSbPlugin *vsbp, DBusMessage *message); /* Setters */ static void set_visibility (VglSbPlugin *vsbp, gboolean visible); static void set_track_info (VglSbPlugin *vsbp, const gchar *artist, const gchar *track, const gchar *album); /* Panel update functions */ static void main_panel_create (VglSbPlugin *vsbp); static void main_panel_update (VglSbPlugin *vsbp); /* Signals handlers */ static void plugin_btn_toggled (GtkWidget *button, gpointer data); static void main_panel_item_activated (GtkWidget *item, gpointer data); static void main_panel_hidden (GtkWidget *main_panel, gpointer user_data); /* Utility functions */ static gboolean vagalume_running (VglSbPlugin *vsbp); /* Initialization/destruction functions */ static void vgl_sb_plugin_class_init (VglSbPluginClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = vgl_sb_plugin_dispose; g_type_class_add_private (object_class, sizeof (VglSbPluginPrivate)); bindtextdomain (GETTEXT_PACKAGE, VAGALUME_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); } static void vgl_sb_plugin_init (VglSbPlugin *vsbp) { int i; VglSbPluginPrivate *priv = VGL_SB_PLUGIN_GET_PRIVATE (vsbp); GdkPixbuf *icon_pixbuf; /* Init private attributes to their default values */ vsbp->priv = priv; priv->osso_context = NULL; priv->dbus_connection = NULL; priv->dbus_filter_added = FALSE; priv->is_visible = FALSE; priv->now_playing = FALSE; priv->running_app = FALSE; priv->artist_string = NULL; priv->track_string = NULL; priv->album_string = NULL; priv->button = NULL; priv->icon = NULL; priv->main_panel = NULL; for (i = 0; i < N_MENU_ITEMS; i++) { priv->menu_item[i] = NULL; priv->menu_handler_id[i] = 0; } priv->dispose_has_run = FALSE; /* Setup libosso */ priv->osso_context = osso_initialize ("vgl_sb_plugin", APP_VERSION, TRUE, NULL); if (!priv->osso_context) { g_debug ("Unable to initialize OSSO context"); return; } /* Setup dbus */ if (!dbus_init (vsbp)) { g_debug ("Unable to initialize D-Bus system"); return; } /* Create status bar plugin button */ icon_pixbuf = gdk_pixbuf_new_from_file (APP_ICON, NULL); priv->button = gtk_toggle_button_new (); priv->icon = gtk_image_new_from_pixbuf (icon_pixbuf); gtk_container_add (GTK_CONTAINER (priv->button), priv->icon); gtk_container_add (GTK_CONTAINER (vsbp), priv->button); /* Connect signals */ priv->plugin_btn_handler_id = g_signal_connect (priv->button, "toggled", G_CALLBACK(plugin_btn_toggled), vsbp); /* Show widgets */ gtk_widget_show_all (priv->button); /* Create main panel */ main_panel_create (vsbp); /* Check if vagalume is running */ if (vagalume_running (vsbp)) { priv->is_visible = TRUE; dbus_send_request (vsbp, APP_DBUS_METHOD_REQUEST_STATUS); } /* Update visibililty */ set_visibility (vsbp, priv->is_visible); } static void vgl_sb_plugin_dispose (GObject *object) { int i; VglSbPlugin *vsbp = VGL_SB_PLUGIN (object); VglSbPluginPrivate *priv = vsbp->priv; /* Ensure dispose is called only once */ if (priv->dispose_has_run) { return; } priv->dispose_has_run = TRUE; /* Dbus cleanup */ dbus_cleanup (vsbp); /* Libosso cleanup */ osso_deinitialize (priv->osso_context); /* Disconnect handlers */ g_signal_handler_disconnect (priv->button, priv->plugin_btn_handler_id); g_signal_handler_disconnect (priv->main_panel, priv->main_panel_handler_id); for (i = 0; i < N_MENU_ITEMS; i++) { if (priv->menu_handler_id[ARTIST_ITEM] != 0) { g_signal_handler_disconnect (priv->menu_item[i], priv->menu_handler_id[i]); } } /* Destroy local widgets */ if (priv->main_panel) { gtk_widget_destroy (priv->main_panel); } /* Free private strings */ if (priv->artist_string != NULL) { g_free (priv->artist_string); } if (priv->track_string != NULL) { g_free (priv->track_string); } if (priv->album_string != NULL) { g_free (priv->album_string); } G_OBJECT_CLASS (g_type_class_peek_parent (G_OBJECT_GET_CLASS(object)))->dispose(object); } /* Dbus stuff */ static gboolean dbus_init (VglSbPlugin *vsbp) { VglSbPluginPrivate *priv = vsbp->priv; /* Get the D-Bus connection to the session bus */ priv->dbus_connection = dbus_bus_get (DBUS_BUS_SESSION, NULL); if (!priv->dbus_connection) { g_debug ("Unable to get DBUS connection"); return FALSE; } /* Integrate D-Bus with GMainLoop */ dbus_connection_setup_with_g_main (priv->dbus_connection, NULL); /* Match only signals emitted from Vagalume */ dbus_bus_add_match (priv->dbus_connection, "type='signal',interface='" APP_DBUS_IFACE "'", NULL); dbus_connection_flush (priv->dbus_connection); /* Add a handler for incoming messages */ if (!dbus_connection_add_filter (priv->dbus_connection, dbus_req_handler, vsbp, NULL)) { g_debug ("Unable to add D-Bus filter"); return FALSE; } priv->dbus_filter_added = TRUE; return TRUE; } static void dbus_cleanup (VglSbPlugin *vsbp) { VglSbPluginPrivate *priv = vsbp->priv; /* Remove filter and matching rules */ if (priv->dbus_filter_added) { dbus_connection_remove_filter (priv->dbus_connection, dbus_req_handler, vsbp); dbus_bus_remove_match (priv->dbus_connection, "type='signal',interface='" APP_DBUS_IFACE "'", NULL); } /* Unref the D-bus connection */ if (priv->dbus_connection) { dbus_connection_unref (priv->dbus_connection); } } static DBusHandlerResult dbus_req_handler (DBusConnection *connection, DBusMessage *message, gpointer data) { VglSbPlugin *vsbp = VGL_SB_PLUGIN (data); if (dbus_message_is_signal (message, APP_DBUS_IFACE, APP_DBUS_SIGNAL_NOTIFY)) { /* Received a playback notification signal */ notify_handler (vsbp, message); return DBUS_HANDLER_RESULT_HANDLED; } return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } static void dbus_send_request (VglSbPlugin *vsbp, const gchar *request) { /* Delegate on dbus_send_request_with_params() */ dbus_send_request_with_params (vsbp, request, DBUS_TYPE_INVALID); } static void dbus_send_request_with_params (VglSbPlugin *vsbp, const char *request, int first_type, ...) { VglSbPluginPrivate *priv = vsbp->priv; DBusMessage *dbus_msg = NULL; va_list ap; dbus_msg = dbus_message_new_method_call (APP_DBUS_SERVICE, APP_DBUS_OBJECT, APP_DBUS_IFACE, request); if (first_type != DBUS_TYPE_INVALID) { va_start (ap, first_type); dbus_message_append_args_valist (dbus_msg, first_type, ap); va_end (ap); } dbus_connection_send (priv->dbus_connection, dbus_msg, 0); dbus_connection_flush (priv->dbus_connection); dbus_message_unref (dbus_msg); } static void notify_handler (VglSbPlugin *vsbp, DBusMessage *message) { VglSbPluginPrivate *priv = vsbp->priv; DBusMessageIter iter; gchar *type = NULL; gboolean msg_handled = FALSE; /* Ensure you have appropiate arguments */ if (!dbus_message_iter_init (message, &iter)) { g_debug ("Message has no parameters"); g_return_if_reached (); } /* Check notification type */ if (dbus_message_iter_get_arg_type (&iter) != DBUS_TYPE_STRING) { g_debug ("First parameter is not a string"); g_return_if_reached (); } dbus_message_iter_get_basic (&iter, &type); /* Let's assume that an application is running if a message was received from Vagalume */ priv->running_app = TRUE; if (!strcmp (type, APP_DBUS_SIGNAL_NOTIFY_PLAYING)) { /* Retrieve arguments */ gchar *artist = NULL; gchar *track = NULL; gchar *album = NULL; g_debug ("NOTIFY PLAYING RECEIVED"); /* Artist */ if (dbus_message_iter_next (&iter) && dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_STRING) { dbus_message_iter_get_basic (&iter, &artist); } /* Track title */ if (dbus_message_iter_next (&iter) && dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_STRING) { dbus_message_iter_get_basic (&iter, &track); } /* Album */ if (dbus_message_iter_next (&iter) && dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_STRING) { dbus_message_iter_get_basic (&iter, &album); } /* Update private attributes */ set_track_info (vsbp, artist, track, album); priv->now_playing = TRUE; msg_handled = TRUE; } else if (!strcmp (type, APP_DBUS_SIGNAL_NOTIFY_STOPPED)) { g_debug ("NOTIFY STOPPED RECEIVED"); /* Update private attributes */ set_track_info (vsbp, NULL, NULL, NULL); priv->now_playing = FALSE; msg_handled = TRUE; } else if (!strcmp (type, APP_DBUS_SIGNAL_NOTIFY_STARTED)) { g_debug ("NOTIFY STARTED RECEIVED"); /* Set the plugin invisible */ set_visibility (vsbp, TRUE); dbus_send_request (vsbp, APP_DBUS_METHOD_REQUEST_STATUS); msg_handled = TRUE; } else if (!strcmp (type, APP_DBUS_SIGNAL_NOTIFY_CLOSING)) { g_debug ("NOTIFY CLOSING RECEIVED"); /* Update private attributes */ priv->running_app = FALSE; priv->now_playing = FALSE; /* Set the plugin invisible */ set_visibility (vsbp, FALSE); msg_handled = TRUE; } else { /* Wrong notification */ g_debug ("Wrong notification received: %s", type); msg_handled = FALSE; } /* If the message was handled update the panel */ if (msg_handled) { main_panel_update (vsbp); } } /* Setters */ static void set_visibility (VglSbPlugin *vsbp, gboolean visible) { gboolean old_condition; g_object_get (vsbp, "condition", &old_condition, NULL); if (old_condition != visible) g_object_set (vsbp, "condition", visible, NULL); vsbp->priv->is_visible = visible; g_debug ("Setting visibility to '%s'", (visible ? "visible" : "hidden")); } static void set_field (gchar **field, const gchar *text, const gchar *markup_fmt) { g_return_if_fail (text != NULL); gchar *final_text = NULL; gchar *final_markup_fmt = NULL; if (*field != NULL) { g_free (*field); *field = NULL; } final_text = g_strstrip (g_strdup (text)); if (markup_fmt != NULL) { final_markup_fmt = g_strdup (markup_fmt); } else { final_markup_fmt = g_strdup ("%s"); } *field = g_markup_printf_escaped (final_markup_fmt, final_text); g_free (final_markup_fmt); g_free (final_text); g_debug ("Setting field to '%s'", *field); } static void set_track_info (VglSbPlugin *vsbp, const gchar *artist, const gchar *track, const gchar *album) { g_return_if_fail(VGL_IS_SB_PLUGIN(vsbp)); VglSbPluginPrivate *priv = vsbp->priv; /* Call to set_field (), always with valid data */ set_field (&priv->artist_string, (artist?artist:NO_ARTIST_STRING), "%s"); set_field (&priv->track_string, (track?track:NO_TRACK_STRING), "%s"); if ((album != NULL) && g_str_equal (album, "")) { /* Set album string to NULL if not available yet */ if (priv->album_string != NULL) { g_free (priv->album_string); } priv->album_string = NULL; } else { set_field (&priv->album_string, (album?album:NO_ALBUM_STRING), NULL); } } /* Panel update functions */ static PangoFontDescription * get_small_font (GtkWidget *widget) { static PangoFontDescription *new_font = NULL; if (new_font == NULL) { new_font = pango_font_description_from_string ("Nokia Sans 13.625"); } return new_font; } static void main_panel_create (VglSbPlugin *vsbp) { VglSbPluginPrivate *priv = vsbp->priv; GtkWidget *label; /* Create main_panel and main_panel items */ priv->main_panel = gtk_menu_new (); gtk_widget_set_size_request (priv->main_panel, MAIN_PANEL_WIDTH, -1); /* Insensitive items */ priv->menu_item[ARTIST_ITEM] = gtk_menu_item_new (); label = gtk_label_new (NULL); gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END); gtk_widget_modify_font (label, get_small_font (label)); gtk_misc_set_alignment (GTK_MISC(label), 0.0, 0.5); gtk_container_add (GTK_CONTAINER (priv->menu_item[ARTIST_ITEM]), label); gtk_widget_set_sensitive (priv->menu_item[ARTIST_ITEM], FALSE); label->state = GTK_STATE_NORMAL; priv->menu_item[TRACK_ITEM] = gtk_menu_item_new (); label = gtk_label_new (NULL); gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END); gtk_widget_modify_font (label, get_small_font (label)); gtk_misc_set_alignment (GTK_MISC(label), 0.0, 0.5); gtk_container_add (GTK_CONTAINER (priv->menu_item[TRACK_ITEM]), label); gtk_widget_set_sensitive (priv->menu_item[TRACK_ITEM], FALSE); label->state = GTK_STATE_NORMAL; priv->menu_item[ALBUM_ITEM] = gtk_menu_item_new (); label = gtk_label_new (NULL); gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END); gtk_widget_modify_font (label, get_small_font (label)); gtk_misc_set_alignment (GTK_MISC(label), 0.0, 0.5); gtk_container_add (GTK_CONTAINER (priv->menu_item[ALBUM_ITEM]), label); gtk_widget_set_sensitive (priv->menu_item[ALBUM_ITEM], FALSE); label->state = GTK_STATE_NORMAL; /* Active items */ priv->menu_item[PLAY_ITEM] = gtk_menu_item_new_with_label (PLAY_ITEM_STRING); priv->menu_item[STOP_ITEM] = gtk_menu_item_new_with_label (STOP_ITEM_STRING); priv->menu_item[NEXT_ITEM] = gtk_menu_item_new_with_label (SKIP_ITEM_STRING); priv->menu_item[LOVE_ITEM] = gtk_menu_item_new_with_label (LOVE_ITEM_STRING); priv->menu_item[BAN_ITEM] = gtk_menu_item_new_with_label (BAN_ITEM_STRING); priv->menu_item[SHOW_WIN_ITEM] = gtk_menu_item_new_with_label (SHOW_APP_ITEM_STRING); priv->menu_item[QUIT_ITEM] = gtk_menu_item_new_with_label (CLOSE_APP_ITEM_STRING); /* Add items to main_panel */ gtk_menu_append (priv->main_panel, priv->menu_item[ARTIST_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[TRACK_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[ALBUM_ITEM]); gtk_menu_append (priv->main_panel, gtk_separator_menu_item_new ()); gtk_menu_append (priv->main_panel, priv->menu_item[PLAY_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[STOP_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[NEXT_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[LOVE_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[BAN_ITEM]); gtk_menu_append (priv->main_panel, gtk_separator_menu_item_new ()); gtk_menu_append (priv->main_panel, priv->menu_item[SHOW_WIN_ITEM]); gtk_menu_append (priv->main_panel, priv->menu_item[QUIT_ITEM]); /* Connect signals */ priv->main_panel_handler_id = g_signal_connect(priv->main_panel, "selection-done", G_CALLBACK(main_panel_hidden), vsbp); priv->menu_handler_id[PLAY_ITEM] = g_signal_connect(priv->menu_item[PLAY_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); priv->menu_handler_id[STOP_ITEM] = g_signal_connect(priv->menu_item[STOP_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); priv->menu_handler_id[NEXT_ITEM] = g_signal_connect(priv->menu_item[NEXT_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); priv->menu_handler_id[LOVE_ITEM] = g_signal_connect(priv->menu_item[LOVE_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); priv->menu_handler_id[BAN_ITEM] = g_signal_connect(priv->menu_item[BAN_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); priv->menu_handler_id[SHOW_WIN_ITEM] = g_signal_connect(priv->menu_item[SHOW_WIN_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); priv->menu_handler_id[QUIT_ITEM] = g_signal_connect(priv->menu_item[QUIT_ITEM], "activate", G_CALLBACK (main_panel_item_activated), vsbp); /* Show widgets */ gtk_widget_show_all (priv->main_panel); } static void main_panel_update (VglSbPlugin *vsbp) { VglSbPluginPrivate *priv = vsbp->priv; gboolean np = priv->now_playing; GtkWidget *label; if (!priv->running_app) { /* Application closed */ priv->is_visible = FALSE; priv->now_playing = FALSE; } /* Adjust sentitiveness for main_panel items and show/hide buttons */ gtk_widget_set_sensitive (priv->menu_item[PLAY_ITEM], !np); gtk_widget_set_sensitive (priv->menu_item[STOP_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[NEXT_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[LOVE_ITEM], np); gtk_widget_set_sensitive (priv->menu_item[BAN_ITEM], np); if (np) { gtk_widget_hide (priv->menu_item[PLAY_ITEM]); gtk_widget_show (priv->menu_item[STOP_ITEM]); } else { /* Not playing: set default strings */ set_track_info (vsbp, NULL, NULL, NULL); gtk_widget_show (priv->menu_item[PLAY_ITEM]); gtk_widget_hide (priv->menu_item[STOP_ITEM]); } /* Detail labels */ label = gtk_bin_get_child (GTK_BIN (priv->menu_item[ARTIST_ITEM])); gtk_label_set_markup (GTK_LABEL (label), priv->artist_string); label = gtk_bin_get_child (GTK_BIN (priv->menu_item[TRACK_ITEM])); gtk_label_set_markup (GTK_LABEL (label), priv->track_string); /* Show / hide the album label depending on its availability */ if (priv->album_string != NULL) { label = gtk_bin_get_child ( GTK_BIN (priv->menu_item[ALBUM_ITEM])); gtk_label_set_markup (GTK_LABEL (label), priv->album_string); gtk_widget_show (priv->menu_item[ALBUM_ITEM]); } else { gtk_widget_hide (priv->menu_item[ALBUM_ITEM]); } } /* Signals handlers */ static void main_panel_position_func (GtkMenu *main_panel, gint *x, gint *y, gboolean *push_in, gpointer data) { VglSbPluginPrivate *priv = VGL_SB_PLUGIN (data)->priv; GtkRequisition req; gtk_widget_size_request (GTK_WIDGET (main_panel->toplevel), &req); gdk_window_get_origin (priv->button->window, x, y); *x += (priv->button->allocation.x + priv->button->allocation.width - req.width); *y += (priv->button->allocation.y + priv->button->allocation.height + 10); } static void plugin_btn_toggled (GtkWidget *button, gpointer data) { VglSbPlugin *vsbp = VGL_SB_PLUGIN (data); if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (button))) return; g_debug ("Plugin button toggled"); gtk_menu_popup (GTK_MENU (vsbp->priv->main_panel), NULL, NULL, main_panel_position_func, vsbp, 1, gtk_get_current_event_time ()); } static void main_panel_item_activated (GtkWidget *item, gpointer data) { VglSbPlugin *vsbp = VGL_SB_PLUGIN (data); VglSbPluginPrivate *priv = vsbp->priv; const gboolean interactive = TRUE; if (item == priv->menu_item[PLAY_ITEM]) { dbus_send_request (vsbp, APP_DBUS_METHOD_PLAY); g_debug ("DBUS request sent: Play"); } else if (item == priv->menu_item[STOP_ITEM]) { dbus_send_request (vsbp, APP_DBUS_METHOD_STOP); g_debug ("DBUS request sent: Stop"); } else if (item == priv->menu_item[NEXT_ITEM]) { dbus_send_request (vsbp, APP_DBUS_METHOD_SKIP); g_debug ("DBUS request sent: Skip"); } else if (item == priv->menu_item[LOVE_ITEM]) { dbus_send_request_with_params (vsbp, APP_DBUS_METHOD_LOVETRACK, DBUS_TYPE_BOOLEAN, &interactive, DBUS_TYPE_INVALID); g_debug ("DBUS request sent: LoveTrack"); } else if (item == priv->menu_item[BAN_ITEM]) { dbus_send_request_with_params (vsbp, APP_DBUS_METHOD_BANTRACK, DBUS_TYPE_BOOLEAN, &interactive, DBUS_TYPE_INVALID); g_debug ("DBUS request sent: BanTrack"); } else if (item == priv->menu_item[SHOW_WIN_ITEM]) { dbus_send_request (vsbp, APP_DBUS_METHOD_SHOWWINDOW); g_debug ("DBUS request sent: Show application"); } else if (item == priv->menu_item[QUIT_ITEM]) { dbus_send_request (vsbp, APP_DBUS_METHOD_CLOSEAPP); g_debug ("DBUS request sent: Close application"); } else { g_debug ("Unknown action"); } } static void main_panel_hidden (GtkWidget *main_panel, gpointer data) { VglSbPlugin *vsbp = VGL_SB_PLUGIN (data); VglSbPluginPrivate *priv = vsbp->priv; g_debug ("Main panel hidden"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(priv->button), FALSE); } /* Utility functions */ static gboolean vagalume_running (VglSbPlugin *vsbp) { HDWM *hdwm; HDWMEntryInfo *info = NULL; GList *apps_list = NULL; GList *l = NULL; gchar *appname = NULL; gboolean app_found = FALSE; hdwm = hd_wm_get_singleton (); hd_wm_update_client_list (hdwm); apps_list = hd_wm_get_applications (hdwm); g_debug ("Searching for application: %s", APP_NAME); for (l = apps_list; l; l = l->next) { info = (HDWMEntryInfo *) l->data; if (appname != NULL) g_free (appname); appname = hd_wm_entry_info_get_app_name (info); g_debug ("Application\n\tApp:'%s', Title:'%s'", hd_wm_entry_info_get_app_name (info), hd_wm_entry_info_get_title (info)); if (appname && !strcmp (APP_NAME, appname)) { app_found = TRUE; break; } } /* Free resources */ g_free (appname); return app_found; } vagalume-0.8.6/src/dbus.c0000644000000000000000000004500712233552617012121 00000000000000/* * dbus.c -- D-BUS interface * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Mario Sanchez Prada * Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "dbus.h" #include "compat.h" #include #include #include #include #include static DBusConnection *dbus_connection = NULL; static gboolean dbus_filter_added = FALSE; static void player_stopped_cb (VglController *ctrl, gpointer data) { lastfm_dbus_notify_playback (NULL); } static void track_started_cb (VglController *ctrl, LastfmTrack *track, gpointer data) { lastfm_dbus_notify_playback (track); } static void controller_destroyed_cb (gpointer data, GObject *controller) { lastfm_dbus_notify_closing(); lastfm_dbus_close(); } static gboolean playurl_handler_idle (gpointer data) { g_return_val_if_fail(data != NULL, FALSE); char *url = (char *) data; controller_play_radio_by_url(url); g_free(url); return FALSE; } static gboolean play_handler_idle (gpointer data) { controller_start_playing(); return FALSE; } static gboolean stop_handler_idle (gpointer data) { controller_stop_playing(); return FALSE; } static gboolean skip_handler_idle (gpointer data) { controller_skip_track(); return FALSE; } static gboolean lovetrack_handler_idle (gpointer data) { gboolean interactive = (gboolean)GPOINTER_TO_INT(data); controller_love_track(interactive); return FALSE; } static gboolean bantrack_handler_idle (gpointer data) { gboolean interactive = (gboolean)GPOINTER_TO_INT(data); controller_ban_track(interactive); return FALSE; } static gboolean showwindow_handler_idle (gpointer data) { gboolean show = GPOINTER_TO_INT(data); controller_show_mainwin(show); return FALSE; } static gboolean volumechange_handler_idle (gpointer data) { gint volchange = GPOINTER_TO_INT(data); controller_increase_volume(volchange); return FALSE; } static gboolean volumeset_handler_idle (gpointer data) { gint vol = GPOINTER_TO_INT(data); controller_set_volume(vol); return FALSE; } static gboolean requeststatus_handler_idle (gpointer data) { LastfmTrack *current_track = NULL; current_track = controller_get_current_track(); lastfm_dbus_notify_playback(current_track); return FALSE; } #ifdef HAVE_GSD_MEDIA_PLAYER_KEYS static gboolean gsd_mp_keys_handler_idle (gpointer data) { g_return_val_if_fail (data != NULL, FALSE); gchar *key_pressed = (gchar *) data; GCallback key_handler = NULL; if (g_str_equal(key_pressed, GSD_DBUS_MK_KEYPRESSED_STOP)) { key_handler = controller_stop_playing; } else if (g_str_equal(key_pressed, GSD_DBUS_MK_KEYPRESSED_PLAY) && (controller_get_current_track () == NULL)) { key_handler = controller_start_playing; } else if (g_str_equal(key_pressed, GSD_DBUS_MK_KEYPRESSED_NEXT)) { key_handler = controller_skip_track; } if (key_handler) { key_handler (); } /* Free passed memory */ g_free (key_pressed); return FALSE; } static void grab_media_player_keys (void) { DBusMessage *dbus_msg = NULL; gchar *app_name = g_strdup (APP_NAME); guint32 unknown; dbus_msg = dbus_message_new_method_call(GSD_DBUS_SERVICE, GSD_DBUS_MK_OBJECT, GSD_DBUS_MK_IFACE, GSD_DBUS_MK_GRAB_KEYS); dbus_message_append_args (dbus_msg, DBUS_TYPE_STRING, &app_name, DBUS_TYPE_UINT32, &unknown, DBUS_TYPE_INVALID); dbus_connection_send (dbus_connection, dbus_msg, 0); dbus_connection_flush (dbus_connection); dbus_message_unref (dbus_msg); g_free (app_name); } static void release_media_player_keys (void) { DBusMessage *dbus_msg = NULL; gchar *app_name = g_strdup (APP_NAME); dbus_msg = dbus_message_new_method_call(GSD_DBUS_SERVICE, GSD_DBUS_MK_OBJECT, GSD_DBUS_MK_IFACE, GSD_DBUS_MK_RELEASE_KEYS); dbus_message_append_args (dbus_msg, DBUS_TYPE_STRING, &app_name, DBUS_TYPE_INVALID); dbus_connection_send (dbus_connection, dbus_msg, 0); dbus_connection_flush (dbus_connection); dbus_message_unref (dbus_msg); g_free (app_name); } #endif /* HAVE_GSD_MEDIA_PLAYER_KEYS */ static gboolean closeapp_handler_idle (gpointer data) { controller_quit_app(); return FALSE; } static void send_message (char *message, int first_type, ...) { DBusMessage *dbus_msg = NULL; va_list ap; dbus_msg = dbus_message_new_signal(APP_DBUS_OBJECT, APP_DBUS_IFACE, message); if (first_type != DBUS_TYPE_INVALID) { va_start (ap, first_type); dbus_message_append_args_valist (dbus_msg, first_type, ap); va_end (ap); } dbus_connection_send (dbus_connection, dbus_msg, 0); dbus_connection_flush (dbus_connection); dbus_message_unref (dbus_msg); } void lastfm_dbus_notify_playback (LastfmTrack *track) { const char *param = NULL; if (track != NULL) { /* Now playing */ param = APP_DBUS_SIGNAL_NOTIFY_PLAYING; send_message(APP_DBUS_SIGNAL_NOTIFY, DBUS_TYPE_STRING, ¶m, DBUS_TYPE_STRING, &track->artist, DBUS_TYPE_STRING, &track->title, DBUS_TYPE_STRING, &track->album, DBUS_TYPE_INVALID); } else { /* Stopped */ param = APP_DBUS_SIGNAL_NOTIFY_STOPPED; send_message(APP_DBUS_SIGNAL_NOTIFY, DBUS_TYPE_STRING, ¶m, DBUS_TYPE_INVALID); } } void lastfm_dbus_notify_started (void) { const char *param = APP_DBUS_SIGNAL_NOTIFY_STARTED; send_message(APP_DBUS_SIGNAL_NOTIFY, DBUS_TYPE_STRING, ¶m, DBUS_TYPE_INVALID); } void lastfm_dbus_notify_closing (void) { const char *param = APP_DBUS_SIGNAL_NOTIFY_CLOSING; send_message(APP_DBUS_SIGNAL_NOTIFY, DBUS_TYPE_STRING, ¶m, DBUS_TYPE_INVALID); } static gboolean method_is_interactive (DBusMessage *message) { gboolean interactive = FALSE; DBusMessageIter iter; if (dbus_message_iter_init (message, &iter) && dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_BOOLEAN) { dbus_message_iter_get_basic (&iter, &interactive); } return interactive; } void lastfm_dbus_play_radio_url (const char *url) { DBusMessage *dbus_msg = NULL; dbus_msg = dbus_message_new_method_call (APP_DBUS_SERVICE, APP_DBUS_OBJECT, APP_DBUS_IFACE, APP_DBUS_METHOD_PLAYURL); dbus_message_append_args (dbus_msg, DBUS_TYPE_STRING, &url, DBUS_TYPE_INVALID); dbus_connection_send (dbus_connection, dbus_msg, 0); dbus_connection_flush (dbus_connection); dbus_message_unref (dbus_msg); } static DBusHandlerResult dbus_req_handler (DBusConnection *connection, DBusMessage *message, gpointer user_data) { DBusHandlerResult result = DBUS_HANDLER_RESULT_HANDLED; /* Check calls to Vagalume D-Bus methods */ if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_PLAYURL)) { char *url = NULL; dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &url, DBUS_TYPE_INVALID); gdk_threads_add_idle (playurl_handler_idle, g_strdup(url)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_PLAY)) { gdk_threads_add_idle (play_handler_idle, NULL); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_STOP)) { gdk_threads_add_idle (stop_handler_idle, NULL); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_SKIP)) { gdk_threads_add_idle (skip_handler_idle, NULL); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_LOVETRACK)) { gboolean interactive = method_is_interactive (message); gdk_threads_add_idle (lovetrack_handler_idle, GINT_TO_POINTER (interactive)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_BANTRACK)) { gboolean interactive = method_is_interactive (message); gdk_threads_add_idle (bantrack_handler_idle, GINT_TO_POINTER (interactive)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_SHOWWINDOW)) { gdk_threads_add_idle (showwindow_handler_idle, GINT_TO_POINTER(TRUE)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_HIDEWINDOW)) { gdk_threads_add_idle (showwindow_handler_idle, GINT_TO_POINTER(FALSE)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_CLOSEAPP)) { gdk_threads_add_idle (closeapp_handler_idle, NULL); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_VOLUMEUP)) { guint32 inc; dbus_message_get_args(message, NULL, DBUS_TYPE_UINT32, &inc, DBUS_TYPE_INVALID); if (inc == G_MAXUINT32) { inc = 5; } gdk_threads_add_idle (volumechange_handler_idle, GINT_TO_POINTER ((gint) inc)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_VOLUMEDOWN)) { guint32 inc; dbus_message_get_args(message, NULL, DBUS_TYPE_UINT32, &inc, DBUS_TYPE_INVALID); if (inc == G_MAXUINT32) { inc = 5; } gdk_threads_add_idle (volumechange_handler_idle, GINT_TO_POINTER ((gint) -inc)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_SETVOLUME)) { guint32 vol; dbus_message_get_args(message, NULL, DBUS_TYPE_UINT32, &vol, DBUS_TYPE_INVALID); if (vol != G_MAXUINT32) { gdk_threads_add_idle (volumeset_handler_idle, GINT_TO_POINTER ((gint) vol)); } else { g_debug ("No parameter received for " APP_DBUS_METHOD_SETVOLUME); } } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_TOPAPP)) { gdk_threads_add_idle (showwindow_handler_idle, GINT_TO_POINTER(TRUE)); } else if (dbus_message_is_method_call(message, APP_DBUS_IFACE, APP_DBUS_METHOD_REQUEST_STATUS)) { gdk_threads_add_idle (requeststatus_handler_idle, NULL); } else { result = DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } #ifdef HAVE_GSD_MEDIA_PLAYER_KEYS /* Match signals from the Gnome Settings Daemon */ if (dbus_message_is_signal(message, GSD_DBUS_MK_IFACE, GSD_DBUS_MK_KEYPRESSED)) { gchar *app_name = NULL; gchar *key_pressed = NULL; dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &app_name, DBUS_TYPE_STRING, &key_pressed, DBUS_TYPE_INVALID); if (app_name != NULL && key_pressed != NULL && g_str_equal (app_name, APP_NAME)) { gdk_threads_add_idle (gsd_mp_keys_handler_idle, g_strdup (key_pressed)); } result = DBUS_HANDLER_RESULT_HANDLED; } #endif /* HAVE_GSD_MEDIA_PLAYER_KEYS */ /* Send message reply, if needed */ if (result == DBUS_HANDLER_RESULT_HANDLED && !dbus_message_get_no_reply(message)) { DBusMessage *reply = dbus_message_new_method_return(message); dbus_connection_send(connection, reply, NULL); dbus_message_unref(reply); } return result; } DbusInitReturnCode lastfm_dbus_init (VglController *controller) { int result; g_return_val_if_fail (VGL_IS_CONTROLLER (controller), DBUS_INIT_ERROR); g_debug("Initializing D-Bus..."); /* Get D-Bus connection */ dbus_connection = dbus_bus_get(DBUS_BUS_SESSION, NULL); if (!dbus_connection) { g_debug("Unable to get DBUS connection"); return DBUS_INIT_ERROR; } dbus_connection_setup_with_g_main(dbus_connection, NULL); /* Add D-Bus handler */ dbus_filter_added = dbus_connection_add_filter(dbus_connection, dbus_req_handler, NULL, NULL); if (!dbus_filter_added) { g_debug("Unable to add a filter"); return DBUS_INIT_ERROR; } #ifdef HAVE_GSD_MEDIA_PLAYER_KEYS /* Grab media player keys for Vagalume */ grab_media_player_keys(); /* Match gnome-settings-daemon signals for media player keys */ dbus_bus_add_match (dbus_connection, "type='signal',interface='" GSD_DBUS_MK_IFACE "'", NULL); dbus_connection_flush (dbus_connection); #endif /* HAVE_GSD_MEDIA_PLAYER_KEYS */ /* Release name in D-Bus if already present */ if (dbus_bus_name_has_owner(dbus_connection, APP_DBUS_SERVICE, NULL)) { dbus_bus_release_name(dbus_connection, APP_DBUS_SERVICE, NULL); } /* Request name in D-Bus for Vagalume */ result = dbus_bus_request_name(dbus_connection, APP_DBUS_SERVICE, DBUS_NAME_FLAG_DO_NOT_QUEUE, NULL); if (result == -1) { g_debug("Unable to request name on DBUS"); return DBUS_INIT_ERROR; } if (result == DBUS_REQUEST_NAME_REPLY_EXISTS) { g_debug("Another instance is running"); return DBUS_INIT_ALREADY_RUNNING; } g_signal_connect (controller, "player-stopped", G_CALLBACK (player_stopped_cb), NULL); g_signal_connect (controller, "track-started", G_CALLBACK (track_started_cb), NULL); g_object_weak_ref (G_OBJECT (controller), controller_destroyed_cb, NULL); return DBUS_INIT_OK; } void lastfm_dbus_close (void) { /* Remove filter, if added */ if (dbus_filter_added) { dbus_connection_remove_filter (dbus_connection, dbus_req_handler, NULL); } #ifdef HAVE_GSD_MEDIA_PLAYER_KEYS /* Remove matching rules */ dbus_bus_remove_match (dbus_connection, "type='signal',interface='" GSD_DBUS_MK_IFACE "'", NULL); /* Release media player keys for Vagalume */ release_media_player_keys(); #endif /* HAVE_GSD_MEDIA_PLAYER_KEYS */ /* Unref the D-bus connection */ if (dbus_connection) { dbus_connection_unref (dbus_connection); dbus_connection = NULL; } } vagalume-0.8.6/src/vgl-server.c0000644000000000000000000002413112233552617013253 00000000000000/* * vgl-server.c -- Server data * * Copyright (C) 2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "vgl-server.h" #include "globaldefs.h" #include "userconfig.h" #include "util.h" static gboolean initialized = FALSE; #define DEFAULT_SERVER_LIST APP_DATA_DIR "/servers.xml" #define RSP_PARAMS "?hs=true&p=1.2&c=" LASTFM_APP_ID "&v=" LASTFM_APP_VERSION #define HANDSHAKE_PARAMS "radio/handshake.php?version=1.5&platform=" APP_OS_LC static GList *srv_list = NULL; static void vgl_server_destroy (VglServer *srv) { g_free ((gpointer) srv->name); g_free ((gpointer) srv->orig_ws_url); g_free ((gpointer) srv->orig_rsp_url); g_free ((gpointer) srv->ws_base_url); g_free ((gpointer) srv->rsp_base_url); g_free ((gpointer) srv->old_hs_url); g_free ((gpointer) srv->api_key); g_free ((gpointer) srv->api_secret); } static VglServer * vgl_server_new (const char *name, const char *ws_base_url, const char *rsp_base_url, const char *api_key, const char *api_secret, gboolean old_streaming_api, gboolean free_streams) { VglServer *srv; g_return_val_if_fail (name && ws_base_url && rsp_base_url && api_key && api_secret, NULL); srv = vgl_object_new (VglServer, (GDestroyNotify) vgl_server_destroy); srv->name = g_strdup (name); srv->orig_ws_url = g_strdup (ws_base_url); srv->orig_rsp_url = g_strdup (rsp_base_url); srv->ws_base_url = g_strconcat (ws_base_url, "2.0/", NULL); srv->rsp_base_url = g_strconcat (rsp_base_url, RSP_PARAMS, NULL); srv->old_hs_url = g_strconcat (ws_base_url, HANDSHAKE_PARAMS, NULL); srv->api_key = g_strdup (api_key); srv->api_secret = g_strdup (api_secret); srv->old_str_api = old_streaming_api; srv->free_streams = free_streams; return srv; } static VglServer * vgl_server_find_by_name (GList *l, const char *name) { for (; l != NULL; l = l->next) { VglServer *srv = l->data; if (g_str_equal (name, srv->name)) { return srv; } } return NULL; } static char * get_user_servers_file (void) { const char *cfgdir; cfgdir = vgl_user_cfg_get_cfgdir (); if (cfgdir != NULL) { return g_strconcat (cfgdir, "/servers.xml", NULL); } return NULL; } static void write_user_servers_file (GList *l) { char *filename; xmlDoc *doc; xmlNode *root; doc = xmlNewDoc ((xmlChar *) "1.0"); root = xmlNewNode (NULL, (xmlChar *) "servers"); xmlSetProp (root, (xmlChar *) "version", (xmlChar *) "1"); xmlSetProp (root, (xmlChar *) "revision", (xmlChar *) "1"); xmlDocSetRootElement (doc, root); for (; l != NULL; l = l->next) { const VglServer *srv = l->data; xmlNode *node = xmlNewNode (NULL, (xmlChar *) "server"); xmlAddChild (root, node); xml_add_string (node, "name", srv->name); xml_add_string (node, "ws_base_url", srv->orig_ws_url); xml_add_string (node, "rsp_base_url", srv->orig_rsp_url); xml_add_string (node, "api_key", srv->api_key); xml_add_string (node, "api_secret", srv->api_secret); xml_add_string (node, "old_streaming_api", srv->old_str_api ? "1" : "0"); xml_add_string (node, "free_streams", srv->free_streams ? "1" : "0"); } filename = get_user_servers_file (); if (xmlSaveFormatFileEnc (filename, doc, "UTF-8", 1) == -1) { g_critical ("Error writing %s", filename); } g_free (filename); xmlFreeDoc (doc); } static GList * remove_duplicates (GList *l) { GList *dest = NULL; GList *iter; for (iter = l; iter != NULL; iter = iter->next) { VglServer *srv = iter->data; if (vgl_server_find_by_name (dest, srv->name)) { g_debug ("Found duplicate server %s, ignoring...", srv->name); } else { dest = g_list_append (dest, vgl_object_ref (srv)); } } g_list_foreach (l, (GFunc) vgl_object_unref, NULL); g_list_free (l); return dest; } VglServer * vgl_server_list_find_by_name (const char *name) { g_return_val_if_fail (initialized, NULL); g_return_val_if_fail (name != NULL, NULL); return vgl_server_find_by_name (srv_list, name); } static VglServer * parse_server (xmlDoc *doc, xmlNode *node) { VglServer *srv = NULL; char *name, *ws_base_url, *rsp_base_url, *key, *secret; gboolean old_str_api, free_streams; xml_get_string (doc, node, "name", &name); xml_get_string (doc, node, "ws_base_url", &ws_base_url); xml_get_string (doc, node, "rsp_base_url", &rsp_base_url); xml_get_string (doc, node, "api_key", &key); xml_get_string (doc, node, "api_secret", &secret); xml_get_bool (doc, node, "old_streaming_api", &old_str_api); xml_get_bool (doc, node, "free_streams", &free_streams); if ( name && ws_base_url && rsp_base_url && key && secret && *name && *ws_base_url && *rsp_base_url && *key && *secret) { srv = vgl_server_new (name, ws_base_url, rsp_base_url, key, secret, old_str_api, free_streams); g_debug ("Parsed server: %s", name); } else { g_warning ("Error parsing server: %s", (name && *name) ? name : "(unknown)"); } g_free (name); g_free (ws_base_url); g_free (rsp_base_url); g_free (key); g_free (secret); return srv; } static GList * parse_server_file (const char *filename) { GList *servers = NULL; xmlDoc *doc = NULL; xmlNode *root = NULL; xmlNode *node = NULL; if (file_exists (filename)) { doc = xmlParseFile (filename); } if (doc != NULL) { xmlChar *version; root = xmlDocGetRootElement (doc); version = xmlGetProp (root, (xmlChar *) "version"); if (version == NULL || !xmlStrEqual (root->name, (xmlChar *) "servers")) { g_warning ("Error parsing servers file"); } else if (!xmlStrEqual (version, (xmlChar *) "1")) { g_warning ("This servers file is version %s, but " "Vagalume " APP_VERSION " can only " "read version 1", version); } else { node = (xmlNode *) xml_find_node ( root->xmlChildrenNode, "server"); } if (version != NULL) xmlFree (version); } if (node != NULL) { g_debug ("Parsing server file %s", filename); } else { g_debug ("Unable to read %s, skipping", filename); } while (node != NULL) { VglServer *srv = parse_server (doc, node->xmlChildrenNode); servers = g_list_append (servers, srv); node = (xmlNode *) xml_find_node (node->next, "server"); } if (doc != NULL) xmlFreeDoc (doc); return servers; } gboolean vgl_server_import_file (const char *filename) { gboolean found_servers; GList *l; g_return_val_if_fail (initialized, FALSE); l = parse_server_file (filename); found_servers = (l != NULL); if (l != NULL) { char *usercfgfile = get_user_servers_file (); if (usercfgfile) { l = g_list_concat (l, parse_server_file (usercfgfile)); g_free (usercfgfile); l = remove_duplicates (l); } write_user_servers_file (l); /* Update the global server list with the new info */ srv_list = g_list_concat (l, srv_list); srv_list = remove_duplicates (srv_list); } else { g_debug ("No servers found in file %s", filename); } return found_servers; } gboolean vgl_server_list_init (void) { char *usercfgfile; g_return_val_if_fail (!initialized, srv_list != NULL); initialized = TRUE; usercfgfile = get_user_servers_file (); srv_list = parse_server_file (usercfgfile); g_free (usercfgfile); srv_list = g_list_concat (srv_list, parse_server_file (DEFAULT_SERVER_LIST)); srv_list = remove_duplicates (srv_list); return (srv_list != NULL); } void vgl_server_list_finalize (void) { g_return_if_fail (initialized); g_list_foreach (srv_list, (GFunc) vgl_object_unref, NULL); g_list_free (srv_list); srv_list = NULL; initialized = FALSE; } const GList * vgl_server_list_get (void) { g_return_val_if_fail (initialized, NULL); return srv_list; } VglServer * vgl_server_get_default (void) { g_return_val_if_fail (initialized, NULL); return srv_list ? srv_list->data : NULL; } vagalume-0.8.6/src/md5/0000755000000000000000000000000012233553555011561 500000000000000vagalume-0.8.6/src/md5/md5.c0000644000000000000000000002553012233552617012335 00000000000000/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. L. Peter Deutsch ghost@aladdin.com */ /* Independent implementation of MD5 (RFC 1321). This code implements the MD5 Algorithm defined in RFC 1321. It is derived directly from the text of the RFC and not from the reference implementation. The original and principal author of md5.c is L. Peter Deutsch . Other authors are noted in the change history that follows (in reverse chronological order): 1999-11-04 lpd Edited comments slightly for automatic TOC extraction. 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5). 1999-05-03 lpd Original version. */ #include "md5.h" #include #ifdef TEST /* * Compile with -DTEST to create a self-contained executable test program. * The test program should print out the same values as given in section * A.5 of RFC 1321, reproduced below. */ #include main() { static const char *const test[7] = { "", /*d41d8cd98f00b204e9800998ecf8427e*/ "945399884.61923487334tuvga", /*0cc175b9c0f1b6a831c399e269772661*/ "abc", /*900150983cd24fb0d6963f7d28e17f72*/ "message digest", /*f96b697d7cb7938d525a2f31aaf161d0*/ "abcdefghijklmnopqrstuvwxyz", /*c3fcd3d76192e4007dfb496cca67e13b*/ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", /*d174ab98d277d9f5a5611c2c9f419d9f*/ "12345678901234567890123456789012345678901234567890123456789012345678901234567890" /*57edf4a22be3c955ac49da2e2107b67a*/ }; int i; for (i = 0; i < 7; ++i) { md5_state_t state; md5_byte_t digest[16]; int di; md5_init(&state); md5_append(&state, (const md5_byte_t *)test[i], strlen(test[i])); md5_finish(&state, digest); printf("MD5 (\"%s\") = ", test[i]); for (di = 0; di < 16; ++di) printf("%02x", digest[di]); printf("\n"); } return 0; } #endif /* TEST */ /* * For reference, here is the program that computed the T values. */ #if 0 #include main() { int i; for (i = 1; i <= 64; ++i) { unsigned long v = (unsigned long)(4294967296.0 * fabs(sin((double)i))); printf("#define T%d 0x%08lx\n", i, v); } return 0; } #endif /* * End of T computation program. */ #define T1 0xd76aa478 #define T2 0xe8c7b756 #define T3 0x242070db #define T4 0xc1bdceee #define T5 0xf57c0faf #define T6 0x4787c62a #define T7 0xa8304613 #define T8 0xfd469501 #define T9 0x698098d8 #define T10 0x8b44f7af #define T11 0xffff5bb1 #define T12 0x895cd7be #define T13 0x6b901122 #define T14 0xfd987193 #define T15 0xa679438e #define T16 0x49b40821 #define T17 0xf61e2562 #define T18 0xc040b340 #define T19 0x265e5a51 #define T20 0xe9b6c7aa #define T21 0xd62f105d #define T22 0x02441453 #define T23 0xd8a1e681 #define T24 0xe7d3fbc8 #define T25 0x21e1cde6 #define T26 0xc33707d6 #define T27 0xf4d50d87 #define T28 0x455a14ed #define T29 0xa9e3e905 #define T30 0xfcefa3f8 #define T31 0x676f02d9 #define T32 0x8d2a4c8a #define T33 0xfffa3942 #define T34 0x8771f681 #define T35 0x6d9d6122 #define T36 0xfde5380c #define T37 0xa4beea44 #define T38 0x4bdecfa9 #define T39 0xf6bb4b60 #define T40 0xbebfbc70 #define T41 0x289b7ec6 #define T42 0xeaa127fa #define T43 0xd4ef3085 #define T44 0x04881d05 #define T45 0xd9d4d039 #define T46 0xe6db99e5 #define T47 0x1fa27cf8 #define T48 0xc4ac5665 #define T49 0xf4292244 #define T50 0x432aff97 #define T51 0xab9423a7 #define T52 0xfc93a039 #define T53 0x655b59c3 #define T54 0x8f0ccc92 #define T55 0xffeff47d #define T56 0x85845dd1 #define T57 0x6fa87e4f #define T58 0xfe2ce6e0 #define T59 0xa3014314 #define T60 0x4e0811a1 #define T61 0xf7537e82 #define T62 0xbd3af235 #define T63 0x2ad7d2bb #define T64 0xeb86d391 static void md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/) { md5_word_t a = pms->abcd[0], b = pms->abcd[1], c = pms->abcd[2], d = pms->abcd[3]; md5_word_t t; #ifndef ARCH_IS_BIG_ENDIAN # define ARCH_IS_BIG_ENDIAN 1 /* slower, default implementation */ #endif #if ARCH_IS_BIG_ENDIAN /* * On big-endian machines, we must arrange the bytes in the right * order. (This also works on machines of unknown byte order.) */ md5_word_t X[16]; const md5_byte_t *xp = data; int i; for (i = 0; i < 16; ++i, xp += 4) X[i] = xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24); #else /* !ARCH_IS_BIG_ENDIAN */ /* * On little-endian machines, we can process properly aligned data * without copying it. */ md5_word_t xbuf[16]; const md5_word_t *X; if (!((data - (const md5_byte_t *)0) & 3)) { /* data are properly aligned */ X = (const md5_word_t *)data; } else { /* not aligned */ memcpy(xbuf, data, 64); X = xbuf; } #endif #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) /* Round 1. */ /* Let [abcd k s i] denote the operation a = b + ((a + F(b,c,d) + X[k] + T[i]) <<< s). */ #define F(x, y, z) (((x) & (y)) | (~(x) & (z))) #define SET(a, b, c, d, k, s, Ti)\ t = a + F(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 0, 7, T1); SET(d, a, b, c, 1, 12, T2); SET(c, d, a, b, 2, 17, T3); SET(b, c, d, a, 3, 22, T4); SET(a, b, c, d, 4, 7, T5); SET(d, a, b, c, 5, 12, T6); SET(c, d, a, b, 6, 17, T7); SET(b, c, d, a, 7, 22, T8); SET(a, b, c, d, 8, 7, T9); SET(d, a, b, c, 9, 12, T10); SET(c, d, a, b, 10, 17, T11); SET(b, c, d, a, 11, 22, T12); SET(a, b, c, d, 12, 7, T13); SET(d, a, b, c, 13, 12, T14); SET(c, d, a, b, 14, 17, T15); SET(b, c, d, a, 15, 22, T16); #undef SET /* Round 2. */ /* Let [abcd k s i] denote the operation a = b + ((a + G(b,c,d) + X[k] + T[i]) <<< s). */ #define G(x, y, z) (((x) & (z)) | ((y) & ~(z))) #define SET(a, b, c, d, k, s, Ti)\ t = a + G(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 1, 5, T17); SET(d, a, b, c, 6, 9, T18); SET(c, d, a, b, 11, 14, T19); SET(b, c, d, a, 0, 20, T20); SET(a, b, c, d, 5, 5, T21); SET(d, a, b, c, 10, 9, T22); SET(c, d, a, b, 15, 14, T23); SET(b, c, d, a, 4, 20, T24); SET(a, b, c, d, 9, 5, T25); SET(d, a, b, c, 14, 9, T26); SET(c, d, a, b, 3, 14, T27); SET(b, c, d, a, 8, 20, T28); SET(a, b, c, d, 13, 5, T29); SET(d, a, b, c, 2, 9, T30); SET(c, d, a, b, 7, 14, T31); SET(b, c, d, a, 12, 20, T32); #undef SET /* Round 3. */ /* Let [abcd k s t] denote the operation a = b + ((a + H(b,c,d) + X[k] + T[i]) <<< s). */ #define H(x, y, z) ((x) ^ (y) ^ (z)) #define SET(a, b, c, d, k, s, Ti)\ t = a + H(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 5, 4, T33); SET(d, a, b, c, 8, 11, T34); SET(c, d, a, b, 11, 16, T35); SET(b, c, d, a, 14, 23, T36); SET(a, b, c, d, 1, 4, T37); SET(d, a, b, c, 4, 11, T38); SET(c, d, a, b, 7, 16, T39); SET(b, c, d, a, 10, 23, T40); SET(a, b, c, d, 13, 4, T41); SET(d, a, b, c, 0, 11, T42); SET(c, d, a, b, 3, 16, T43); SET(b, c, d, a, 6, 23, T44); SET(a, b, c, d, 9, 4, T45); SET(d, a, b, c, 12, 11, T46); SET(c, d, a, b, 15, 16, T47); SET(b, c, d, a, 2, 23, T48); #undef SET /* Round 4. */ /* Let [abcd k s t] denote the operation a = b + ((a + I(b,c,d) + X[k] + T[i]) <<< s). */ #define I(x, y, z) ((y) ^ ((x) | ~(z))) #define SET(a, b, c, d, k, s, Ti)\ t = a + I(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 0, 6, T49); SET(d, a, b, c, 7, 10, T50); SET(c, d, a, b, 14, 15, T51); SET(b, c, d, a, 5, 21, T52); SET(a, b, c, d, 12, 6, T53); SET(d, a, b, c, 3, 10, T54); SET(c, d, a, b, 10, 15, T55); SET(b, c, d, a, 1, 21, T56); SET(a, b, c, d, 8, 6, T57); SET(d, a, b, c, 15, 10, T58); SET(c, d, a, b, 6, 15, T59); SET(b, c, d, a, 13, 21, T60); SET(a, b, c, d, 4, 6, T61); SET(d, a, b, c, 11, 10, T62); SET(c, d, a, b, 2, 15, T63); SET(b, c, d, a, 9, 21, T64); #undef SET /* Then perform the following additions. (That is increment each of the four registers by the value it had before this block was started.) */ pms->abcd[0] += a; pms->abcd[1] += b; pms->abcd[2] += c; pms->abcd[3] += d; } void md5_init(md5_state_t *pms) { pms->count[0] = pms->count[1] = 0; pms->abcd[0] = 0x67452301; pms->abcd[1] = 0xefcdab89; pms->abcd[2] = 0x98badcfe; pms->abcd[3] = 0x10325476; } void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes) { const md5_byte_t *p = data; int left = nbytes; int offset = (pms->count[0] >> 3) & 63; md5_word_t nbits = (md5_word_t)(nbytes << 3); if (nbytes <= 0) return; /* Update the message length. */ pms->count[1] += nbytes >> 29; pms->count[0] += nbits; if (pms->count[0] < nbits) pms->count[1]++; /* Process an initial partial block. */ if (offset) { int copy = (offset + nbytes > 64 ? 64 - offset : nbytes); memcpy(pms->buf + offset, p, copy); if (offset + copy < 64) return; p += copy; left -= copy; md5_process(pms, pms->buf); } /* Process full blocks. */ for (; left >= 64; p += 64, left -= 64) md5_process(pms, p); /* Process a final partial block. */ if (left) memcpy(pms->buf, p, left); } void md5_finish(md5_state_t *pms, md5_byte_t digest[16]) { static const md5_byte_t pad[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; md5_byte_t data[8]; int i; /* Save the length before padding. */ for (i = 0; i < 8; ++i) data[i] = (md5_byte_t)(pms->count[i >> 2] >> ((i & 3) << 3)); /* Pad to 56 bytes mod 64. */ md5_append(pms, pad, ((55 - (pms->count[0] >> 3)) & 63) + 1); /* Append the length. */ md5_append(pms, data, 8); for (i = 0; i < 16; ++i) digest[i] = (md5_byte_t)(pms->abcd[i >> 2] >> ((i & 3) << 3)); } vagalume-0.8.6/src/md5/md5.h0000644000000000000000000000565012233552617012343 00000000000000/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. L. Peter Deutsch ghost@aladdin.com */ /* Independent implementation of MD5 (RFC 1321). This code implements the MD5 Algorithm defined in RFC 1321. It is derived directly from the text of the RFC and not from the reference implementation. The original and principal author of md5.h is L. Peter Deutsch . Other authors are noted in the change history that follows (in reverse chronological order): 1999-11-04 lpd Edited comments slightly for automatic TOC extraction. 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5); added conditionalization for C++ compilation from Martin Purschke . 1999-05-03 lpd Original version. */ #ifndef md5_INCLUDED # define md5_INCLUDED /* * This code has some adaptations for the Ghostscript environment, but it * will compile and run correctly in any environment with 8-bit chars and * 32-bit ints. Specifically, it assumes that if the following are * defined, they have the same meaning as in Ghostscript: P1, P2, P3, * ARCH_IS_BIG_ENDIAN. */ typedef unsigned char md5_byte_t; /* 8-bit byte */ typedef unsigned int md5_word_t; /* 32-bit word */ /* Define the state of the MD5 Algorithm. */ typedef struct md5_state_s { md5_word_t count[2]; /* message length in bits, lsw first */ md5_word_t abcd[4]; /* digest buffer */ md5_byte_t buf[64]; /* accumulate block */ } md5_state_t; #ifdef __cplusplus extern "C" { #endif /* Initialize the algorithm. */ #ifdef P1 void md5_init(P1(md5_state_t *pms)); #else void md5_init(md5_state_t *pms); #endif /* Append a string to the message. */ #ifdef P3 void md5_append(P3(md5_state_t *pms, const md5_byte_t *data, int nbytes)); #else void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes); #endif /* Finish the message and return the digest. */ #ifdef P2 void md5_finish(P2(md5_state_t *pms, md5_byte_t digest[16])); #else void md5_finish(md5_state_t *pms, md5_byte_t digest[16]); #endif #ifdef __cplusplus } /* end extern "C" */ #endif #endif /* md5_INCLUDED */ vagalume-0.8.6/src/uimisc-gtk.c0000644000000000000000000014145612233552617013245 00000000000000/* * uimisc-gtk.c -- GTK+ UI functions * * Copyright (C) 2007-2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include "uimisc.h" #include "util.h" #include "compat.h" #include #include typedef struct { GtkDialog *dialog; GtkNotebook *nb; GtkEntry *user, *pw, *proxy, *dlentry; GtkComboBoxText *srvcombo; GtkWidget *dlbutton, *scrobble, *discovery, *useproxy, *lowbitrate; GtkWidget *dlfreetracks; #ifdef HAVE_LIBPROXY GtkWidget *sysproxy; #endif GtkWidget *disableconfdiags; GtkWidget *helpbtn; #ifdef SET_IM_STATUS GtkEntry *imtemplateentry; GtkWidget *impidgin, *imgajim, *imgossip, *imtelepathy; #endif #ifdef HAVE_TRAY_ICON GtkWidget *shownotifications; GtkWidget *closetosystray; #endif } usercfgwin; typedef struct { VglObject parent; GtkWindow *window; GtkEntry *entry; GtkComboBox *selcombo; GtkComboBox *globalcombo; LastfmTrack *track; LastfmWsSession *ws_session; char *user; char *tags_artist; char *tags_track; char *tags_album; GtkTreeModel *poptags_artist; GtkTreeModel *poptags_track; GtkTreeModel *poptags_album; GtkTreeModel *nonemodel; GtkTreeModel *retrmodel; TagComboState artist_state, track_state, album_state; } tagwin; typedef struct { tagwin *w; LastfmTrackComponent type; GList *userlist; GList *globallist; } GetTrackTagsData; enum { ARTIST_TRACK_ALBUM_TYPE = 0, ARTIST_TRACK_ALBUM_TEXT, ARTIST_TRACK_ALBUM_NCOLS }; static void tagwin_selcombo_changed (GtkComboBox *combo, gpointer data); static GtkWidget * ui_create_combo_box_entry (const GList *elems) { GtkWidget *combo; GtkEntryCompletion *completion; GtkTreeModel *model; model = ui_create_options_list (elems); combo = gtk_combo_box_text_new_with_entry (); gtk_combo_box_set_model (GTK_COMBO_BOX (combo), GTK_TREE_MODEL(model)); completion = gtk_entry_completion_new (); gtk_entry_completion_set_model (completion, model); gtk_entry_completion_set_text_column (completion, 0); #ifdef HAVE_ENTRY_COMPLETION_INLINE_SELECTION gtk_entry_completion_set_inline_selection (completion, TRUE); #endif gtk_entry_set_completion ( GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo))), completion); g_object_unref (model); g_object_unref (completion); return combo; } void ui_usertag_dialog (GtkWindow *parent, char **user, char **tag, const GList *userlist) { GtkDialog *dialog; GtkWidget *userlabel, *taglabel; GtkWidget *usercombo, *tagentry; GtkEntry *comboentry; GtkTable *table; g_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent)); g_return_if_fail (user != NULL && tag != NULL); dialog = ui_base_dialog (parent, _("User tag radio")); userlabel = gtk_label_new (_("Username:")); taglabel = gtk_label_new (_("Tag:")); usercombo = ui_create_combo_box_entry (userlist); comboentry = GTK_ENTRY (gtk_bin_get_child (GTK_BIN (usercombo))); tagentry = gtk_entry_new (); table = GTK_TABLE (gtk_table_new (2, 2, FALSE)); gtk_table_attach_defaults (table, userlabel, 0, 1, 0, 1); gtk_table_attach_defaults (table, taglabel, 0, 1, 1, 2); gtk_table_attach_defaults (table, usercombo, 1, 2, 0, 1); gtk_table_attach_defaults (table, tagentry, 1, 2, 1, 2); gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area(dialog)), GTK_WIDGET (table)); gtk_entry_set_activates_default (comboentry, TRUE); gtk_entry_set_activates_default (GTK_ENTRY (tagentry), TRUE); gtk_misc_set_alignment (GTK_MISC (userlabel), 0, 0.5); gtk_misc_set_alignment (GTK_MISC (taglabel), 0, 0.5); gtk_table_set_col_spacing (table, 0, 10); gtk_table_set_row_spacing (table, 0, 5); gtk_container_set_border_width (GTK_CONTAINER (table), 10); if (*user != NULL) { gtk_entry_set_text (comboentry, *user); g_free (*user); } if (*tag != NULL) { gtk_entry_set_text (GTK_ENTRY (tagentry), *tag); g_free (*tag); } *user = *tag = NULL; gtk_widget_show_all (GTK_WIDGET (dialog)); if (gtk_dialog_run (dialog) == GTK_RESPONSE_ACCEPT) { *user = g_strstrip (g_strdup (gtk_entry_get_text(comboentry))); *tag = g_strstrip (g_strdup (gtk_entry_get_text ( GTK_ENTRY (tagentry)))); } gtk_widget_destroy (GTK_WIDGET (dialog)); } typedef struct { GtkWindow *win; GtkEntry *entry; } change_dir_selected_data; static void change_dir_selected (GtkWidget *widget, gpointer data) { change_dir_selected_data *d = (change_dir_selected_data *) data; g_return_if_fail(d != NULL && GTK_IS_ENTRY(d->entry)); char *dir; dir = ui_select_download_dir(d->win, gtk_entry_get_text(d->entry)); if (dir != NULL) { gtk_entry_set_text(d->entry, dir); g_free(dir); } } static GtkComboBoxText * usercfg_create_server_combobox (VglUserCfg *cfg) { GtkComboBoxText *combo; const GList *srvlist, *iter; int i; g_return_val_if_fail (cfg != NULL, NULL); combo = GTK_COMBO_BOX_TEXT (gtk_combo_box_text_new ()); srvlist = vgl_server_list_get (); for (iter = srvlist, i = 0; iter != NULL; iter = iter->next, i++) { const VglServer *srv = iter->data; gtk_combo_box_text_append_text (combo, srv->name); if (srv == cfg->server) { gtk_combo_box_set_active (GTK_COMBO_BOX (combo), i); } } return combo; } static void usercfg_help_button_clicked (GtkButton *button, usercfgwin *win) { g_return_if_fail(win != NULL); int page = gtk_notebook_get_current_page(win->nb); GtkWidget *w = gtk_notebook_get_nth_page(win->nb, page); const char *help = g_object_get_data(G_OBJECT(w), "help-message"); ui_info_dialog(GTK_WINDOW(win->dialog), help ? help : _("No help available")); } static void usercfg_user_pw_modified (GObject *obj, GParamSpec *arg, usercfgwin *win) { const char *user = gtk_entry_get_text(win->user); const char *pw = gtk_entry_get_text(win->pw); gboolean userpw = (user && pw && strlen(user) > 0 && strlen(pw) > 0); gtk_dialog_set_response_sensitive(win->dialog, GTK_RESPONSE_ACCEPT, userpw); } static void usercfg_add_account_settings (usercfgwin *win, VglUserCfg *cfg) { g_return_if_fail(win != NULL && GTK_IS_NOTEBOOK(win->nb)); GtkTable *table; GtkWidget *userlabel, *pwlabel, *srvlabel, *scroblabel, *discovlabel; const char *help; /* Create widgets */ table = GTK_TABLE (gtk_table_new (4, 2, FALSE)); userlabel = gtk_label_new(_("Username:")); pwlabel = gtk_label_new(_("Password:")); srvlabel = gtk_label_new(_("Service:")); scroblabel = gtk_label_new(_("Enable scrobbling:")); discovlabel = gtk_label_new(_("Discovery mode:")); win->user = GTK_ENTRY(gtk_entry_new()); win->pw = GTK_ENTRY(gtk_entry_new()); win->srvcombo = usercfg_create_server_combobox (cfg); win->scrobble = gtk_check_button_new(); win->discovery = gtk_check_button_new(); /* Set widget properties */ #ifdef MAEMO /* This disables the automatic capitalization */ hildon_gtk_entry_set_input_mode(win->pw, HILDON_GTK_INPUT_MODE_FULL); #endif gtk_entry_set_visibility(win->pw, FALSE); gtk_entry_set_activates_default(win->user, TRUE); gtk_entry_set_activates_default(win->pw, TRUE); g_signal_connect(G_OBJECT(win->user), "notify::text", G_CALLBACK(usercfg_user_pw_modified), win); g_signal_connect(G_OBJECT(win->pw), "notify::text", G_CALLBACK(usercfg_user_pw_modified), win); /* Set initial values */ gtk_entry_set_text(win->user, cfg->username); gtk_entry_set_text(win->pw, cfg->password); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->scrobble), cfg->enable_scrobbling); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->discovery), cfg->discovery_mode); /* Set the initial state of the OK button */ usercfg_user_pw_modified(NULL, NULL, win); /* Pack widgets */ gtk_table_attach(table, userlabel, 0, 1, 0, 1, 0, 0, 5, 5); gtk_table_attach(table, pwlabel, 0, 1, 1, 2, 0, 0, 5, 5); gtk_table_attach(table, srvlabel, 0, 1, 2, 3, 0, 0, 5, 5); gtk_table_attach(table, scroblabel, 0, 1, 3, 4, 0, 0, 5, 5); gtk_table_attach(table, discovlabel, 0, 1, 4, 5, 0, 0, 5, 5); gtk_table_attach(table, GTK_WIDGET(win->user), 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 5, 5); gtk_table_attach(table, GTK_WIDGET(win->pw), 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 5, 5); gtk_table_attach(table, GTK_WIDGET (win->srvcombo), 1, 2, 2, 3, 0, 0, 5, 5); gtk_table_attach(table, win->scrobble, 1, 2, 3, 4, 0, 0, 5, 5); gtk_table_attach(table, win->discovery, 1, 2, 4, 5, 0, 0, 5, 5); gtk_notebook_append_page(win->nb, GTK_WIDGET(table), gtk_label_new(_("Account"))); /* Set help */ help = _("* Username and password:\nFrom your account.\n\n" "* Service:\nLast.fm-compatible service to connect to.\n\n" "* Scrobbling:\nDisplay the music that you listen to on " "your profile.\n\n" "* Discovery mode:\nDon't play music you've already listened " "to. Requires a Last.fm subscription."); g_object_set_data(G_OBJECT(table), "help-message", (gpointer) help); } #ifdef HAVE_LIBPROXY static void usercfg_sysproxy_toggled (GtkToggleButton *button, usercfgwin *win) { gtk_widget_set_sensitive (GTK_WIDGET (win->proxy), !gtk_toggle_button_get_active (button)); } #endif /* HAVE_LIBPROXY */ static void usercfg_add_connection_settings (usercfgwin *win, VglUserCfg *cfg) { g_return_if_fail(win != NULL && GTK_IS_NOTEBOOK(win->nb)); GtkTable *table; GtkWidget *useproxylabel, *proxylabel, *lowbitratelabel; GString *help = g_string_sized_new (100); gint i; #ifdef HAVE_LIBPROXY GtkWidget *sysproxylabel; #endif /* Create widgets */ table = GTK_TABLE (gtk_table_new (3, 2, FALSE)); useproxylabel = gtk_label_new(_("Use proxy")); proxylabel = gtk_label_new(_("Proxy address:")); lowbitratelabel = gtk_label_new(_("Low bitrate stream")); win->proxy = GTK_ENTRY(gtk_entry_new()); win->useproxy = gtk_check_button_new(); win->lowbitrate = gtk_check_button_new(); /* Set widget properties */ gtk_entry_set_activates_default(win->proxy, TRUE); /* Set initial values */ gtk_entry_set_text(win->proxy, cfg->http_proxy); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->useproxy), cfg->use_proxy); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->lowbitrate), cfg->low_bitrate); /* Pack widgets */ i = 0; gtk_table_attach (table, useproxylabel, 0, 1, i, i+1, 0, 0, 5, 5); gtk_table_attach (table, win->useproxy, 1, 2, i, i+1, 0, 0, 5, 5); i++; g_string_append (help, _("* Use proxy:\nEnable this to use a proxy.\n\n")); #ifdef HAVE_LIBPROXY sysproxylabel = gtk_label_new (_("Use system-wide proxy")); win->sysproxy = gtk_check_button_new (); g_signal_connect (win->sysproxy, "toggled", G_CALLBACK (usercfg_sysproxy_toggled), win); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (win->sysproxy), cfg->use_system_proxy); gtk_table_attach (table, sysproxylabel, 0, 1, i, i+1, 0, 0, 5, 5); gtk_table_attach (table, win->sysproxy, 1, 2, i, i+1, 0, 0, 5, 5); i++; g_string_append (help, _("* Use system-wide proxy:\nUse the system-wide " "proxy configuration.\n\n")); #endif /* HAVE_LIBPROXY */ gtk_table_attach (table, proxylabel, 0, 1, i, i+1, 0, 0, 5, 5); gtk_table_attach (table, lowbitratelabel, 0, 1, i+1, i+2, 0, 0, 5, 5); gtk_table_attach (table, GTK_WIDGET (win->proxy), 1, 2, i, i+1, GTK_EXPAND | GTK_FILL, 0, 5, 5); gtk_table_attach (table, win->lowbitrate, 1, 2, i+1, i+2, 0, 0, 5, 5); gtk_notebook_append_page(win->nb, GTK_WIDGET(table), gtk_label_new(_("Connection"))); /* Set help */ g_string_append ( help, _("* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth.")); g_object_set_data_full (G_OBJECT (table), "help-message", g_string_free (help, FALSE), g_free); } static void usercfg_add_download_settings (usercfgwin *win, VglUserCfg *cfg) { g_return_if_fail(win != NULL && GTK_IS_NOTEBOOK(win->nb)); GtkTable *table; GtkWidget *dllabel, *autodllabel; const char *help; /* Create widgets */ table = GTK_TABLE (gtk_table_new (3, 3, FALSE)); dllabel = gtk_label_new(_("Select download directory")); autodllabel = gtk_label_new (_("Automatically download free tracks")); win->dlbutton = compat_gtk_button_new(); win->dlentry = GTK_ENTRY(gtk_entry_new()); win->dlfreetracks = gtk_check_button_new (); /* Set widget properties */ gtk_button_set_image(GTK_BUTTON(win->dlbutton), gtk_image_new_from_stock(GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_BUTTON)); /* Set initial values */ gtk_entry_set_text(win->dlentry, cfg->download_dir); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (win->dlfreetracks), cfg->autodl_free_tracks); /* Pack widgets */ gtk_table_attach (table, dllabel, 0, 3, 0, 1, 0, 0, 5, 5); gtk_table_attach (table, GTK_WIDGET (win->dlentry), 0, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 5, 5); gtk_table_attach (table, win->dlbutton, 2, 3, 1, 2, 0, 0, 5, 5); gtk_table_attach (table, autodllabel, 0, 1, 2, 3, 0, 0, 5, 5); gtk_table_attach (table, win->dlfreetracks, 1, 3, 2, 3, 0, 0, 5, 5); gtk_notebook_append_page(win->nb, GTK_WIDGET(table), gtk_label_new(_("Download"))); /* Set help */ help = _("* Download directory:\nWhere to download mp3 files. " "Note that you can only download those songs " "marked as freely downloadable by the server."); g_object_set_data(G_OBJECT(table), "help-message", (gpointer) help); } static void usercfg_add_imstatus_settings (usercfgwin *win, VglUserCfg *cfg) { #ifdef SET_IM_STATUS g_return_if_fail(win != NULL && GTK_IS_NOTEBOOK(win->nb)); GtkTable *table; GtkWidget *impidginlabel, *imgajimlabel, *imgossiplabel; GtkWidget *imtemplatelabel, *imtelepathylabel; const char *help; /* Create widgets */ table = GTK_TABLE (gtk_table_new (5, 2, FALSE)); imtemplatelabel = gtk_label_new(_("IM message template:")); impidginlabel = gtk_label_new(_("Update Pidgin status:")); imgajimlabel = gtk_label_new(_("Update Gajim status:")); imgossiplabel = gtk_label_new(_("Update Gossip status:")); imtelepathylabel = gtk_label_new(_("Update Telepathy status:")); win->imtemplateentry = GTK_ENTRY(gtk_entry_new()); win->impidgin = gtk_check_button_new(); win->imgajim = gtk_check_button_new(); win->imgossip = gtk_check_button_new(); win->imtelepathy = gtk_check_button_new(); /* Set initial values */ gtk_entry_set_text(win->imtemplateentry, cfg->imstatus_template); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->impidgin), cfg->im_pidgin); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->imgajim), cfg->im_gajim); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->imgossip), cfg->im_gossip); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->imtelepathy), cfg->im_telepathy); /* Pack widgets */ gtk_table_attach(table, imtemplatelabel, 0, 1, 0, 1, 0, 0, 5, 5); gtk_table_attach(table, impidginlabel, 0, 1, 1, 2, 0, 0, 5, 5); gtk_table_attach(table, imgajimlabel, 0, 1, 2, 3, 0, 0, 5, 5); gtk_table_attach(table, imgossiplabel, 0, 1, 3, 4, 0, 0, 5, 5); gtk_table_attach(table, imtelepathylabel, 0, 1, 4, 5, 0, 0, 5, 5); gtk_table_attach(table, GTK_WIDGET(win->imtemplateentry), 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 5, 5); gtk_table_attach(table, win->impidgin, 1, 2, 1, 2, 0, 0, 5, 5); gtk_table_attach(table, win->imgajim, 1, 2, 2, 3, 0, 0, 5, 5); gtk_table_attach(table, win->imgossip, 1, 2, 3, 4, 0, 0, 5, 5); gtk_table_attach(table, win->imtelepathy, 1, 2, 4, 5, 0, 0, 5, 5); gtk_notebook_append_page(win->nb, GTK_WIDGET(table), gtk_label_new(_("Update IM status"))); /* Set help */ help = _("Vagalume can update the status message of your IM client " "each time a new song starts. The template can contain the " "following keywords:\n\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version"); g_object_set_data(G_OBJECT(table), "help-message", (gpointer) help); #endif } static void usercfg_add_misc_settings (usercfgwin *win, VglUserCfg *cfg) { g_return_if_fail(win != NULL && GTK_IS_NOTEBOOK(win->nb)); GtkTable *table; GtkWidget *disableconfdiagslabel; GString *help = g_string_sized_new(100); #ifdef HAVE_TRAY_ICON GtkWidget *shownotificationslabel; GtkWidget *closetosystraylabel; table = GTK_TABLE (gtk_table_new (3, 2, FALSE)); #else table = GTK_TABLE (gtk_table_new (1, 2, FALSE)); #endif /* Disable confirm dialogs */ disableconfdiagslabel = gtk_label_new(_("Disable confirmation dialogs:")); win->disableconfdiags = gtk_check_button_new(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->disableconfdiags), cfg->disable_confirm_dialogs); gtk_table_attach(table, disableconfdiagslabel, 0, 1, 0, 1, 0, 0, 5, 5); gtk_table_attach(table, win->disableconfdiags, 1, 2, 0, 1, 0, 0, 5, 5); g_string_append(help, _("* Disable confirmation dialogs:\n" "Don't ask for confirmation when " "loving/banning tracks.")); #ifdef HAVE_TRAY_ICON /* Show playback notifications */ shownotificationslabel = gtk_label_new(_("Show playback notifications:")); win->shownotifications = gtk_check_button_new(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->shownotifications), cfg->show_notifications); gtk_table_attach(table, shownotificationslabel, 0, 1, 1, 2, 0, 0, 5, 5); gtk_table_attach(table, win->shownotifications, 1, 2, 1, 2, 0, 0, 5, 5); g_string_append(help, _("\n\n* Show playback notifications:\n" "Pop up a notification box each time " "a new song starts.\n\n")); /* Close window to systray */ closetosystraylabel = gtk_label_new(_("Close to systray:")); win->closetosystray = gtk_check_button_new(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->closetosystray), cfg->close_to_systray); gtk_table_attach(table, closetosystraylabel, 0, 1, 2, 3, 0, 0, 5, 5); gtk_table_attach(table, win->closetosystray, 1, 2, 2, 3, 0, 0, 5, 5); g_string_append(help, _("* Close to systray:\n" "Hide the Vagalume window when " "the close button is pressed.")); #endif /* Add page to notebook */ gtk_notebook_append_page(win->nb, GTK_WIDGET(table), gtk_label_new(_("Misc"))); /* Set help */ g_object_set_data_full(G_OBJECT(table), "help-message", g_string_free(help, FALSE), g_free); } gboolean ui_usercfg_window (GtkWindow *parent, VglUserCfg **cfg) { g_return_val_if_fail(cfg != NULL, FALSE); change_dir_selected_data *windata; gboolean changed = FALSE; usercfgwin win; const VglUserCfg *origcfg = *cfg; if (*cfg == NULL) *cfg = vgl_user_cfg_new(); memset (&win, 0, sizeof(win)); win.dialog = ui_base_dialog(parent, _("User settings")); win.nb = GTK_NOTEBOOK(gtk_notebook_new()); win.helpbtn = gtk_button_new_from_stock(GTK_STOCK_HELP); gtk_box_pack_start (GTK_BOX (gtk_dialog_get_action_area (win.dialog)), win.helpbtn, FALSE, FALSE, 0); gtk_button_box_set_child_secondary ( GTK_BUTTON_BOX (gtk_dialog_get_action_area (win.dialog)), win.helpbtn, TRUE); usercfg_add_account_settings(&win, *cfg); usercfg_add_connection_settings(&win, *cfg); usercfg_add_download_settings(&win, *cfg); usercfg_add_imstatus_settings(&win, *cfg); usercfg_add_misc_settings(&win, *cfg); gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (win.dialog)), GTK_WIDGET (win.nb), FALSE, FALSE, 10); windata = g_slice_new(change_dir_selected_data); windata->win = GTK_WINDOW(win.dialog); windata->entry = GTK_ENTRY(win.dlentry); g_signal_connect(G_OBJECT(win.dlbutton), "clicked", G_CALLBACK(change_dir_selected), windata); g_signal_connect(G_OBJECT(win.helpbtn), "clicked", G_CALLBACK(usercfg_help_button_clicked), &win); gtk_widget_show_all(GTK_WIDGET(win.dialog)); if (gtk_dialog_run(win.dialog) == GTK_RESPONSE_ACCEPT) { vgl_user_cfg_set_username(*cfg, gtk_entry_get_text(win.user)); vgl_user_cfg_set_password(*cfg, gtk_entry_get_text(win.pw)); vgl_user_cfg_set_http_proxy(*cfg, gtk_entry_get_text(win.proxy)); vgl_user_cfg_set_download_dir(*cfg, gtk_entry_get_text(win.dlentry)); vgl_user_cfg_set_server_name( *cfg, gtk_combo_box_text_get_active_text (win.srvcombo)); (*cfg)->enable_scrobbling = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.scrobble)); (*cfg)->discovery_mode = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.discovery)); (*cfg)->use_proxy = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.useproxy)); #ifdef HAVE_LIBPROXY (*cfg)->use_system_proxy = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.sysproxy)); #endif (*cfg)->low_bitrate = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.lowbitrate)); (*cfg)->autodl_free_tracks = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.dlfreetracks)); #ifdef SET_IM_STATUS vgl_user_cfg_set_imstatus_template(*cfg, gtk_entry_get_text(win.imtemplateentry)); (*cfg)->im_pidgin = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.impidgin)); (*cfg)->im_gajim = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.imgajim)); (*cfg)->im_gossip = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.imgossip)); (*cfg)->im_telepathy = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.imtelepathy)); #endif (*cfg)->disable_confirm_dialogs = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.disableconfdiags)); #ifdef HAVE_TRAY_ICON (*cfg)->show_notifications = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.shownotifications)); (*cfg)->close_to_systray = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(win.closetosystray)); #endif changed = TRUE; } else if (origcfg == NULL) { /* If settings haven't been modified, restore the original pointer if it was NULL */ vgl_user_cfg_destroy(*cfg); *cfg = NULL; } gtk_widget_destroy(GTK_WIDGET(win.dialog)); g_slice_free(change_dir_selected_data, windata); return changed; } char * ui_input_dialog_with_list (GtkWindow *parent, const char *title, const char *text, const GList *elems, const char *value) { GtkDialog *dialog; GtkWidget *label; GtkWidget *combo; GtkEntry *entry; GtkBox *vbox; char *retvalue = NULL; dialog = ui_base_dialog(parent, title); vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); label = gtk_label_new(text); combo = ui_create_combo_box_entry(elems); entry = GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo))); gtk_box_pack_start (vbox, label, FALSE, FALSE, 10); gtk_box_pack_start (vbox, combo, FALSE, FALSE, 10); gtk_widget_show_all(GTK_WIDGET(dialog)); if (value != NULL) { gtk_entry_set_text (entry, value); } gtk_entry_set_activates_default (entry, TRUE); if (gtk_dialog_run(dialog) == GTK_RESPONSE_ACCEPT) { retvalue = g_strstrip (g_strdup (gtk_entry_get_text (entry))); } gtk_widget_destroy(GTK_WIDGET(dialog)); return retvalue; } static GtkComboBox * artist_track_album_selection_combo (const LastfmTrack *t) { char *text; GtkWidget *combo; GtkCellRenderer *renderer; GtkTreeIter iter; GtkListStore *store; store = gtk_list_store_new(ARTIST_TRACK_ALBUM_NCOLS, G_TYPE_INT, G_TYPE_STRING); text = g_strconcat(_("Artist: "), t->artist, NULL); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, ARTIST_TRACK_ALBUM_TYPE, LASTFM_TRACK_COMPONENT_ARTIST, ARTIST_TRACK_ALBUM_TEXT, text, -1); g_free(text); text = g_strconcat(_("Track: "), t->title, NULL); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, ARTIST_TRACK_ALBUM_TYPE, LASTFM_TRACK_COMPONENT_TRACK, ARTIST_TRACK_ALBUM_TEXT, text, -1); g_free(text); if (t->album[0] != '\0') { text = g_strconcat(_("Album: "), t->album, NULL); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, ARTIST_TRACK_ALBUM_TYPE, LASTFM_TRACK_COMPONENT_ALBUM, ARTIST_TRACK_ALBUM_TEXT, text, -1); g_free(text); } combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)); g_object_unref (store); renderer = gtk_cell_renderer_text_new(); g_object_set(renderer, "ellipsize", PANGO_ELLIPSIZE_END, "ellipsize-set", TRUE, "width", 300, NULL); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo), renderer, FALSE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo), renderer, "text", 1, NULL); return GTK_COMBO_BOX(combo); } static LastfmTrackComponent artist_track_album_combo_get_selected (GtkComboBox *combo) { g_return_val_if_fail(combo != NULL, 0); GtkTreeModel *model; GtkTreeIter iter; LastfmTrackComponent type; model = gtk_combo_box_get_model(combo); gtk_combo_box_get_active_iter(combo, &iter); gtk_tree_model_get(model, &iter, ARTIST_TRACK_ALBUM_TYPE, &type, -1); return type; } gboolean recommwin_run (GtkWindow *parent, char **user, char **message, const GList *friends, const LastfmTrack *track, LastfmTrackComponent *type) { g_return_val_if_fail(user && message && track && type, FALSE); gboolean retval = FALSE; GtkDialog *dialog; GtkBox *selbox, *userbox, *vbox; GtkWidget *sellabel; GtkComboBox *selcombo; GtkWidget *userlabel, *usercombo; GtkWidget *textframe, *textlabel; GtkTextView *textview; GtkWidget *sw; /* Dialog and basic settings */ dialog = ui_base_dialog(parent, _("Send a recommendation")); vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); gtk_box_set_homogeneous (vbox, FALSE); gtk_box_set_spacing (vbox, 5); /* Combo to select what to recommend */ selbox = GTK_BOX(gtk_hbox_new(FALSE, 5)); sellabel = gtk_label_new(_("Recommend this")); selcombo = artist_track_album_selection_combo(track); gtk_box_pack_start(selbox, sellabel, FALSE, FALSE, 0); gtk_box_pack_start(selbox, GTK_WIDGET(selcombo), TRUE, TRUE, 0); switch (*type) { case LASTFM_TRACK_COMPONENT_ARTIST: gtk_combo_box_set_active(selcombo, 0); break; case LASTFM_TRACK_COMPONENT_TRACK: gtk_combo_box_set_active(selcombo, 1); break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail(track->album[0] != '\0', FALSE); gtk_combo_box_set_active(selcombo, 2); break; default: g_return_val_if_reached(FALSE); break; } /* Combo to select the recipient of the recommendation */ userbox = GTK_BOX(gtk_hbox_new(FALSE, 5)); userlabel = gtk_label_new(_("Send recommendation to")); usercombo = ui_create_combo_box_entry(friends); gtk_entry_set_activates_default ( GTK_ENTRY (gtk_bin_get_child (GTK_BIN (usercombo))), TRUE); gtk_box_pack_start(userbox, userlabel, FALSE, FALSE, 0); gtk_box_pack_start(userbox, usercombo, TRUE, TRUE, 0); /* Message of the recommendation */ textlabel = gtk_label_new(_("Recommendation message")); textframe = gtk_frame_new(NULL); sw = gtk_scrolled_window_new(NULL, NULL); textview = GTK_TEXT_VIEW(gtk_text_view_new()); g_object_set(textframe, "height-request", 50, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_text_view_set_accepts_tab(textview, FALSE); gtk_text_view_set_wrap_mode(textview, GTK_WRAP_WORD_CHAR); gtk_container_add(GTK_CONTAINER(textframe), GTK_WIDGET(sw)); gtk_container_add(GTK_CONTAINER(sw), GTK_WIDGET(textview)); /* Widget packing */ gtk_box_pack_start (vbox, GTK_WIDGET (selbox), FALSE, FALSE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (userbox), FALSE, FALSE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (textlabel), TRUE, TRUE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (textframe), TRUE, TRUE, 0); gtk_widget_show_all(GTK_WIDGET(dialog)); if (gtk_dialog_run(dialog) == GTK_RESPONSE_ACCEPT) { GtkEntry *entry = GTK_ENTRY ( gtk_bin_get_child (GTK_BIN (usercombo))); GtkTextIter start, end; GtkTextBuffer *buf = gtk_text_view_get_buffer(textview); gtk_text_buffer_get_bounds(buf, &start, &end); *message = gtk_text_buffer_get_text(buf, &start, &end, FALSE); *type = artist_track_album_combo_get_selected(selcombo); *user = g_strstrip(g_strdup(gtk_entry_get_text(entry))); retval = TRUE; } else { *message = NULL; *user = NULL; retval = FALSE; } gtk_widget_destroy(GTK_WIDGET(dialog)); return retval; } static void tagwin_destroy (tagwin *w) { gtk_widget_destroy(GTK_WIDGET(w->window)); vgl_object_unref(w->track); vgl_object_unref(w->ws_session); g_free(w->user); g_free(w->tags_artist); g_free(w->tags_track); g_free(w->tags_album); if (w->poptags_artist) g_object_unref(w->poptags_artist); if (w->poptags_track) g_object_unref(w->poptags_track); if (w->poptags_album) g_object_unref(w->poptags_album); if (w->nonemodel) g_object_unref(w->nonemodel); if (w->retrmodel) g_object_unref(w->retrmodel); } static tagwin * tagwin_create (void) { return vgl_object_new (tagwin, (GDestroyNotify) tagwin_destroy); } static gboolean get_track_tags_idle (gpointer userdata) { GetTrackTagsData *data = userdata; GtkTreeModel *model = NULL; char *usertags = str_glist_join (data->userlist, ", "); if (data->globallist != NULL) { model = ui_create_options_list (data->globallist); } switch (data->type) { case LASTFM_TRACK_COMPONENT_ARTIST: data->w->poptags_artist = model; data->w->tags_artist = usertags; data->w->artist_state = TAGCOMBO_STATE_READY; break; case LASTFM_TRACK_COMPONENT_TRACK: data->w->poptags_track = model; data->w->tags_track = usertags; data->w->track_state = TAGCOMBO_STATE_READY; break; case LASTFM_TRACK_COMPONENT_ALBUM: data->w->poptags_album = model; data->w->tags_album = usertags; data->w->album_state = TAGCOMBO_STATE_READY; break; default: g_return_val_if_reached (FALSE); } tagwin_selcombo_changed (data->w->selcombo, data->w); g_list_foreach (data->userlist, (GFunc) g_free, NULL); g_list_free (data->userlist); g_list_foreach (data->globallist, (GFunc) g_free, NULL); g_list_free (data->globallist); vgl_object_unref (data->w); g_slice_free (GetTrackTagsData, data); return FALSE; } static gpointer get_track_tags_thread (gpointer userdata) { GetTrackTagsData *data = userdata; g_return_val_if_fail (data && data->w && data->w->track, NULL); lastfm_ws_get_user_track_tags(data->w->ws_session, data->w->track, data->type, &(data->userlist)); lastfm_ws_get_track_tags (data->w->ws_session, data->w->track, data->type, &(data->globallist)); gdk_threads_add_idle (get_track_tags_idle, data); return NULL; } static void tagwin_selcombo_changed (GtkComboBox *combo, gpointer data) { tagwin *w = (tagwin *) data; GtkTreeModel *model = NULL; const char *usertags = NULL; TagComboState oldstate; LastfmTrackComponent type; type = artist_track_album_combo_get_selected (combo); switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: oldstate = w->artist_state; if (oldstate == TAGCOMBO_STATE_READY) { model = w->poptags_artist; usertags = w->tags_artist; } else { w->artist_state = TAGCOMBO_STATE_LOADING; } break; case LASTFM_TRACK_COMPONENT_TRACK: oldstate = w->track_state; if (oldstate == TAGCOMBO_STATE_READY) { model = w->poptags_track; usertags = w->tags_track; } else { w->track_state = TAGCOMBO_STATE_LOADING; } break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_if_fail(w->track->album[0] != '\0'); oldstate = w->album_state; if (oldstate == TAGCOMBO_STATE_READY) { model = w->poptags_album; usertags = w->tags_album; } else { w->album_state = TAGCOMBO_STATE_LOADING; } break; default: g_return_if_reached(); break; } gtk_widget_set_sensitive(GTK_WIDGET(w->globalcombo), model != NULL); if (oldstate == TAGCOMBO_STATE_READY) { if (model != NULL) { gtk_combo_box_set_model(w->globalcombo, model); } else { gtk_combo_box_set_model(w->globalcombo, w->nonemodel); gtk_combo_box_set_active(w->globalcombo, 0); } gtk_widget_set_sensitive(GTK_WIDGET(w->entry), TRUE); gtk_entry_set_text(w->entry, usertags ? usertags : ""); } else { gtk_combo_box_set_model(w->globalcombo, w->retrmodel); gtk_combo_box_set_active(w->globalcombo, 0); gtk_widget_set_sensitive(GTK_WIDGET(w->entry), FALSE); gtk_entry_set_text(w->entry, _("retrieving...")); } if (oldstate == TAGCOMBO_STATE_NULL) { GetTrackTagsData *data = g_slice_new (GetTrackTagsData); data->w = vgl_object_ref (w); data->type = type; data->userlist = data->globallist = NULL; g_thread_create(get_track_tags_thread, data, FALSE, NULL); } } static void tagwin_tagcombo_changed (GtkComboBox *combo, gpointer data) { if (gtk_combo_box_get_active(combo) == -1 || !gtk_widget_is_sensitive(GTK_WIDGET (combo))) return; tagwin *w = (tagwin *) data; g_return_if_fail(w != NULL && w->entry != NULL); char *current = g_strchomp(g_strdup(gtk_entry_get_text(w->entry))); const char *selected = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT(combo)); char *new; if (current[0] == '\0') { new = g_strdup(selected); } else { int len = strlen(current); if (current[len-1] == ',') { new = g_strconcat(current, " ", selected, NULL); } else { new = g_strconcat(current, ", ", selected, NULL); } } gtk_entry_set_text(w->entry, g_strstrip(new)); g_free(current); g_free(new); } gboolean tagwin_run (GtkWindow *parent, const char *user, char **newtags, const GList *usertags, LastfmWsSession *ws_session, LastfmTrack *track, LastfmTrackComponent *type) { g_return_val_if_fail (ws_session && track && type && user && newtags, FALSE); tagwin *t; gboolean retvalue = FALSE; GtkWidget *sellabel; GtkComboBox *selcombo; GtkWidget *entrylabel, *entry; GtkWidget *userlabel, *usercombo, *globallabel, *globalcombo; GtkTreeModel *usermodel, *nonemodel, *retrmodel; GtkCellRenderer *userrender, *globalrender; GtkDialog *dialog; GtkBox *vbox; GList *nonelist; GtkTable *table; GtkWidget *alig; /* A treemodel for combos with no elements */ nonelist = g_list_append(NULL, _("(none)")); nonemodel = ui_create_options_list(nonelist); g_list_free(nonelist); nonelist = g_list_append(NULL, _("retrieving...")); retrmodel = ui_create_options_list(nonelist); g_list_free(nonelist); /* Dialog and basic settings */ dialog = ui_base_dialog(parent, _("Tagging")); vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); gtk_box_set_homogeneous (vbox, FALSE); gtk_box_set_spacing (vbox, 5); /* Combo to select what to tag */ sellabel = gtk_label_new(_("Tag this")); selcombo = artist_track_album_selection_combo(track); switch (*type) { case LASTFM_TRACK_COMPONENT_ARTIST: gtk_combo_box_set_active(selcombo, 0); break; case LASTFM_TRACK_COMPONENT_TRACK: gtk_combo_box_set_active(selcombo, 1); break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail(track->album[0] != '\0', FALSE); gtk_combo_box_set_active(selcombo, 2); break; default: g_return_val_if_reached(FALSE); break; } /* Text entry */ entrylabel = gtk_label_new(_("Enter a comma-separated\nlist of tags")); gtk_label_set_justify(GTK_LABEL(entrylabel), GTK_JUSTIFY_RIGHT); entry = gtk_entry_new(); gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE); /* Combo boxes */ userlabel = gtk_label_new(_("Your favourite tags")); globallabel = gtk_label_new(_("Popular tags for this")); if (usertags != NULL) { usermodel = ui_create_options_list(usertags); } else { usermodel = g_object_ref(nonemodel); } usercombo = gtk_combo_box_text_new (); gtk_combo_box_set_model (GTK_COMBO_BOX (usercombo), usermodel); gtk_cell_layout_clear (GTK_CELL_LAYOUT (usercombo)); globalcombo = gtk_combo_box_text_new (); gtk_combo_box_set_model (GTK_COMBO_BOX (globalcombo), retrmodel); gtk_cell_layout_clear (GTK_CELL_LAYOUT (globalcombo)); g_object_unref(G_OBJECT(usermodel)); userrender = gtk_cell_renderer_text_new(); globalrender = gtk_cell_renderer_text_new(); g_object_set(userrender, "ellipsize", PANGO_ELLIPSIZE_END, "ellipsize-set", TRUE, "width", 300, NULL); g_object_set(globalrender, "ellipsize", PANGO_ELLIPSIZE_END, "ellipsize-set", TRUE, "width", 300, NULL); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(usercombo), userrender, FALSE); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(globalcombo), globalrender, FALSE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(usercombo), userrender, "text", 0, NULL); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(globalcombo), globalrender, "text", 0, NULL); if (usertags == NULL) { gtk_widget_set_sensitive(GTK_WIDGET(usercombo), FALSE); gtk_combo_box_set_active(GTK_COMBO_BOX(usercombo), 0); } /* Widget packing */ table = GTK_TABLE(gtk_table_new(4, 2, FALSE)); gtk_table_set_row_spacings(table, 5); gtk_table_set_col_spacings(table, 20); gtk_box_pack_start (vbox, GTK_WIDGET(table), TRUE, TRUE, 5); alig = gtk_alignment_new(1, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), sellabel); gtk_table_attach_defaults(table, alig, 0, 1, 0, 1); alig = gtk_alignment_new(0, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), GTK_WIDGET(selcombo)); gtk_table_attach_defaults(table, alig, 1, 2, 0, 1); alig = gtk_alignment_new(1, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), entrylabel); gtk_table_attach_defaults(table, alig, 0, 1, 1, 2); alig = gtk_alignment_new(0, 0.5, 1, 0); gtk_container_add(GTK_CONTAINER(alig), GTK_WIDGET(entry)); gtk_table_attach_defaults(table, alig, 1, 2, 1, 2); alig = gtk_alignment_new(1, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), userlabel); gtk_table_attach_defaults(table, alig, 0, 1, 2, 3); alig = gtk_alignment_new(0, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), usercombo); gtk_table_attach_defaults(table, alig, 1, 2, 2, 3); alig = gtk_alignment_new(1, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), globallabel); gtk_table_attach_defaults(table, alig, 0, 1, 3, 4); alig = gtk_alignment_new(0, 0.5, 0, 0); gtk_container_add(GTK_CONTAINER(alig), globalcombo); gtk_table_attach_defaults(table, alig, 1, 2, 3, 4); t = tagwin_create(); t->track = vgl_object_ref(track); t->ws_session = vgl_object_ref(ws_session); t->window = GTK_WINDOW(dialog); t->entry = GTK_ENTRY(entry); t->selcombo = selcombo; t->globalcombo = GTK_COMBO_BOX(globalcombo); t->nonemodel = nonemodel; t->retrmodel = retrmodel; t->user = g_strdup(user); /* Signals */ g_signal_connect(G_OBJECT(selcombo), "changed", G_CALLBACK(tagwin_selcombo_changed), t); g_signal_connect(G_OBJECT(usercombo), "changed", G_CALLBACK(tagwin_tagcombo_changed), t); g_signal_connect(G_OBJECT(globalcombo), "changed", G_CALLBACK(tagwin_tagcombo_changed), t); tagwin_selcombo_changed(selcombo, t); gtk_widget_grab_focus(entry); gtk_widget_show_all(GTK_WIDGET(dialog)); if (gtk_dialog_run(dialog) == GTK_RESPONSE_ACCEPT) { *newtags = g_strdup(gtk_entry_get_text(t->entry)); *type = artist_track_album_combo_get_selected(selcombo); retvalue = TRUE; } else { *newtags = NULL; retvalue = FALSE; } gtk_widget_hide(GTK_WIDGET(t->window)); vgl_object_unref(t); return retvalue; } vagalume-0.8.6/src/Makefile.in0000644000000000000000000026204412233553544013067 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # This file is part of Vagalume and is published under the GNU GPLv3. # # Copyright (C) 2007-2010 Igalia, S.L. # # See the README file for more details. # VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = vagalume$(EXEEXT) @HILDON_2_2_TRUE@am__append_1 = uimisc-hildon22.c vgl-main-menu-hildon22.c @HILDON_2_2_FALSE@am__append_2 = uimisc-gtk.c vgl-main-menu-gtk.c @SET_IM_STATUS_TRUE@am__append_3 = imstatus.c imstatus.h @USE_INTERNAL_MD5_TRUE@am__append_4 = md5/md5.c md5/md5.h @HAVE_TRAY_ICON_TRUE@am__append_5 = vgl-tray-icon.h vgl-tray-icon.c @HAVE_CONIC_TRUE@am__append_6 = connection.c @HAVE_DBUS_SUPPORT_TRUE@am__append_7 = dbus.c dbus.h subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(sbplugindir)" "$(DESTDIR)$(bindir)" LTLIBRARIES = $(sbplugin_LTLIBRARIES) am__DEPENDENCIES_1 = @HAVE_MAEMO_SB_PLUGIN_TRUE@libvagalumesbplugin_la_DEPENDENCIES = \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ $(am__DEPENDENCIES_1) am__libvagalumesbplugin_la_SOURCES_DIST = dbus.h globaldefs.h \ vgl-sb-plugin.c vgl-sb-plugin.h @HAVE_MAEMO_SB_PLUGIN_TRUE@am_libvagalumesbplugin_la_OBJECTS = libvagalumesbplugin_la-vgl-sb-plugin.lo libvagalumesbplugin_la_OBJECTS = $(am_libvagalumesbplugin_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libvagalumesbplugin_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libvagalumesbplugin_la_CFLAGS) $(CFLAGS) \ $(libvagalumesbplugin_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_MAEMO_SB_PLUGIN_TRUE@am_libvagalumesbplugin_la_rpath = -rpath \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ $(sbplugindir) PROGRAMS = $(bin_PROGRAMS) am__vagalume_SOURCES_DIST = audio.c audio.h compat.c compat.h \ connection.h controller.c controller.h dlwin.c dlwin.h \ globaldefs.h http.c http.h lastfm-ws.c lastfm-ws.h main.c \ playlist.c playlist.h protocol.c protocol.h radio.c radio.h \ scrobbler.c scrobbler.h uimisc.c uimisc.h userconfig.c \ userconfig.h util.c util.h vgl-bookmark-mgr.c \ vgl-bookmark-mgr.h vgl-bookmark-window.c vgl-bookmark-window.h \ vgl-main-menu.h vgl-main-window.c vgl-main-window.h \ vgl-object.c vgl-object.h vgl-server.c vgl-server.h xmlrpc.c \ xmlrpc.h uimisc-hildon22.c vgl-main-menu-hildon22.c \ uimisc-gtk.c vgl-main-menu-gtk.c imstatus.c imstatus.h \ md5/md5.c md5/md5.h vgl-tray-icon.h vgl-tray-icon.c \ connection.c dbus.c dbus.h @HILDON_2_2_TRUE@am__objects_1 = vagalume-uimisc-hildon22.$(OBJEXT) \ @HILDON_2_2_TRUE@ vagalume-vgl-main-menu-hildon22.$(OBJEXT) @HILDON_2_2_FALSE@am__objects_2 = vagalume-uimisc-gtk.$(OBJEXT) \ @HILDON_2_2_FALSE@ vagalume-vgl-main-menu-gtk.$(OBJEXT) @SET_IM_STATUS_TRUE@am__objects_3 = vagalume-imstatus.$(OBJEXT) am__dirstamp = $(am__leading_dot)dirstamp @USE_INTERNAL_MD5_TRUE@am__objects_4 = md5/vagalume-md5.$(OBJEXT) @HAVE_TRAY_ICON_TRUE@am__objects_5 = vagalume-vgl-tray-icon.$(OBJEXT) @HAVE_CONIC_TRUE@am__objects_6 = vagalume-connection.$(OBJEXT) @HAVE_DBUS_SUPPORT_TRUE@am__objects_7 = vagalume-dbus.$(OBJEXT) am_vagalume_OBJECTS = vagalume-audio.$(OBJEXT) \ vagalume-compat.$(OBJEXT) vagalume-controller.$(OBJEXT) \ vagalume-dlwin.$(OBJEXT) vagalume-http.$(OBJEXT) \ vagalume-lastfm-ws.$(OBJEXT) vagalume-main.$(OBJEXT) \ vagalume-playlist.$(OBJEXT) vagalume-protocol.$(OBJEXT) \ vagalume-radio.$(OBJEXT) vagalume-scrobbler.$(OBJEXT) \ vagalume-uimisc.$(OBJEXT) vagalume-userconfig.$(OBJEXT) \ vagalume-util.$(OBJEXT) vagalume-vgl-bookmark-mgr.$(OBJEXT) \ vagalume-vgl-bookmark-window.$(OBJEXT) \ vagalume-vgl-main-window.$(OBJEXT) \ vagalume-vgl-object.$(OBJEXT) vagalume-vgl-server.$(OBJEXT) \ vagalume-xmlrpc.$(OBJEXT) $(am__objects_1) $(am__objects_2) \ $(am__objects_3) $(am__objects_4) $(am__objects_5) \ $(am__objects_6) $(am__objects_7) nodist_vagalume_OBJECTS = vagalume-marshal.$(OBJEXT) vagalume_OBJECTS = $(am_vagalume_OBJECTS) $(nodist_vagalume_OBJECTS) vagalume_DEPENDENCIES = $(am__DEPENDENCIES_1) vagalume_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(vagalume_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libvagalumesbplugin_la_SOURCES) $(vagalume_SOURCES) \ $(nodist_vagalume_SOURCES) DIST_SOURCES = $(am__libvagalumesbplugin_la_SOURCES_DIST) \ $(am__vagalume_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_MAKEFLAGS = @AM_MAKEFLAGS@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BACKUP_CONFIGURATION_DIR = @BACKUP_CONFIGURATION_DIR@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEAR_DEVICE_SCRIPTS_DIR = @CLEAR_DEVICE_SCRIPTS_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_LAST_FM = @DISABLE_LAST_FM@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS = @EXTRA_CFLAGS@ EXTRA_LIBS = @EXTRA_LIBS@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO_CFLAGS = @GIO_CFLAGS@ GIO_LIBS = @GIO_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GStreamer_CFLAGS = @GStreamer_CFLAGS@ GStreamer_LIBS = @GStreamer_LIBS@ Gtk_CFLAGS = @Gtk_CFLAGS@ Gtk_LIBS = @Gtk_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLATFORM = @PLATFORM@ PLATFORMVERS = @PLATFORMVERS@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RESTORE_SETTINGS_SCRIPTS_DIR = @RESTORE_SETTINGS_SCRIPTS_DIR@ SBPLUGIN_CFLAGS = @SBPLUGIN_CFLAGS@ SBPLUGIN_LIBS = @SBPLUGIN_LIBS@ SCR_RESOLUTION = @SCR_RESOLUTION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAGALUME_CONF_FULLPATH = @VAGALUME_CONF_FULLPATH@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ appdatadir = @appdatadir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dbus_CFLAGS = @dbus_CFLAGS@ dbus_LIBS = @dbus_LIBS@ dbus_glib_CFLAGS = @dbus_glib_CFLAGS@ dbus_glib_LIBS = @dbus_glib_LIBS@ desktopentrydir = @desktopentrydir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gconf2_CFLAGS = @gconf2_CFLAGS@ gconf2_LIBS = @gconf2_LIBS@ hildon_CFLAGS = @hildon_CFLAGS@ hildon_LIBS = @hildon_LIBS@ hildondesktop_CFLAGS = @hildondesktop_CFLAGS@ hildondesktop_LIBS = @hildondesktop_LIBS@ hildonfm_CFLAGS = @hildonfm_CFLAGS@ hildonfm_LIBS = @hildonfm_LIBS@ hildonwm_CFLAGS = @hildonwm_CFLAGS@ hildonwm_LIBS = @hildonwm_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ icon48dir = @icon48dir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libconic_CFLAGS = @libconic_CFLAGS@ libconic_LIBS = @libconic_LIBS@ libcurl_CFLAGS = @libcurl_CFLAGS@ libcurl_LIBS = @libcurl_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libnotify_CFLAGS = @libnotify_CFLAGS@ libnotify_LIBS = @libnotify_LIBS@ libosso_CFLAGS = @libosso_CFLAGS@ libosso_LIBS = @libosso_LIBS@ libproxy_CFLAGS = @libproxy_CFLAGS@ libproxy_LIBS = @libproxy_LIBS@ libxml2_CFLAGS = @libxml2_CFLAGS@ libxml2_LIBS = @libxml2_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pixmapdir = @pixmapdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sbplugindesktopentrydir = @sbplugindesktopentrydir@ sbplugindir = @sbplugindir@ serviceentrydir = @serviceentrydir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ themebigicondir = @themebigicondir@ themesmallicondir = @themesmallicondir@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ vagalume_LDADD = $(EXTRA_LIBS) vagalume_CFLAGS = $(EXTRA_CFLAGS) -DAPP_DATA_DIR=\"$(appdatadir)\" \ -DPIXMAP_DIR=\"$(pixmapdir)\" -DICON48_DIR=\"$(icon48dir)\" vagalume_SOURCES = audio.c audio.h compat.c compat.h connection.h \ controller.c controller.h dlwin.c dlwin.h globaldefs.h http.c \ http.h lastfm-ws.c lastfm-ws.h main.c playlist.c playlist.h \ protocol.c protocol.h radio.c radio.h scrobbler.c scrobbler.h \ uimisc.c uimisc.h userconfig.c userconfig.h util.c util.h \ vgl-bookmark-mgr.c vgl-bookmark-mgr.h vgl-bookmark-window.c \ vgl-bookmark-window.h vgl-main-menu.h vgl-main-window.c \ vgl-main-window.h vgl-object.c vgl-object.h vgl-server.c \ vgl-server.h xmlrpc.c xmlrpc.h $(am__append_1) $(am__append_2) \ $(am__append_3) $(am__append_4) $(am__append_5) \ $(am__append_6) $(am__append_7) BUILT_SOURCES = marshal.c marshal.h nodist_vagalume_SOURCES = marshal.c marshal.h CLEANFILES = marshal.c marshal.h EXTRA_DIST = marshal.list @HAVE_MAEMO_SB_PLUGIN_TRUE@sbplugin_LTLIBRARIES = libvagalumesbplugin.la @HAVE_MAEMO_SB_PLUGIN_TRUE@libvagalumesbplugin_la_LDFLAGS = -module -avoid-version @HAVE_MAEMO_SB_PLUGIN_TRUE@libvagalumesbplugin_la_SOURCES = \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ dbus.h \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ globaldefs.h \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ vgl-sb-plugin.c vgl-sb-plugin.h @HAVE_MAEMO_SB_PLUGIN_TRUE@libvagalumesbplugin_la_LIBADD = $(SBPLUGIN_LIBS) @HAVE_MAEMO_SB_PLUGIN_TRUE@libvagalumesbplugin_la_CFLAGS = $(SBPLUGIN_CFLAGS) \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ -DAPP_DATA_DIR=\"$(appdatadir)\" \ @HAVE_MAEMO_SB_PLUGIN_TRUE@ -DPIXMAP_DIR=\"$(pixmapdir)\" all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-sbpluginLTLIBRARIES: $(sbplugin_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(sbplugin_LTLIBRARIES)'; test -n "$(sbplugindir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(sbplugindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbplugindir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(sbplugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(sbplugindir)"; \ } uninstall-sbpluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(sbplugin_LTLIBRARIES)'; test -n "$(sbplugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(sbplugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(sbplugindir)/$$f"; \ done clean-sbpluginLTLIBRARIES: -test -z "$(sbplugin_LTLIBRARIES)" || rm -f $(sbplugin_LTLIBRARIES) @list='$(sbplugin_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libvagalumesbplugin.la: $(libvagalumesbplugin_la_OBJECTS) $(libvagalumesbplugin_la_DEPENDENCIES) $(EXTRA_libvagalumesbplugin_la_DEPENDENCIES) $(AM_V_CCLD)$(libvagalumesbplugin_la_LINK) $(am_libvagalumesbplugin_la_rpath) $(libvagalumesbplugin_la_OBJECTS) $(libvagalumesbplugin_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list md5/$(am__dirstamp): @$(MKDIR_P) md5 @: > md5/$(am__dirstamp) md5/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) md5/$(DEPDIR) @: > md5/$(DEPDIR)/$(am__dirstamp) md5/vagalume-md5.$(OBJEXT): md5/$(am__dirstamp) \ md5/$(DEPDIR)/$(am__dirstamp) vagalume$(EXEEXT): $(vagalume_OBJECTS) $(vagalume_DEPENDENCIES) $(EXTRA_vagalume_DEPENDENCIES) @rm -f vagalume$(EXEEXT) $(AM_V_CCLD)$(vagalume_LINK) $(vagalume_OBJECTS) $(vagalume_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f md5/*.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvagalumesbplugin_la-vgl-sb-plugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-audio.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-compat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-connection.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-controller.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-dbus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-dlwin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-http.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-imstatus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-lastfm-ws.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-marshal.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-playlist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-protocol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-radio.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-scrobbler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-uimisc-gtk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-uimisc-hildon22.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-uimisc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-userconfig.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-bookmark-mgr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-bookmark-window.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-main-menu-gtk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-main-menu-hildon22.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-main-window.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-object.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-server.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-vgl-tray-icon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vagalume-xmlrpc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@md5/$(DEPDIR)/vagalume-md5.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libvagalumesbplugin_la-vgl-sb-plugin.lo: vgl-sb-plugin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvagalumesbplugin_la_CFLAGS) $(CFLAGS) -MT libvagalumesbplugin_la-vgl-sb-plugin.lo -MD -MP -MF $(DEPDIR)/libvagalumesbplugin_la-vgl-sb-plugin.Tpo -c -o libvagalumesbplugin_la-vgl-sb-plugin.lo `test -f 'vgl-sb-plugin.c' || echo '$(srcdir)/'`vgl-sb-plugin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvagalumesbplugin_la-vgl-sb-plugin.Tpo $(DEPDIR)/libvagalumesbplugin_la-vgl-sb-plugin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-sb-plugin.c' object='libvagalumesbplugin_la-vgl-sb-plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvagalumesbplugin_la_CFLAGS) $(CFLAGS) -c -o libvagalumesbplugin_la-vgl-sb-plugin.lo `test -f 'vgl-sb-plugin.c' || echo '$(srcdir)/'`vgl-sb-plugin.c vagalume-audio.o: audio.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-audio.o -MD -MP -MF $(DEPDIR)/vagalume-audio.Tpo -c -o vagalume-audio.o `test -f 'audio.c' || echo '$(srcdir)/'`audio.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-audio.Tpo $(DEPDIR)/vagalume-audio.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='audio.c' object='vagalume-audio.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-audio.o `test -f 'audio.c' || echo '$(srcdir)/'`audio.c vagalume-audio.obj: audio.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-audio.obj -MD -MP -MF $(DEPDIR)/vagalume-audio.Tpo -c -o vagalume-audio.obj `if test -f 'audio.c'; then $(CYGPATH_W) 'audio.c'; else $(CYGPATH_W) '$(srcdir)/audio.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-audio.Tpo $(DEPDIR)/vagalume-audio.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='audio.c' object='vagalume-audio.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-audio.obj `if test -f 'audio.c'; then $(CYGPATH_W) 'audio.c'; else $(CYGPATH_W) '$(srcdir)/audio.c'; fi` vagalume-compat.o: compat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-compat.o -MD -MP -MF $(DEPDIR)/vagalume-compat.Tpo -c -o vagalume-compat.o `test -f 'compat.c' || echo '$(srcdir)/'`compat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-compat.Tpo $(DEPDIR)/vagalume-compat.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='compat.c' object='vagalume-compat.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-compat.o `test -f 'compat.c' || echo '$(srcdir)/'`compat.c vagalume-compat.obj: compat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-compat.obj -MD -MP -MF $(DEPDIR)/vagalume-compat.Tpo -c -o vagalume-compat.obj `if test -f 'compat.c'; then $(CYGPATH_W) 'compat.c'; else $(CYGPATH_W) '$(srcdir)/compat.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-compat.Tpo $(DEPDIR)/vagalume-compat.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='compat.c' object='vagalume-compat.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-compat.obj `if test -f 'compat.c'; then $(CYGPATH_W) 'compat.c'; else $(CYGPATH_W) '$(srcdir)/compat.c'; fi` vagalume-controller.o: controller.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-controller.o -MD -MP -MF $(DEPDIR)/vagalume-controller.Tpo -c -o vagalume-controller.o `test -f 'controller.c' || echo '$(srcdir)/'`controller.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-controller.Tpo $(DEPDIR)/vagalume-controller.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='controller.c' object='vagalume-controller.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-controller.o `test -f 'controller.c' || echo '$(srcdir)/'`controller.c vagalume-controller.obj: controller.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-controller.obj -MD -MP -MF $(DEPDIR)/vagalume-controller.Tpo -c -o vagalume-controller.obj `if test -f 'controller.c'; then $(CYGPATH_W) 'controller.c'; else $(CYGPATH_W) '$(srcdir)/controller.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-controller.Tpo $(DEPDIR)/vagalume-controller.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='controller.c' object='vagalume-controller.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-controller.obj `if test -f 'controller.c'; then $(CYGPATH_W) 'controller.c'; else $(CYGPATH_W) '$(srcdir)/controller.c'; fi` vagalume-dlwin.o: dlwin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-dlwin.o -MD -MP -MF $(DEPDIR)/vagalume-dlwin.Tpo -c -o vagalume-dlwin.o `test -f 'dlwin.c' || echo '$(srcdir)/'`dlwin.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-dlwin.Tpo $(DEPDIR)/vagalume-dlwin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dlwin.c' object='vagalume-dlwin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-dlwin.o `test -f 'dlwin.c' || echo '$(srcdir)/'`dlwin.c vagalume-dlwin.obj: dlwin.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-dlwin.obj -MD -MP -MF $(DEPDIR)/vagalume-dlwin.Tpo -c -o vagalume-dlwin.obj `if test -f 'dlwin.c'; then $(CYGPATH_W) 'dlwin.c'; else $(CYGPATH_W) '$(srcdir)/dlwin.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-dlwin.Tpo $(DEPDIR)/vagalume-dlwin.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dlwin.c' object='vagalume-dlwin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-dlwin.obj `if test -f 'dlwin.c'; then $(CYGPATH_W) 'dlwin.c'; else $(CYGPATH_W) '$(srcdir)/dlwin.c'; fi` vagalume-http.o: http.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-http.o -MD -MP -MF $(DEPDIR)/vagalume-http.Tpo -c -o vagalume-http.o `test -f 'http.c' || echo '$(srcdir)/'`http.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-http.Tpo $(DEPDIR)/vagalume-http.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='http.c' object='vagalume-http.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-http.o `test -f 'http.c' || echo '$(srcdir)/'`http.c vagalume-http.obj: http.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-http.obj -MD -MP -MF $(DEPDIR)/vagalume-http.Tpo -c -o vagalume-http.obj `if test -f 'http.c'; then $(CYGPATH_W) 'http.c'; else $(CYGPATH_W) '$(srcdir)/http.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-http.Tpo $(DEPDIR)/vagalume-http.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='http.c' object='vagalume-http.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-http.obj `if test -f 'http.c'; then $(CYGPATH_W) 'http.c'; else $(CYGPATH_W) '$(srcdir)/http.c'; fi` vagalume-lastfm-ws.o: lastfm-ws.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-lastfm-ws.o -MD -MP -MF $(DEPDIR)/vagalume-lastfm-ws.Tpo -c -o vagalume-lastfm-ws.o `test -f 'lastfm-ws.c' || echo '$(srcdir)/'`lastfm-ws.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-lastfm-ws.Tpo $(DEPDIR)/vagalume-lastfm-ws.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lastfm-ws.c' object='vagalume-lastfm-ws.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-lastfm-ws.o `test -f 'lastfm-ws.c' || echo '$(srcdir)/'`lastfm-ws.c vagalume-lastfm-ws.obj: lastfm-ws.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-lastfm-ws.obj -MD -MP -MF $(DEPDIR)/vagalume-lastfm-ws.Tpo -c -o vagalume-lastfm-ws.obj `if test -f 'lastfm-ws.c'; then $(CYGPATH_W) 'lastfm-ws.c'; else $(CYGPATH_W) '$(srcdir)/lastfm-ws.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-lastfm-ws.Tpo $(DEPDIR)/vagalume-lastfm-ws.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lastfm-ws.c' object='vagalume-lastfm-ws.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-lastfm-ws.obj `if test -f 'lastfm-ws.c'; then $(CYGPATH_W) 'lastfm-ws.c'; else $(CYGPATH_W) '$(srcdir)/lastfm-ws.c'; fi` vagalume-main.o: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-main.o -MD -MP -MF $(DEPDIR)/vagalume-main.Tpo -c -o vagalume-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-main.Tpo $(DEPDIR)/vagalume-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='vagalume-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c vagalume-main.obj: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-main.obj -MD -MP -MF $(DEPDIR)/vagalume-main.Tpo -c -o vagalume-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-main.Tpo $(DEPDIR)/vagalume-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='vagalume-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` vagalume-playlist.o: playlist.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-playlist.o -MD -MP -MF $(DEPDIR)/vagalume-playlist.Tpo -c -o vagalume-playlist.o `test -f 'playlist.c' || echo '$(srcdir)/'`playlist.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-playlist.Tpo $(DEPDIR)/vagalume-playlist.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='playlist.c' object='vagalume-playlist.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-playlist.o `test -f 'playlist.c' || echo '$(srcdir)/'`playlist.c vagalume-playlist.obj: playlist.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-playlist.obj -MD -MP -MF $(DEPDIR)/vagalume-playlist.Tpo -c -o vagalume-playlist.obj `if test -f 'playlist.c'; then $(CYGPATH_W) 'playlist.c'; else $(CYGPATH_W) '$(srcdir)/playlist.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-playlist.Tpo $(DEPDIR)/vagalume-playlist.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='playlist.c' object='vagalume-playlist.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-playlist.obj `if test -f 'playlist.c'; then $(CYGPATH_W) 'playlist.c'; else $(CYGPATH_W) '$(srcdir)/playlist.c'; fi` vagalume-protocol.o: protocol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-protocol.o -MD -MP -MF $(DEPDIR)/vagalume-protocol.Tpo -c -o vagalume-protocol.o `test -f 'protocol.c' || echo '$(srcdir)/'`protocol.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-protocol.Tpo $(DEPDIR)/vagalume-protocol.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='protocol.c' object='vagalume-protocol.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-protocol.o `test -f 'protocol.c' || echo '$(srcdir)/'`protocol.c vagalume-protocol.obj: protocol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-protocol.obj -MD -MP -MF $(DEPDIR)/vagalume-protocol.Tpo -c -o vagalume-protocol.obj `if test -f 'protocol.c'; then $(CYGPATH_W) 'protocol.c'; else $(CYGPATH_W) '$(srcdir)/protocol.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-protocol.Tpo $(DEPDIR)/vagalume-protocol.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='protocol.c' object='vagalume-protocol.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-protocol.obj `if test -f 'protocol.c'; then $(CYGPATH_W) 'protocol.c'; else $(CYGPATH_W) '$(srcdir)/protocol.c'; fi` vagalume-radio.o: radio.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-radio.o -MD -MP -MF $(DEPDIR)/vagalume-radio.Tpo -c -o vagalume-radio.o `test -f 'radio.c' || echo '$(srcdir)/'`radio.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-radio.Tpo $(DEPDIR)/vagalume-radio.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='radio.c' object='vagalume-radio.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-radio.o `test -f 'radio.c' || echo '$(srcdir)/'`radio.c vagalume-radio.obj: radio.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-radio.obj -MD -MP -MF $(DEPDIR)/vagalume-radio.Tpo -c -o vagalume-radio.obj `if test -f 'radio.c'; then $(CYGPATH_W) 'radio.c'; else $(CYGPATH_W) '$(srcdir)/radio.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-radio.Tpo $(DEPDIR)/vagalume-radio.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='radio.c' object='vagalume-radio.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-radio.obj `if test -f 'radio.c'; then $(CYGPATH_W) 'radio.c'; else $(CYGPATH_W) '$(srcdir)/radio.c'; fi` vagalume-scrobbler.o: scrobbler.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-scrobbler.o -MD -MP -MF $(DEPDIR)/vagalume-scrobbler.Tpo -c -o vagalume-scrobbler.o `test -f 'scrobbler.c' || echo '$(srcdir)/'`scrobbler.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-scrobbler.Tpo $(DEPDIR)/vagalume-scrobbler.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scrobbler.c' object='vagalume-scrobbler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-scrobbler.o `test -f 'scrobbler.c' || echo '$(srcdir)/'`scrobbler.c vagalume-scrobbler.obj: scrobbler.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-scrobbler.obj -MD -MP -MF $(DEPDIR)/vagalume-scrobbler.Tpo -c -o vagalume-scrobbler.obj `if test -f 'scrobbler.c'; then $(CYGPATH_W) 'scrobbler.c'; else $(CYGPATH_W) '$(srcdir)/scrobbler.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-scrobbler.Tpo $(DEPDIR)/vagalume-scrobbler.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scrobbler.c' object='vagalume-scrobbler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-scrobbler.obj `if test -f 'scrobbler.c'; then $(CYGPATH_W) 'scrobbler.c'; else $(CYGPATH_W) '$(srcdir)/scrobbler.c'; fi` vagalume-uimisc.o: uimisc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-uimisc.o -MD -MP -MF $(DEPDIR)/vagalume-uimisc.Tpo -c -o vagalume-uimisc.o `test -f 'uimisc.c' || echo '$(srcdir)/'`uimisc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-uimisc.Tpo $(DEPDIR)/vagalume-uimisc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uimisc.c' object='vagalume-uimisc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-uimisc.o `test -f 'uimisc.c' || echo '$(srcdir)/'`uimisc.c vagalume-uimisc.obj: uimisc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-uimisc.obj -MD -MP -MF $(DEPDIR)/vagalume-uimisc.Tpo -c -o vagalume-uimisc.obj `if test -f 'uimisc.c'; then $(CYGPATH_W) 'uimisc.c'; else $(CYGPATH_W) '$(srcdir)/uimisc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-uimisc.Tpo $(DEPDIR)/vagalume-uimisc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uimisc.c' object='vagalume-uimisc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-uimisc.obj `if test -f 'uimisc.c'; then $(CYGPATH_W) 'uimisc.c'; else $(CYGPATH_W) '$(srcdir)/uimisc.c'; fi` vagalume-userconfig.o: userconfig.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-userconfig.o -MD -MP -MF $(DEPDIR)/vagalume-userconfig.Tpo -c -o vagalume-userconfig.o `test -f 'userconfig.c' || echo '$(srcdir)/'`userconfig.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-userconfig.Tpo $(DEPDIR)/vagalume-userconfig.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='userconfig.c' object='vagalume-userconfig.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-userconfig.o `test -f 'userconfig.c' || echo '$(srcdir)/'`userconfig.c vagalume-userconfig.obj: userconfig.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-userconfig.obj -MD -MP -MF $(DEPDIR)/vagalume-userconfig.Tpo -c -o vagalume-userconfig.obj `if test -f 'userconfig.c'; then $(CYGPATH_W) 'userconfig.c'; else $(CYGPATH_W) '$(srcdir)/userconfig.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-userconfig.Tpo $(DEPDIR)/vagalume-userconfig.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='userconfig.c' object='vagalume-userconfig.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-userconfig.obj `if test -f 'userconfig.c'; then $(CYGPATH_W) 'userconfig.c'; else $(CYGPATH_W) '$(srcdir)/userconfig.c'; fi` vagalume-util.o: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-util.o -MD -MP -MF $(DEPDIR)/vagalume-util.Tpo -c -o vagalume-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-util.Tpo $(DEPDIR)/vagalume-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='vagalume-util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c vagalume-util.obj: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-util.obj -MD -MP -MF $(DEPDIR)/vagalume-util.Tpo -c -o vagalume-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-util.Tpo $(DEPDIR)/vagalume-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='vagalume-util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi` vagalume-vgl-bookmark-mgr.o: vgl-bookmark-mgr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-bookmark-mgr.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-bookmark-mgr.Tpo -c -o vagalume-vgl-bookmark-mgr.o `test -f 'vgl-bookmark-mgr.c' || echo '$(srcdir)/'`vgl-bookmark-mgr.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-bookmark-mgr.Tpo $(DEPDIR)/vagalume-vgl-bookmark-mgr.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-bookmark-mgr.c' object='vagalume-vgl-bookmark-mgr.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-bookmark-mgr.o `test -f 'vgl-bookmark-mgr.c' || echo '$(srcdir)/'`vgl-bookmark-mgr.c vagalume-vgl-bookmark-mgr.obj: vgl-bookmark-mgr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-bookmark-mgr.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-bookmark-mgr.Tpo -c -o vagalume-vgl-bookmark-mgr.obj `if test -f 'vgl-bookmark-mgr.c'; then $(CYGPATH_W) 'vgl-bookmark-mgr.c'; else $(CYGPATH_W) '$(srcdir)/vgl-bookmark-mgr.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-bookmark-mgr.Tpo $(DEPDIR)/vagalume-vgl-bookmark-mgr.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-bookmark-mgr.c' object='vagalume-vgl-bookmark-mgr.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-bookmark-mgr.obj `if test -f 'vgl-bookmark-mgr.c'; then $(CYGPATH_W) 'vgl-bookmark-mgr.c'; else $(CYGPATH_W) '$(srcdir)/vgl-bookmark-mgr.c'; fi` vagalume-vgl-bookmark-window.o: vgl-bookmark-window.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-bookmark-window.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-bookmark-window.Tpo -c -o vagalume-vgl-bookmark-window.o `test -f 'vgl-bookmark-window.c' || echo '$(srcdir)/'`vgl-bookmark-window.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-bookmark-window.Tpo $(DEPDIR)/vagalume-vgl-bookmark-window.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-bookmark-window.c' object='vagalume-vgl-bookmark-window.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-bookmark-window.o `test -f 'vgl-bookmark-window.c' || echo '$(srcdir)/'`vgl-bookmark-window.c vagalume-vgl-bookmark-window.obj: vgl-bookmark-window.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-bookmark-window.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-bookmark-window.Tpo -c -o vagalume-vgl-bookmark-window.obj `if test -f 'vgl-bookmark-window.c'; then $(CYGPATH_W) 'vgl-bookmark-window.c'; else $(CYGPATH_W) '$(srcdir)/vgl-bookmark-window.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-bookmark-window.Tpo $(DEPDIR)/vagalume-vgl-bookmark-window.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-bookmark-window.c' object='vagalume-vgl-bookmark-window.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-bookmark-window.obj `if test -f 'vgl-bookmark-window.c'; then $(CYGPATH_W) 'vgl-bookmark-window.c'; else $(CYGPATH_W) '$(srcdir)/vgl-bookmark-window.c'; fi` vagalume-vgl-main-window.o: vgl-main-window.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-main-window.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-main-window.Tpo -c -o vagalume-vgl-main-window.o `test -f 'vgl-main-window.c' || echo '$(srcdir)/'`vgl-main-window.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-main-window.Tpo $(DEPDIR)/vagalume-vgl-main-window.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-main-window.c' object='vagalume-vgl-main-window.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-main-window.o `test -f 'vgl-main-window.c' || echo '$(srcdir)/'`vgl-main-window.c vagalume-vgl-main-window.obj: vgl-main-window.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-main-window.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-main-window.Tpo -c -o vagalume-vgl-main-window.obj `if test -f 'vgl-main-window.c'; then $(CYGPATH_W) 'vgl-main-window.c'; else $(CYGPATH_W) '$(srcdir)/vgl-main-window.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-main-window.Tpo $(DEPDIR)/vagalume-vgl-main-window.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-main-window.c' object='vagalume-vgl-main-window.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-main-window.obj `if test -f 'vgl-main-window.c'; then $(CYGPATH_W) 'vgl-main-window.c'; else $(CYGPATH_W) '$(srcdir)/vgl-main-window.c'; fi` vagalume-vgl-object.o: vgl-object.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-object.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-object.Tpo -c -o vagalume-vgl-object.o `test -f 'vgl-object.c' || echo '$(srcdir)/'`vgl-object.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-object.Tpo $(DEPDIR)/vagalume-vgl-object.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-object.c' object='vagalume-vgl-object.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-object.o `test -f 'vgl-object.c' || echo '$(srcdir)/'`vgl-object.c vagalume-vgl-object.obj: vgl-object.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-object.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-object.Tpo -c -o vagalume-vgl-object.obj `if test -f 'vgl-object.c'; then $(CYGPATH_W) 'vgl-object.c'; else $(CYGPATH_W) '$(srcdir)/vgl-object.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-object.Tpo $(DEPDIR)/vagalume-vgl-object.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-object.c' object='vagalume-vgl-object.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-object.obj `if test -f 'vgl-object.c'; then $(CYGPATH_W) 'vgl-object.c'; else $(CYGPATH_W) '$(srcdir)/vgl-object.c'; fi` vagalume-vgl-server.o: vgl-server.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-server.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-server.Tpo -c -o vagalume-vgl-server.o `test -f 'vgl-server.c' || echo '$(srcdir)/'`vgl-server.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-server.Tpo $(DEPDIR)/vagalume-vgl-server.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-server.c' object='vagalume-vgl-server.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-server.o `test -f 'vgl-server.c' || echo '$(srcdir)/'`vgl-server.c vagalume-vgl-server.obj: vgl-server.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-server.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-server.Tpo -c -o vagalume-vgl-server.obj `if test -f 'vgl-server.c'; then $(CYGPATH_W) 'vgl-server.c'; else $(CYGPATH_W) '$(srcdir)/vgl-server.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-server.Tpo $(DEPDIR)/vagalume-vgl-server.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-server.c' object='vagalume-vgl-server.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-server.obj `if test -f 'vgl-server.c'; then $(CYGPATH_W) 'vgl-server.c'; else $(CYGPATH_W) '$(srcdir)/vgl-server.c'; fi` vagalume-xmlrpc.o: xmlrpc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-xmlrpc.o -MD -MP -MF $(DEPDIR)/vagalume-xmlrpc.Tpo -c -o vagalume-xmlrpc.o `test -f 'xmlrpc.c' || echo '$(srcdir)/'`xmlrpc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-xmlrpc.Tpo $(DEPDIR)/vagalume-xmlrpc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xmlrpc.c' object='vagalume-xmlrpc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-xmlrpc.o `test -f 'xmlrpc.c' || echo '$(srcdir)/'`xmlrpc.c vagalume-xmlrpc.obj: xmlrpc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-xmlrpc.obj -MD -MP -MF $(DEPDIR)/vagalume-xmlrpc.Tpo -c -o vagalume-xmlrpc.obj `if test -f 'xmlrpc.c'; then $(CYGPATH_W) 'xmlrpc.c'; else $(CYGPATH_W) '$(srcdir)/xmlrpc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-xmlrpc.Tpo $(DEPDIR)/vagalume-xmlrpc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xmlrpc.c' object='vagalume-xmlrpc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-xmlrpc.obj `if test -f 'xmlrpc.c'; then $(CYGPATH_W) 'xmlrpc.c'; else $(CYGPATH_W) '$(srcdir)/xmlrpc.c'; fi` vagalume-uimisc-hildon22.o: uimisc-hildon22.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-uimisc-hildon22.o -MD -MP -MF $(DEPDIR)/vagalume-uimisc-hildon22.Tpo -c -o vagalume-uimisc-hildon22.o `test -f 'uimisc-hildon22.c' || echo '$(srcdir)/'`uimisc-hildon22.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-uimisc-hildon22.Tpo $(DEPDIR)/vagalume-uimisc-hildon22.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uimisc-hildon22.c' object='vagalume-uimisc-hildon22.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-uimisc-hildon22.o `test -f 'uimisc-hildon22.c' || echo '$(srcdir)/'`uimisc-hildon22.c vagalume-uimisc-hildon22.obj: uimisc-hildon22.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-uimisc-hildon22.obj -MD -MP -MF $(DEPDIR)/vagalume-uimisc-hildon22.Tpo -c -o vagalume-uimisc-hildon22.obj `if test -f 'uimisc-hildon22.c'; then $(CYGPATH_W) 'uimisc-hildon22.c'; else $(CYGPATH_W) '$(srcdir)/uimisc-hildon22.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-uimisc-hildon22.Tpo $(DEPDIR)/vagalume-uimisc-hildon22.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uimisc-hildon22.c' object='vagalume-uimisc-hildon22.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-uimisc-hildon22.obj `if test -f 'uimisc-hildon22.c'; then $(CYGPATH_W) 'uimisc-hildon22.c'; else $(CYGPATH_W) '$(srcdir)/uimisc-hildon22.c'; fi` vagalume-vgl-main-menu-hildon22.o: vgl-main-menu-hildon22.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-main-menu-hildon22.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-main-menu-hildon22.Tpo -c -o vagalume-vgl-main-menu-hildon22.o `test -f 'vgl-main-menu-hildon22.c' || echo '$(srcdir)/'`vgl-main-menu-hildon22.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-main-menu-hildon22.Tpo $(DEPDIR)/vagalume-vgl-main-menu-hildon22.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-main-menu-hildon22.c' object='vagalume-vgl-main-menu-hildon22.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-main-menu-hildon22.o `test -f 'vgl-main-menu-hildon22.c' || echo '$(srcdir)/'`vgl-main-menu-hildon22.c vagalume-vgl-main-menu-hildon22.obj: vgl-main-menu-hildon22.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-main-menu-hildon22.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-main-menu-hildon22.Tpo -c -o vagalume-vgl-main-menu-hildon22.obj `if test -f 'vgl-main-menu-hildon22.c'; then $(CYGPATH_W) 'vgl-main-menu-hildon22.c'; else $(CYGPATH_W) '$(srcdir)/vgl-main-menu-hildon22.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-main-menu-hildon22.Tpo $(DEPDIR)/vagalume-vgl-main-menu-hildon22.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-main-menu-hildon22.c' object='vagalume-vgl-main-menu-hildon22.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-main-menu-hildon22.obj `if test -f 'vgl-main-menu-hildon22.c'; then $(CYGPATH_W) 'vgl-main-menu-hildon22.c'; else $(CYGPATH_W) '$(srcdir)/vgl-main-menu-hildon22.c'; fi` vagalume-uimisc-gtk.o: uimisc-gtk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-uimisc-gtk.o -MD -MP -MF $(DEPDIR)/vagalume-uimisc-gtk.Tpo -c -o vagalume-uimisc-gtk.o `test -f 'uimisc-gtk.c' || echo '$(srcdir)/'`uimisc-gtk.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-uimisc-gtk.Tpo $(DEPDIR)/vagalume-uimisc-gtk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uimisc-gtk.c' object='vagalume-uimisc-gtk.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-uimisc-gtk.o `test -f 'uimisc-gtk.c' || echo '$(srcdir)/'`uimisc-gtk.c vagalume-uimisc-gtk.obj: uimisc-gtk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-uimisc-gtk.obj -MD -MP -MF $(DEPDIR)/vagalume-uimisc-gtk.Tpo -c -o vagalume-uimisc-gtk.obj `if test -f 'uimisc-gtk.c'; then $(CYGPATH_W) 'uimisc-gtk.c'; else $(CYGPATH_W) '$(srcdir)/uimisc-gtk.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-uimisc-gtk.Tpo $(DEPDIR)/vagalume-uimisc-gtk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='uimisc-gtk.c' object='vagalume-uimisc-gtk.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-uimisc-gtk.obj `if test -f 'uimisc-gtk.c'; then $(CYGPATH_W) 'uimisc-gtk.c'; else $(CYGPATH_W) '$(srcdir)/uimisc-gtk.c'; fi` vagalume-vgl-main-menu-gtk.o: vgl-main-menu-gtk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-main-menu-gtk.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-main-menu-gtk.Tpo -c -o vagalume-vgl-main-menu-gtk.o `test -f 'vgl-main-menu-gtk.c' || echo '$(srcdir)/'`vgl-main-menu-gtk.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-main-menu-gtk.Tpo $(DEPDIR)/vagalume-vgl-main-menu-gtk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-main-menu-gtk.c' object='vagalume-vgl-main-menu-gtk.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-main-menu-gtk.o `test -f 'vgl-main-menu-gtk.c' || echo '$(srcdir)/'`vgl-main-menu-gtk.c vagalume-vgl-main-menu-gtk.obj: vgl-main-menu-gtk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-main-menu-gtk.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-main-menu-gtk.Tpo -c -o vagalume-vgl-main-menu-gtk.obj `if test -f 'vgl-main-menu-gtk.c'; then $(CYGPATH_W) 'vgl-main-menu-gtk.c'; else $(CYGPATH_W) '$(srcdir)/vgl-main-menu-gtk.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-main-menu-gtk.Tpo $(DEPDIR)/vagalume-vgl-main-menu-gtk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-main-menu-gtk.c' object='vagalume-vgl-main-menu-gtk.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-main-menu-gtk.obj `if test -f 'vgl-main-menu-gtk.c'; then $(CYGPATH_W) 'vgl-main-menu-gtk.c'; else $(CYGPATH_W) '$(srcdir)/vgl-main-menu-gtk.c'; fi` vagalume-imstatus.o: imstatus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-imstatus.o -MD -MP -MF $(DEPDIR)/vagalume-imstatus.Tpo -c -o vagalume-imstatus.o `test -f 'imstatus.c' || echo '$(srcdir)/'`imstatus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-imstatus.Tpo $(DEPDIR)/vagalume-imstatus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='imstatus.c' object='vagalume-imstatus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-imstatus.o `test -f 'imstatus.c' || echo '$(srcdir)/'`imstatus.c vagalume-imstatus.obj: imstatus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-imstatus.obj -MD -MP -MF $(DEPDIR)/vagalume-imstatus.Tpo -c -o vagalume-imstatus.obj `if test -f 'imstatus.c'; then $(CYGPATH_W) 'imstatus.c'; else $(CYGPATH_W) '$(srcdir)/imstatus.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-imstatus.Tpo $(DEPDIR)/vagalume-imstatus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='imstatus.c' object='vagalume-imstatus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-imstatus.obj `if test -f 'imstatus.c'; then $(CYGPATH_W) 'imstatus.c'; else $(CYGPATH_W) '$(srcdir)/imstatus.c'; fi` md5/vagalume-md5.o: md5/md5.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT md5/vagalume-md5.o -MD -MP -MF md5/$(DEPDIR)/vagalume-md5.Tpo -c -o md5/vagalume-md5.o `test -f 'md5/md5.c' || echo '$(srcdir)/'`md5/md5.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) md5/$(DEPDIR)/vagalume-md5.Tpo md5/$(DEPDIR)/vagalume-md5.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='md5/md5.c' object='md5/vagalume-md5.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o md5/vagalume-md5.o `test -f 'md5/md5.c' || echo '$(srcdir)/'`md5/md5.c md5/vagalume-md5.obj: md5/md5.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT md5/vagalume-md5.obj -MD -MP -MF md5/$(DEPDIR)/vagalume-md5.Tpo -c -o md5/vagalume-md5.obj `if test -f 'md5/md5.c'; then $(CYGPATH_W) 'md5/md5.c'; else $(CYGPATH_W) '$(srcdir)/md5/md5.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) md5/$(DEPDIR)/vagalume-md5.Tpo md5/$(DEPDIR)/vagalume-md5.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='md5/md5.c' object='md5/vagalume-md5.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o md5/vagalume-md5.obj `if test -f 'md5/md5.c'; then $(CYGPATH_W) 'md5/md5.c'; else $(CYGPATH_W) '$(srcdir)/md5/md5.c'; fi` vagalume-vgl-tray-icon.o: vgl-tray-icon.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-tray-icon.o -MD -MP -MF $(DEPDIR)/vagalume-vgl-tray-icon.Tpo -c -o vagalume-vgl-tray-icon.o `test -f 'vgl-tray-icon.c' || echo '$(srcdir)/'`vgl-tray-icon.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-tray-icon.Tpo $(DEPDIR)/vagalume-vgl-tray-icon.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-tray-icon.c' object='vagalume-vgl-tray-icon.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-tray-icon.o `test -f 'vgl-tray-icon.c' || echo '$(srcdir)/'`vgl-tray-icon.c vagalume-vgl-tray-icon.obj: vgl-tray-icon.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-vgl-tray-icon.obj -MD -MP -MF $(DEPDIR)/vagalume-vgl-tray-icon.Tpo -c -o vagalume-vgl-tray-icon.obj `if test -f 'vgl-tray-icon.c'; then $(CYGPATH_W) 'vgl-tray-icon.c'; else $(CYGPATH_W) '$(srcdir)/vgl-tray-icon.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-vgl-tray-icon.Tpo $(DEPDIR)/vagalume-vgl-tray-icon.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vgl-tray-icon.c' object='vagalume-vgl-tray-icon.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-vgl-tray-icon.obj `if test -f 'vgl-tray-icon.c'; then $(CYGPATH_W) 'vgl-tray-icon.c'; else $(CYGPATH_W) '$(srcdir)/vgl-tray-icon.c'; fi` vagalume-connection.o: connection.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-connection.o -MD -MP -MF $(DEPDIR)/vagalume-connection.Tpo -c -o vagalume-connection.o `test -f 'connection.c' || echo '$(srcdir)/'`connection.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-connection.Tpo $(DEPDIR)/vagalume-connection.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='connection.c' object='vagalume-connection.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-connection.o `test -f 'connection.c' || echo '$(srcdir)/'`connection.c vagalume-connection.obj: connection.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-connection.obj -MD -MP -MF $(DEPDIR)/vagalume-connection.Tpo -c -o vagalume-connection.obj `if test -f 'connection.c'; then $(CYGPATH_W) 'connection.c'; else $(CYGPATH_W) '$(srcdir)/connection.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-connection.Tpo $(DEPDIR)/vagalume-connection.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='connection.c' object='vagalume-connection.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-connection.obj `if test -f 'connection.c'; then $(CYGPATH_W) 'connection.c'; else $(CYGPATH_W) '$(srcdir)/connection.c'; fi` vagalume-dbus.o: dbus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-dbus.o -MD -MP -MF $(DEPDIR)/vagalume-dbus.Tpo -c -o vagalume-dbus.o `test -f 'dbus.c' || echo '$(srcdir)/'`dbus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-dbus.Tpo $(DEPDIR)/vagalume-dbus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus.c' object='vagalume-dbus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-dbus.o `test -f 'dbus.c' || echo '$(srcdir)/'`dbus.c vagalume-dbus.obj: dbus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-dbus.obj -MD -MP -MF $(DEPDIR)/vagalume-dbus.Tpo -c -o vagalume-dbus.obj `if test -f 'dbus.c'; then $(CYGPATH_W) 'dbus.c'; else $(CYGPATH_W) '$(srcdir)/dbus.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-dbus.Tpo $(DEPDIR)/vagalume-dbus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus.c' object='vagalume-dbus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-dbus.obj `if test -f 'dbus.c'; then $(CYGPATH_W) 'dbus.c'; else $(CYGPATH_W) '$(srcdir)/dbus.c'; fi` vagalume-marshal.o: marshal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-marshal.o -MD -MP -MF $(DEPDIR)/vagalume-marshal.Tpo -c -o vagalume-marshal.o `test -f 'marshal.c' || echo '$(srcdir)/'`marshal.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-marshal.Tpo $(DEPDIR)/vagalume-marshal.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='marshal.c' object='vagalume-marshal.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-marshal.o `test -f 'marshal.c' || echo '$(srcdir)/'`marshal.c vagalume-marshal.obj: marshal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -MT vagalume-marshal.obj -MD -MP -MF $(DEPDIR)/vagalume-marshal.Tpo -c -o vagalume-marshal.obj `if test -f 'marshal.c'; then $(CYGPATH_W) 'marshal.c'; else $(CYGPATH_W) '$(srcdir)/marshal.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/vagalume-marshal.Tpo $(DEPDIR)/vagalume-marshal.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='marshal.c' object='vagalume-marshal.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(vagalume_CFLAGS) $(CFLAGS) -c -o vagalume-marshal.obj `if test -f 'marshal.c'; then $(CYGPATH_W) 'marshal.c'; else $(CYGPATH_W) '$(srcdir)/marshal.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(sbplugindir)" "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f md5/$(DEPDIR)/$(am__dirstamp) -rm -f md5/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-sbpluginLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) md5/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-sbpluginLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) md5/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-sbpluginLTLIBRARIES .MAKE: all check install install-am install-data-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool \ clean-sbpluginLTLIBRARIES cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic \ 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-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-sbpluginLTLIBRARIES 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 tags-am uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-sbpluginLTLIBRARIES marshal.h: marshal.list glib-genmarshal --header \ --prefix=vgl_marshal marshal.list > marshal.h marshal.c: marshal.list glib-genmarshal --body \ --prefix=vgl_marshal marshal.list > marshal.c # These two files are not needed install-data-hook: if test "x$(sbplugindir)" != "x"; then \ rm -f "$(DESTDIR)/$(sbplugindir)/libvagalumesbplugin.a" ; \ rm -f "$(DESTDIR)/$(sbplugindir)/libvagalumesbplugin.la" ; \ fi # 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: vagalume-0.8.6/src/vgl-bookmark-mgr.c0000644000000000000000000003202112233552617014332 00000000000000/* * vgl-bookmark-mgr.c -- Bookmark manager class * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "globaldefs.h" #include "vgl-bookmark-mgr.h" #include "userconfig.h" #include "util.h" #include #include enum { ADDED, REMOVED, CHANGED, N_SIGNALS }; static guint mgr_signals[N_SIGNALS] = { 0 }; G_DEFINE_TYPE (VglBookmarkMgr, vgl_bookmark_mgr, G_TYPE_OBJECT); #define VGL_BOOKMARK_MGR_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), VGL_TYPE_BOOKMARK_MGR, \ VglBookmarkMgrPrivate)) struct _VglBookmarkMgrPrivate { GList *bookmarks; int min_unused_id; gboolean dirty; }; static VglBookmark * vgl_bookmark_new (int id, const char *name, const char *url) { g_return_val_if_fail(name != NULL && url != NULL, NULL); VglBookmark *bookmark; bookmark = g_slice_new(VglBookmark); bookmark->id = id; bookmark->name = g_strdup(name); bookmark->url = g_strdup(url); return bookmark; } static void vgl_bookmark_destroy (VglBookmark *bookmark) { g_return_if_fail(bookmark != NULL); g_free((char *)bookmark->name); g_free((char *)bookmark->url); g_slice_free(VglBookmark, bookmark); } static void vgl_bookmark_change (VglBookmark *bookmark, const char *newname, const char *newurl) { g_return_if_fail(bookmark != NULL); if (newname != NULL && newname != bookmark->name) { g_free((char *)bookmark->name); bookmark->name = g_strdup(newname); } if (newurl != NULL && newurl != bookmark->url) { g_free((char *)bookmark->url); bookmark->url = g_strdup(newurl); } } static int vgl_bookmark_compare (gconstpointer bookmark, gconstpointer bookmark_id) { const VglBookmark *bmk = (const VglBookmark *) bookmark; int id = GPOINTER_TO_INT (bookmark_id); g_return_val_if_fail (bmk != NULL && id >= 0, 0); if (bmk->id == id) { return 0; } else { return (bmk->id > id) ? 1 : -1; } } static const char * vgl_bookmark_mgr_get_cfgfile (void) { static char *cfgfilename = NULL; if (cfgfilename == NULL) { const char *cfgdir = vgl_user_cfg_get_cfgdir (); if (cfgdir != NULL) { cfgfilename = g_strconcat (cfgdir, "/bookmarks.xml", NULL); } } return cfgfilename; } static void vgl_bookmark_mgr_load_from_disk (VglBookmarkMgr *mgr) { const char *cfgfile = vgl_bookmark_mgr_get_cfgfile (); xmlDoc *doc = NULL; xmlNode *node = NULL; g_return_if_fail (VGL_IS_BOOKMARK_MGR (mgr) && cfgfile != NULL); /* Load bookmark file */ if (file_exists (cfgfile)) { doc = xmlParseFile (cfgfile); if (doc == NULL) { g_warning ("Bookmark file is not an XML document"); } } /* Get root element */ if (doc != NULL) { xmlNode *root = xmlDocGetRootElement (doc); xmlChar *mv = xmlGetProp (root, (xmlChar *) "version"); if (mv == NULL || !xmlStrEqual (root->name, (xmlChar *) "bookmarks")) { g_warning ("Error parsing bookmark file"); } else if (!xmlStrEqual (mv, (xmlChar *) "1")) { g_warning ("This bookmark file is version %s, but " "Vagalume " APP_VERSION " can only " "read version 1", mv); } else { node = root->xmlChildrenNode; } if (mv != NULL) xmlFree (mv); } /* Parse each bookmark */ for (; node != NULL; node = node->next) { const xmlChar *nodename = node->name; if (xmlStrEqual (nodename, (xmlChar *) "bookmark")) { char *name, *url; const xmlNode *subnode = node->xmlChildrenNode; xml_get_string (doc, subnode, "name", &name); xml_get_string (doc, subnode, "url", &url); if (name && *name != '\0' && url && *url != '\0') { vgl_bookmark_mgr_add_bookmark (mgr, name, url); } g_free (name); g_free (url); } } if (doc != NULL) xmlFreeDoc(doc); mgr->priv->dirty = FALSE; } void vgl_bookmark_mgr_save_to_disk (VglBookmarkMgr *mgr, gboolean force) { const GList *l; const char *cfgfile = vgl_bookmark_mgr_get_cfgfile (); xmlDoc *doc; xmlNode *root; g_return_if_fail (VGL_IS_BOOKMARK_MGR (mgr) && cfgfile != NULL); if (!(mgr->priv->dirty) && !force) return; doc = xmlNewDoc ((xmlChar *) "1.0"); root = xmlNewNode (NULL, (xmlChar *) "bookmarks"); xmlSetProp (root, (xmlChar *) "version", (xmlChar *) "1"); xmlSetProp (root, (xmlChar *) "revision", (xmlChar *) "1"); xmlDocSetRootElement (doc, root); for (l = mgr->priv->bookmarks; l != NULL; l = l->next) { xmlNode *bmknode; const VglBookmark *bmk = (const VglBookmark *) l->data; bmknode = xmlNewNode (NULL, (xmlChar *) "bookmark"); xmlAddChild (root, bmknode); xml_add_string (bmknode, "name", bmk->name); xml_add_string (bmknode, "url", bmk->url); } if (xmlSaveFormatFileEnc (cfgfile, doc, "UTF-8", 1) != -1) { mgr->priv->dirty = FALSE; } else { g_critical ("Unable to open %s", cfgfile); } xmlFreeDoc (doc); } static VglBookmarkMgr * vgl_bookmark_mgr_new (void) { return g_object_new(VGL_TYPE_BOOKMARK_MGR, NULL); } static void vgl_bookmark_mgr_init (VglBookmarkMgr *self) { VglBookmarkMgrPrivate *priv = VGL_BOOKMARK_MGR_GET_PRIVATE(self); self->priv = priv; priv->bookmarks = NULL; priv->min_unused_id = 0; priv->dirty = FALSE; vgl_bookmark_mgr_load_from_disk (self); } static void vgl_bookmark_mgr_finalize (GObject *object) { VglBookmarkMgrPrivate *priv = VGL_BOOKMARK_MGR (object)->priv; vgl_bookmark_mgr_save_to_disk (VGL_BOOKMARK_MGR (object), FALSE); g_list_foreach(priv->bookmarks, (GFunc) vgl_bookmark_destroy, NULL); g_list_free(priv->bookmarks); G_OBJECT_CLASS(vgl_bookmark_mgr_parent_class)->finalize(object); } static void vgl_bookmark_mgr_class_init (VglBookmarkMgrClass *klass) { GObjectClass *gobject_class = (GObjectClass *)klass; gobject_class->finalize = vgl_bookmark_mgr_finalize; g_type_class_add_private(klass, sizeof(VglBookmarkMgrPrivate)); mgr_signals[ADDED] = g_signal_new ("bookmark-added", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); mgr_signals[REMOVED] = g_signal_new ("bookmark-removed", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); mgr_signals[CHANGED] = g_signal_new ("bookmark-changed", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); } VglBookmarkMgr * vgl_bookmark_mgr_get_instance (void) { /* Singleton, only one bookmark manager can exist */ static VglBookmarkMgr *mgr = NULL; if (mgr == NULL) { mgr = vgl_bookmark_mgr_new(); g_object_add_weak_pointer (G_OBJECT (mgr), (gpointer) &mgr); } return mgr; } static GList * vgl_bookmark_mgr_find_bookmark_node (VglBookmarkMgr *mgr, int id) { g_return_val_if_fail(VGL_IS_BOOKMARK_MGR(mgr) && id >= 0, NULL); return g_list_find_custom (mgr->priv->bookmarks, GINT_TO_POINTER (id), vgl_bookmark_compare); } int vgl_bookmark_mgr_add_bookmark (VglBookmarkMgr *mgr, const char *name, const char *url) { g_return_val_if_fail(VGL_IS_BOOKMARK_MGR(mgr) && name && url, -1); VglBookmark *bmk; VglBookmarkMgrPrivate *priv = mgr->priv; bmk = vgl_bookmark_new(priv->min_unused_id, name, url); priv->bookmarks = g_list_append(priv->bookmarks, bmk); priv->min_unused_id++; priv->dirty = TRUE; g_signal_emit(mgr, mgr_signals[ADDED], 0, bmk); return bmk->id; } void vgl_bookmark_mgr_remove_bookmark (VglBookmarkMgr *mgr, int id) { g_return_if_fail(VGL_IS_BOOKMARK_MGR(mgr) && id >= 0); VglBookmarkMgrPrivate *priv = mgr->priv; GList *l = vgl_bookmark_mgr_find_bookmark_node(mgr, id); if (l != NULL) { VglBookmark *bmk = (VglBookmark *) l->data; vgl_bookmark_destroy(bmk); priv->bookmarks = g_list_delete_link( priv->bookmarks, l); priv->dirty = TRUE; g_signal_emit(mgr, mgr_signals[REMOVED], 0, id); } else { g_warning("%s: bookmark %d does not exist", __FUNCTION__, id); } } void vgl_bookmark_mgr_change_bookmark (VglBookmarkMgr *mgr, int id, char *newname, char *newurl) { g_return_if_fail(VGL_IS_BOOKMARK_MGR(mgr) && id >= 0); GList *l = vgl_bookmark_mgr_find_bookmark_node(mgr, id); if (l != NULL) { VglBookmark *bmk = (VglBookmark *) l->data; vgl_bookmark_change(bmk, newname, newurl); mgr->priv->dirty = TRUE; g_signal_emit(mgr, mgr_signals[CHANGED], 0, bmk); } else { g_warning("%s: bookmark %d does not exist", __FUNCTION__, id); } } const VglBookmark * vgl_bookmark_mgr_get_bookmark (VglBookmarkMgr *mgr, int id) { g_return_val_if_fail(VGL_IS_BOOKMARK_MGR(mgr) && id >= 0, NULL); GList *l = vgl_bookmark_mgr_find_bookmark_node(mgr, id); if (l != NULL) { return (const VglBookmark *) l->data; } return NULL; } const GList * vgl_bookmark_mgr_get_bookmark_list (VglBookmarkMgr *mgr) { g_return_val_if_fail(VGL_IS_BOOKMARK_MGR(mgr), NULL); return mgr->priv->bookmarks; } /** * Reorders the list of bookmarks using the bookmark IDs as keys. * * @param mgr The bookmark manager * @para ids An array indicating the new order, finishing with -1 */ void vgl_bookmark_mgr_reorder (VglBookmarkMgr *mgr, const int *ids) { g_return_if_fail (VGL_IS_BOOKMARK_MGR (mgr)); VglBookmarkMgrPrivate *priv = mgr->priv; GList *iter; int pos = 0; for (iter = priv->bookmarks; iter != NULL; iter = iter->next, pos++) { VglBookmark *bmk = (VglBookmark *) iter->data; int id = ids [pos]; g_return_if_fail (bmk != NULL && id != -1); if (bmk->id != id) { GList *l; l = g_list_find_custom (iter, GINT_TO_POINTER (id), vgl_bookmark_compare); g_return_if_fail (l != NULL); iter->data = l->data; l->data = bmk; } } priv->dirty = TRUE; g_return_if_fail (ids [pos] == -1); } vagalume-0.8.6/src/util.h0000644000000000000000000000662612233552617012152 00000000000000/* * util.h -- Misc util functions * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef UTIL_H #define UTIL_H #include "config.h" #include "playlist.h" #include #include #include #ifdef HAVE_GIO # include #endif char * get_md5_hash (const char *str); char * compute_auth_token (const char *password, const char *timestamp); char * str_glist_join (const GList *list, const char *separator); gboolean file_exists (const char *filename); void string_replace_gstr (GString *str, const char *old, const char *new); char * string_replace (const char *str, const char *old, const char *new); GdkPixbuf * get_pixbuf_from_image (const char *data, size_t size, int imgsize); const char * get_home_directory (void); const char * get_language_code (void); char * obfuscate_string (char *str); char * lastfm_url_decode (const char *url); char * lastfm_url_encode (const char *url); void xml_add_string (xmlNode *parent, const char *name, const char *value); void xml_add_bool (xmlNode *parent, const char *name, gboolean value); void xml_add_glong (xmlNode *parent, const char *name, glong value); const xmlNode * xml_find_node (const xmlNode *node, const char *name); const xmlNode * xml_get_string (xmlDoc *doc, const xmlNode *node, const char *name, char **value); const xmlNode * xml_get_bool (xmlDoc *doc, const xmlNode *node, const char *name, gboolean *value); const xmlNode * xml_get_glong (xmlDoc *doc, const xmlNode *node, const char *name, glong *value); #ifdef HAVE_GIO void launch_url (const char *url, GAppLaunchContext *context); #endif void lastfm_get_track_cover_image (LastfmTrack *track); #endif vagalume-0.8.6/src/globaldefs.h0000644000000000000000000000201512233552617013263 00000000000000/* * globaldefs.h -- Some global definitions * * Copyright (C) 2007-2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef GLOBALDEFS_H #define GLOBALDEFS_H #include "config.h" #define APP_NAME "Vagalume" #define APP_NAME_LC "vagalume" #define APP_VERSION VERSION #define APP_OS KERNEL_NAME #define APP_OS_LC KERNEL_NAME_LC #define SB_PLUGIN_NAME "Vagalume Status Bar Plugin" #define SB_PLUGIN_NAME_LC "vgl-sb-plugin" #define SB_PLUGIN_VERSION VERSION #define APP_FULLNAME APP_NAME " " APP_VERSION " (" APP_OS "/" ARCH ")" /* Client ID and version provided by Last.fm - don't change */ #define LASTFM_APP_ID "vag" #define LASTFM_APP_VERSION "0.1" #define APP_ICON PIXMAP_DIR "/vagalume.xpm" #define APP_ICON_BIG ICON48_DIR "/vagalume.png" #define THEME_ICONS_DIR APP_DATA_DIR "/icons" #ifdef MAEMO5 # define FINGER_SIZE (HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH) #endif #endif vagalume-0.8.6/src/userconfig.c0000644000000000000000000003767312233552617013342 00000000000000/* * userconfig.c -- Read and write the user configuration file * * Copyright (C) 2007-2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include #include #include #include #include #include "globaldefs.h" #include "userconfig.h" #include "lastfm-ws.h" #include "scrobbler.h" #include "util.h" #define DEFAULT_IMSTATUS_TEMPLATE \ "\342\231\253 {artist} - {title} \342\231\253 (Vagalume {version})" static char * cfg_get_val (const char *line, const char *key) { g_return_val_if_fail(line != NULL && key != NULL, NULL); regex_t creg; regmatch_t pmatch[2]; char *value = NULL; char *regex; regex = g_strconcat("^ *", key, " *= *\"\\(.*\\)\" *$", NULL); int comp = regcomp(&creg, regex, 0); g_free(regex); g_return_val_if_fail(comp == 0, NULL); if (regexec(&creg, line, 2, pmatch, 0) == 0) { regoff_t first = pmatch[1].rm_so; regoff_t last = pmatch[1].rm_eo; value = g_strndup(line+first, last-first); } regfree(&creg); return value; } /* Old config file, to be removed soon */ static char * get_old_cfg_filename (void) { const char *homedir = get_home_directory (); return g_strconcat(homedir, "/.vagalumerc", NULL); } static char * default_download_dir (void) { const char *homedir = get_home_directory (); char *dldir = NULL; if (homedir == NULL) { return g_strdup("/tmp"); } #ifdef MAEMO dldir = g_strconcat(homedir, "/MyDocs/.sounds", NULL); #else dldir = g_strdup(homedir); #endif return dldir; } const char * vgl_user_cfg_get_cfgdir (void) { static char *cfgdir = NULL; if (cfgdir == NULL) { const char *homedir = get_home_directory (); if (homedir != NULL) { cfgdir = g_strconcat (homedir, "/" VAGALUME_CONFIG_DIR, NULL); } if (cfgdir != NULL) { g_mkdir_with_parents (cfgdir, 0755); } } return cfgdir; } static const char * get_cfg_filename (void) { static char *cfgfile = NULL; if (cfgfile == NULL) { const char *cfgdir = vgl_user_cfg_get_cfgdir (); cfgfile = g_strconcat (cfgdir, "/config.xml" , NULL); } return cfgfile; } void vgl_user_cfg_set_username (VglUserCfg *cfg, const char *username) { g_return_if_fail(cfg != NULL && username != NULL); g_free(cfg->username); cfg->username = g_strstrip(g_strdup(username)); } void vgl_user_cfg_set_password (VglUserCfg *cfg, const char *password) { g_return_if_fail(cfg != NULL && password != NULL); g_free(cfg->password); cfg->password = g_strstrip(g_strdup(password)); } static void vgl_user_cfg_set_server (VglUserCfg *cfg, VglServer *server) { g_return_if_fail (cfg != NULL && server != NULL); vgl_object_ref (server); if (cfg->server) { vgl_object_unref (cfg->server); } cfg->server = server; } void vgl_user_cfg_set_server_name (VglUserCfg *cfg, const char *name) { VglServer *server; g_return_if_fail (cfg != NULL && name != NULL); server = vgl_server_list_find_by_name (name); if (server) { vgl_user_cfg_set_server (cfg, server); } else { g_warning ("No such server: %s", name); } } void vgl_user_cfg_set_http_proxy (VglUserCfg *cfg, const char *proxy) { g_return_if_fail(cfg != NULL && proxy != NULL); g_free(cfg->http_proxy); cfg->http_proxy = g_strstrip(g_strdup(proxy)); } void vgl_user_cfg_set_download_dir (VglUserCfg *cfg, const char *dir) { g_return_if_fail(cfg != NULL && dir != NULL); g_free(cfg->download_dir); cfg->download_dir = g_strstrip(g_strdup(dir)); } void vgl_user_cfg_set_imstatus_template (VglUserCfg *cfg, const char *str) { g_return_if_fail(cfg != NULL && str != NULL); g_free(cfg->imstatus_template); cfg->imstatus_template = g_strstrip(g_strdup(str)); } VglUserCfg * vgl_user_cfg_new (void) { VglUserCfg *cfg = g_slice_new0(VglUserCfg); cfg->username = g_strdup(""); cfg->password = g_strdup(""); cfg->http_proxy = g_strdup(""); cfg->download_dir = default_download_dir(); cfg->imstatus_template = g_strdup(DEFAULT_IMSTATUS_TEMPLATE); cfg->server = vgl_server_get_default (); if (cfg->server) vgl_object_ref (cfg->server); cfg->use_proxy = FALSE; cfg->use_system_proxy = FALSE; cfg->low_bitrate = FALSE; cfg->enable_scrobbling = TRUE; cfg->discovery_mode = FALSE; cfg->im_pidgin = FALSE; cfg->im_gajim = FALSE; cfg->im_gossip = FALSE; cfg->im_telepathy = FALSE; cfg->disable_confirm_dialogs = FALSE; cfg->show_notifications = TRUE; cfg->close_to_systray = TRUE; cfg->autodl_free_tracks = FALSE; return cfg; } void vgl_user_cfg_destroy (VglUserCfg *cfg) { g_free(cfg->username); g_free(cfg->password); g_free(cfg->http_proxy); g_free(cfg->download_dir); g_free(cfg->imstatus_template); vgl_object_unref(cfg->server); g_slice_free(VglUserCfg, cfg); } static VglUserCfg * lastfm_old_usercfg_read (void) { VglUserCfg *cfg = NULL; const int bufsize = 256; char buf[bufsize]; char *cfgfile; FILE *fd = NULL; cfgfile = get_old_cfg_filename(); if (cfgfile != NULL) fd = fopen(cfgfile, "r"); g_free(cfgfile); if (fd == NULL) { g_debug("Config file not found"); return NULL; } cfg = vgl_user_cfg_new(); while (fgets(buf, bufsize, fd)) { int len = strlen(buf); char *val; if (len == 0) continue; if (buf[len-1] == '\n') buf[len-1] = '\0'; if ((val = cfg_get_val(buf, "username")) != NULL) { vgl_user_cfg_set_username(cfg, val); } else if ((val = cfg_get_val(buf, "password")) != NULL) { #ifdef MAEMO vgl_user_cfg_set_password(cfg, val); #else gsize len; char *pw = (char *) g_base64_decode(val, &len); pw = g_realloc(pw, len+1); pw[len] = '\0'; vgl_user_cfg_set_password(cfg, pw); g_free(pw); #endif } else if ((val = cfg_get_val(buf, "discovery")) != NULL) { cfg->discovery_mode = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "scrobble")) != NULL) { cfg->enable_scrobbling = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "use_proxy")) != NULL) { cfg->use_proxy = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "http_proxy")) != NULL) { vgl_user_cfg_set_http_proxy(cfg, val); } else if ((val = cfg_get_val(buf, "download_dir")) != NULL) { vgl_user_cfg_set_download_dir(cfg, val); } else if ((val = cfg_get_val(buf, "imstatus_template")) != NULL) { vgl_user_cfg_set_imstatus_template(cfg, val); } else if ((val = cfg_get_val(buf, "im_pidgin")) != NULL) { cfg->im_pidgin = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "im_gajim")) != NULL) { cfg->im_gajim = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "im_gossip")) != NULL) { cfg->im_gossip = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "im_telepathy")) != NULL) { cfg->im_telepathy = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "disable_confirm_dialogs")) != NULL) { cfg->disable_confirm_dialogs = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "show_notifications")) != NULL) { cfg->show_notifications = !strcmp(val, "1"); } else if ((val = cfg_get_val(buf, "close_to_systray")) != NULL) { cfg->close_to_systray = !strcmp(val, "1"); } g_free(val); } fclose(fd); return cfg; } VglUserCfg * vgl_user_cfg_read (void) { xmlDoc *doc = NULL; xmlNode *root = NULL; xmlNode *node = NULL; VglUserCfg *cfg = NULL; const char *cfgfile = get_cfg_filename (); if (file_exists (cfgfile)) { doc = xmlParseFile (cfgfile); if (doc == NULL) { g_warning ("Config file is not a valid XML file"); } } else { /* Read old cfg file if the new one doesn't exist */ g_debug ("Config file not found. Trying old config file."); cfg = lastfm_old_usercfg_read (); if (cfg != NULL) { g_debug ("Converting old config file to new one."); if (vgl_user_cfg_write (cfg)) { char *oldcfg = get_old_cfg_filename (); g_unlink (oldcfg); g_free (oldcfg); } } } /* Read the config file and do some basic checks */ if (doc != NULL) { root = xmlDocGetRootElement (doc); xmlChar *version = xmlGetProp (root, (xmlChar *) "version"); if (version == NULL || !xmlStrEqual (root->name, (xmlChar *) "config")) { g_warning ("Error parsing config file"); } else if (!xmlStrEqual (version, (xmlChar *) "1")) { g_warning ("This config file is version %s, but " "Vagalume " APP_VERSION " can only " "read version 1", version); } else { node = root->xmlChildrenNode; } if (version != NULL) xmlFree (version); } /* Parse the configuration */ if (node != NULL) { char *str; cfg = vgl_user_cfg_new(); /* This code is not very optimal, but it is simpler */ if (xml_get_string (doc, node, "username", &str)) { vgl_user_cfg_set_username (cfg, str); g_free (str); } if (xml_get_string (doc, node, "password", &str)) { obfuscate_string (str); vgl_user_cfg_set_password (cfg, str); g_free (str); } if (xml_get_string (doc, node, "http-proxy", &str)) { vgl_user_cfg_set_http_proxy (cfg, str); g_free (str); } if (xml_get_string (doc, node, "download-dir", &str)) { vgl_user_cfg_set_download_dir (cfg, str); g_free (str); } if (xml_get_string (doc, node, "imstatus-template", &str)) { vgl_user_cfg_set_imstatus_template (cfg, str); g_free (str); } if (xml_get_string (doc, node, "server-name", &str)) { vgl_user_cfg_set_server_name (cfg, str); g_free (str); } xml_get_bool (doc, node, "use-proxy", &(cfg->use_proxy)); xml_get_bool (doc, node, "use-system-proxy", &(cfg->use_system_proxy)); xml_get_bool (doc, node, "low-bitrate", &(cfg->low_bitrate)); xml_get_bool (doc, node, "discovery-mode", &(cfg->discovery_mode)); xml_get_bool (doc, node, "enable-scrobbling", &(cfg->enable_scrobbling)); xml_get_bool (doc, node, "im-pidgin", &(cfg->im_pidgin)); xml_get_bool (doc, node, "im-gajim", &(cfg->im_gajim)); xml_get_bool (doc, node, "im-gossip", &(cfg->im_gossip)); xml_get_bool (doc, node, "im-telepathy", &(cfg->im_telepathy)); xml_get_bool (doc, node, "disable-confirm-dialogs", &(cfg->disable_confirm_dialogs)); xml_get_bool (doc, node, "show-notifications", &(cfg->show_notifications)); xml_get_bool (doc, node, "close-to-systray", &(cfg->close_to_systray)); xml_get_bool (doc, node, "autodownload-free-tracks", &(cfg->autodl_free_tracks)); } if (doc != NULL) xmlFreeDoc (doc); return cfg; } gboolean vgl_user_cfg_write (VglUserCfg *cfg) { xmlDoc *doc; xmlNode *root; gboolean retvalue = TRUE; const char *cfgfile = get_cfg_filename (); g_return_val_if_fail (cfg != NULL, FALSE); doc = xmlNewDoc ((xmlChar *) "1.0"); root = xmlNewNode (NULL, (xmlChar *) "config"); xmlSetProp (root, (xmlChar *) "version", (xmlChar *) "1"); xmlSetProp (root, (xmlChar *) "revision", (xmlChar *) "5"); xmlDocSetRootElement (doc, root); xml_add_string (root, "username", cfg->username); xml_add_string (root, "password", obfuscate_string (cfg->password)); obfuscate_string (cfg->password); xml_add_string (root, "server-name", cfg->server->name); xml_add_string (root, "http-proxy", cfg->http_proxy); xml_add_string (root, "download-dir", cfg->download_dir); xml_add_string (root, "imstatus-template", cfg->imstatus_template); xml_add_bool (root, "use-proxy", cfg->use_proxy); xml_add_bool (root, "use-system-proxy", cfg->use_system_proxy); xml_add_bool (root, "low-bitrate", cfg->low_bitrate); xml_add_bool (root, "discovery-mode", cfg->discovery_mode); xml_add_bool (root, "enable-scrobbling", cfg->enable_scrobbling); xml_add_bool (root, "im-pidgin", cfg->im_pidgin); xml_add_bool (root, "im-gajim", cfg->im_gajim); xml_add_bool (root, "im-gossip", cfg->im_gossip); xml_add_bool (root, "im-telepathy", cfg->im_telepathy); xml_add_bool (root, "disable-confirm-dialogs", cfg->disable_confirm_dialogs); xml_add_bool (root, "show-notifications", cfg->show_notifications); xml_add_bool (root, "close-to-systray", cfg->close_to_systray); xml_add_bool (root, "autodownload-free-tracks", cfg->autodl_free_tracks); if (xmlSaveFormatFileEnc (cfgfile, doc, "UTF-8", 1) == -1) { g_critical ("Unable to open %s", cfgfile); retvalue = FALSE; } xmlFreeDoc (doc); return retvalue; } vagalume-0.8.6/src/controller.c0000644000000000000000000020374012233552617013347 00000000000000/* * controller.c -- Where the control of the program is * * Copyright (C) 2007-2011, 2013 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "config.h" #include #include #include #include #include #include #include "marshal.h" #include "connection.h" #include "controller.h" #include "scrobbler.h" #include "protocol.h" #include "playlist.h" #include "audio.h" #include "uimisc.h" #include "dlwin.h" #include "http.h" #include "globaldefs.h" #include "util.h" #include "vgl-bookmark-mgr.h" #include "vgl-bookmark-window.h" #include "vgl-server.h" #include "lastfm-ws.h" #include "compat.h" #ifdef SET_IM_STATUS #include "imstatus.h" #endif #ifdef HAVE_DBUS_SUPPORT #include "dbus.h" #endif #ifdef HAVE_TRAY_ICON #include "vgl-tray-icon.h" #endif #ifdef MAEMO #include #endif G_DEFINE_TYPE (VglController, vgl_controller, G_TYPE_OBJECT); static VglController *vgl_controller = NULL; enum { CONNECTED, DISCONNECTED, TRACK_STARTED, TRACK_STOPPED, PLAYER_STOPPED, USERCFG_CHANGED, PLAYBACK_PROGRESS, N_SIGNALS }; static guint signals[N_SIGNALS] = { 0 }; static LastfmWsSession *session = NULL; static LastfmPls *playlist = NULL; static VglMainWindow *mainwin = NULL; static VglUserCfg *usercfg = NULL; static GList *friends = NULL; static GList *usertags = NULL; static LastfmTrack *nowplaying = NULL; static char *current_radio_url = NULL; static RspRating nowplaying_rating = RSP_RATING_NONE; static gboolean showing_cover = FALSE; static gboolean stop_after_this_track = FALSE; static gboolean shutting_down = FALSE; typedef struct { LastfmWsSession *session; LastfmTrack *track; char *taglist; /* comma-separated list of tags */ LastfmTrackComponent type; } TagData; typedef struct { LastfmWsSession *session; LastfmTrack *track; char *rcpt; /* Recipient of the recommendation */ char *text; /* text of the recommendation */ LastfmTrackComponent type; } RecommData; typedef struct { LastfmTrack *track; char *dstpath; } DownloadData; typedef struct { LastfmWsSession *session; gboolean discovery; gboolean lowbitrate; } GetPlaylistData; typedef struct { LastfmWsSession *session; LastfmTrack *track; } AddToPlaylistData; typedef struct { LastfmWsSession *session; char *url; LastfmErrorCode error_code; } PlayRadioByUrlData; /* * Callback called after check_session() in all cases. * data is user-provided data, and must be freed by the caller * Different callbacks must be supplied for success and failure */ typedef void (*check_session_cb)(gpointer data); typedef struct { char *user; char *pass; VglServer *srv; LastfmWsSession *session; LastfmErr err; check_session_cb success_cb; check_session_cb failure_cb; gpointer cbdata; } CheckSessionData; /** * Show an error dialog with an OK button * * @param text The text to show */ void controller_show_error (const char *text) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); ui_error_dialog(vgl_main_window_get_window(mainwin, TRUE), text); } /** * Show a warning dialog with an OK button * * @param text The text to show */ void controller_show_warning (const char *text) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); ui_warning_dialog(vgl_main_window_get_window(mainwin, TRUE), text); } /** * Show an info dialog with an OK button * * @param text The text to show */ void controller_show_info (const char *text) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); ui_info_dialog(vgl_main_window_get_window(mainwin, TRUE), text); } /** * Show an info banner (with no buttons if possible) * * @param text The text to show */ void controller_show_banner (const char *text) { #ifdef MAEMO ui_info_banner(vgl_main_window_get_window(mainwin, FALSE), text); #else vgl_main_window_show_status_msg(mainwin, text); #endif } /** * Show the about dialog */ void controller_show_about (void) { ui_about_dialog (vgl_main_window_get_window (mainwin, FALSE)); } /** * Show an OK/cancel dialog to request confirmation from the user * * @param text The text to show * @return TRUE if the user selects OK, cancel otherwise */ gboolean controller_confirm_dialog (const char *text, gboolean show_always) { g_return_val_if_fail(VGL_IS_MAIN_WINDOW(mainwin), FALSE); if (!show_always && usercfg->disable_confirm_dialogs) return TRUE; return ui_confirm_dialog(vgl_main_window_get_window(mainwin, FALSE), text); } /** * Show/Hide the program main window * * @param show Whether to show or hide it */ void controller_show_mainwin (gboolean show) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); vgl_main_window_show(mainwin, show); } /** * Iconify/deiconify the program main window * * @param iconify Whether to iconify or not (deiconify) */ void controller_toggle_mainwin_visibility (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); vgl_main_window_toggle_visibility(mainwin); } /** * Calculate the amount of time that a track has been playing and emit * the 'playback-progress' signal. To be called using g_timeout_add() * * @param data A pointer to the LastfmTrack being played * @return TRUE if the track hasn't fininished yet, FALSE otherwise */ static gboolean controller_update_progress (gpointer data) { LastfmTrack *tr = (LastfmTrack *) data; g_return_val_if_fail(VGL_IS_MAIN_WINDOW(mainwin) && tr, FALSE); if (nowplaying != NULL && tr->id == nowplaying->id) { guint played = lastfm_audio_get_running_time(); if (played != -1) { guint length = nowplaying->duration/1000; g_signal_emit (vgl_controller, signals[PLAYBACK_PROGRESS], 0, played, length); } return TRUE; } else { vgl_object_unref(tr); return FALSE; } } /** * Gets the list of friends * @return The list */ const GList * controller_get_friend_list (void) { return friends; } /** * Gets the track that is currently being played * @return The track */ LastfmTrack * controller_get_current_track (void) { return nowplaying; } /** * Set the list of friends, deleting the previous one. * @param user The user ID. If it's different from the active user, * no changes will be made. * @param list The list of friends */ static void set_friend_list (const char *user, GList *list) { g_return_if_fail(user != NULL && usercfg != NULL); if (!strcmp(user, usercfg->username)) { g_list_foreach(friends, (GFunc) g_free, NULL); g_list_free(friends); friends = list; } } /** * Set the list of user tags, deleting the previous one. * @param user The user ID. If it's different from the active user, * no changes will be made. * @param list The list of tags */ static void set_user_tag_list (const char *user, GList *list) { g_return_if_fail(user != NULL && usercfg != NULL); if (!strcmp(user, usercfg->username)) { g_list_foreach(usertags, (GFunc) g_free, NULL); g_list_free(usertags); usertags = list; } } /** * Set a track as "Now Playing" * * @param track The track to be set as Now Playing */ static void controller_set_nowplaying (LastfmTrack *track) { if (nowplaying != NULL) { vgl_object_unref (nowplaying); } nowplaying = track; nowplaying_rating = RSP_RATING_NONE; } /** * Initializes an RSP session and get list of friends. This must be * called only from check_session_thread() !! * * @param data Not used * @return NULL (not used) */ static void get_user_extradata (void) { g_return_if_fail (usercfg != NULL); gboolean finished = FALSE; gboolean friends_ok = FALSE; gboolean usertags_ok = FALSE; GList *friends = NULL; GList *usertags = NULL; gdk_threads_enter(); char *user = g_strdup(usercfg->username); char *pass = g_strdup(usercfg->password); VglServer *srv = vgl_object_ref (usercfg->server); gdk_threads_leave(); if (!user || !pass || user[0] == '\0' || pass[0] == '\0') { finished = TRUE; } while (!finished) { if (!friends_ok) { friends_ok = lastfm_ws_get_friends (srv, user, &friends); if (friends_ok) { g_debug("Friend list ready"); gdk_threads_enter(); set_friend_list(user, friends); gdk_threads_leave(); } else { g_warning("Error getting friend list"); } } if (!usertags_ok) { usertags_ok = lastfm_ws_get_user_tags (srv, user, &usertags); if (usertags_ok) { g_debug("Tag list ready"); gdk_threads_enter(); set_user_tag_list(user, usertags); gdk_threads_leave(); } else { g_warning("Error getting tag list"); } } if (friends_ok && usertags_ok) { finished = TRUE; } else { gdk_threads_enter(); if (!usercfg || strcmp(usercfg->username, user)) { finished = TRUE; } gdk_threads_leave(); if (!finished) g_usleep(G_USEC_PER_SEC * 60); } } g_free(user); g_free(pass); vgl_object_unref(srv); } /** * Apply all user cfg settings */ static void apply_usercfg (void) { g_return_if_fail(usercfg != NULL); if (usercfg->use_proxy) { http_set_proxy (usercfg->http_proxy, usercfg->use_system_proxy); } else { http_set_proxy (NULL, FALSE); } g_signal_emit (vgl_controller, signals[USERCFG_CHANGED], 0, usercfg); } /** * Open the user settings dialog and save the new settings to the * configuration file. If the username or password have been modified, * close the current session. */ void controller_open_usercfg (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); gboolean userchanged = FALSE; gboolean pwchanged = FALSE; gboolean srvchanged = FALSE; gboolean bitratechanged = FALSE; gboolean changed; char *olduser = usercfg != NULL ? g_strdup(usercfg->username) : g_strdup(""); char *oldpw = usercfg != NULL ? g_strdup(usercfg->password) : g_strdup(""); VglServer *oldsrv = usercfg ? vgl_object_ref (usercfg->server) : NULL; gboolean oldbitrate = usercfg ? usercfg->low_bitrate : FALSE; changed = ui_usercfg_window( vgl_main_window_get_window(mainwin, FALSE), &usercfg); if (changed && usercfg != NULL) { vgl_user_cfg_write(usercfg); userchanged = strcmp(olduser, usercfg->username); pwchanged = strcmp(oldpw, usercfg->password); srvchanged = oldsrv != usercfg->server; bitratechanged = oldbitrate != usercfg->low_bitrate; apply_usercfg(); } if (userchanged || pwchanged || srvchanged || bitratechanged) { if (userchanged || srvchanged) { set_friend_list(usercfg->username, NULL); set_user_tag_list(usercfg->username, NULL); } controller_disconnect(); } g_free(olduser); g_free(oldpw); if (oldsrv) { vgl_object_unref (oldsrv); } } /** * Import an XML file with server data and merge it with the current * file */ void controller_import_servers_file (void) { char *filename; g_return_if_fail (VGL_IS_MAIN_WINDOW (mainwin)); filename = ui_select_servers_file ( vgl_main_window_get_window (mainwin, FALSE)); if (filename != NULL) { gboolean imported = vgl_server_import_file (filename); if (imported && usercfg != NULL) { VglServer *srv; controller_disconnect (); srv = vgl_server_list_find_by_name ( usercfg->server->name); g_return_if_fail (srv != NULL); vgl_object_ref (srv); vgl_object_unref (usercfg->server); usercfg->server = srv; } if (imported) { ui_info_dialog ( vgl_main_window_get_window (mainwin, TRUE), _("Server info imported correctly")); } else { ui_warning_dialog ( vgl_main_window_get_window (mainwin, TRUE), _("No server info found in that file")); } g_free (filename); } } /** * Check if the user settings exist (whether they are valid or * not). If they don't exist, read the config file or open the * settings dialog (if ask == TRUE). This should only return FALSE * the first time the user runs the program. * * @param ask If TRUE, open the settings dialog if necessary * @return TRUE if the settings exist, FALSE otherwise */ static gboolean check_usercfg (gboolean ask) { if (usercfg == NULL) { usercfg = vgl_user_cfg_read(); if (usercfg == NULL && ask) { controller_open_usercfg(); } if (usercfg != NULL) { apply_usercfg(); } } return (usercfg != NULL); } /** * Proceed after creating (or trying to create) a new Last.fm session. * * @param userdata A pointer to a CheckSessionData struct * @return FALSE (to remove the idle handler) */ static gboolean check_session_idle (gpointer userdata) { CheckSessionData *data = userdata; const gboolean success = data->session != NULL; if (!success) { controller_disconnect(); if (data->err == LASTFM_ERR_LOGIN) { char *text = g_strdup_printf ( _("Unable to login to %s\n" "Check username and password"), data->srv->name); controller_show_warning (text); g_free (text); } else { controller_show_warning(_("Network connection error")); } } else { if (session) { vgl_object_unref (session); } session = data->session; g_signal_emit (vgl_controller, signals[CONNECTED], 0, data->session); vgl_main_window_set_state (mainwin, VGL_MAIN_WINDOW_STATE_STOPPED, NULL, NULL); } /* Call the callback */ if (success && data->success_cb != NULL) { (*(data->success_cb)) (data->cbdata); } else if (!success && data->failure_cb != NULL) { (*(data->failure_cb)) (data->cbdata); } /* Free memory */ g_free (data->user); g_free (data->pass); vgl_object_unref (data->srv); g_slice_free (CheckSessionData, data); return FALSE; } /** * Create a new Last.fm session. This is done in a thread to avoid * freezing the UI. * * @param userdata A pointer to a CheckSessionData struct * @return NULL (not used) */ static gpointer check_session_thread (gpointer userdata) { gboolean success; CheckSessionData *data = userdata; g_return_val_if_fail (data != NULL, NULL); data->session = lastfm_ws_get_session (data->srv, data->user, data->pass, &(data->err)); success = (data->session != NULL); gdk_threads_add_idle (check_session_idle, data); if (success) { get_user_extradata(); } return NULL; } /** * This is the callback of connection_go_online(). It'll just create * a thread and let the process continue * @param data A pointer with data to pass to the thread */ static void check_session_conn_cb (gpointer data) { g_thread_create(check_session_thread, data, FALSE, NULL); } /** * Check if there's a Last.fm session opened. If not, try to create * one. * The actual connection is performed in check_session_thread() to * avoid freezing the UI * * @param success_cb A callback in case this function succeeds * @param failure_cb A callback in case this function fails * @param cbdata Parameter that will be passed to both callbacks, * must be freed by the caller (if necessary) */ static void check_session (check_session_cb success_cb, check_session_cb failure_cb, gpointer cbdata) { /* Then the actual streaming session */ if (session != NULL) { if (success_cb != NULL) (*success_cb)(cbdata); } else { check_usercfg (TRUE); if (usercfg != NULL) { CheckSessionData *data; data = g_slice_new (CheckSessionData); data->user = g_strdup(usercfg->username); data->pass = g_strdup(usercfg->password); data->srv = vgl_object_ref(usercfg->server); data->session = NULL; data->err = LASTFM_ERR_NONE; data->success_cb = success_cb; data->failure_cb = failure_cb; data->cbdata = cbdata; connection_go_online(check_session_conn_cb, data); vgl_main_window_set_state ( mainwin, VGL_MAIN_WINDOW_STATE_CONNECTING, NULL, NULL); } else { controller_disconnect(); controller_show_warning(_("You need to enter your\n" "username and password\n" "to be able " "to use this program.")); if (failure_cb != NULL) (*failure_cb)(cbdata); } } } /** * Set the album cover image. * @param data A pointer to the LastfmTrack * @return FALSE (to remove the idle handler) */ static gboolean set_album_cover_idle (gpointer data) { LastfmTrack *track = data; if (mainwin && nowplaying == track) { vgl_main_window_set_album_cover (mainwin, track->image_data, track->image_data_size); } return FALSE; } /** * Retrieve the album cover image. This must be done in a thread to * avoid freezing the UI. * @param data A pointer to the LastfmTrack * @return NULL (not used) */ static gpointer set_album_cover_thread (gpointer data) { LastfmTrack *track = data; g_return_val_if_fail (track != NULL && track->image_url != NULL, NULL); lastfm_get_track_cover_image (track); if (track->image_data == NULL) { g_warning ("Error getting cover image"); } gdk_threads_add_idle_full (G_PRIORITY_DEFAULT, set_album_cover_idle, track, vgl_object_unref); return NULL; } /** * Get a new playlist and append it to the end of the current * one. Show an error if no playlist is found, start playing * otherwise. * * @param data A pointer to the new playlist, or NULL * @return FALSE (to remove the idle handler) */ static gboolean start_playing_get_pls_idle (gpointer data) { LastfmPls *pls = data; if (pls == NULL) { controller_stop_playing (); controller_show_info (_("No more content to play")); } else { lastfm_pls_merge (playlist, pls); lastfm_pls_destroy (pls); controller_start_playing (); } return FALSE; } /** * Get a new playlist. This can take a bit, so it is done in a * separate thread to avoid freezing the UI. * * @param data A pointer to the LastfmWsSession used to get the new * playlist. * @return NULL (not used) */ static gpointer start_playing_get_pls_thread (gpointer data) { GetPlaylistData *d = data; LastfmPls *pls; g_return_val_if_fail (d != NULL && d->session != NULL, NULL); pls = lastfm_ws_radio_get_playlist (d->session, d->discovery, d->lowbitrate, TRUE); gdk_threads_add_idle (start_playing_get_pls_idle, pls); vgl_object_unref (d->session); g_slice_free (GetPlaylistData, d); return NULL; } /** * Download the cover of the track being played and show it in the * main window. This will create a thread to avoid freezing the UI. * If the window is not visible or if the cover is already displayed * (or about to be displayed) this will do nothing so this function * can be called several times. */ void controller_show_cover (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); if (showing_cover || nowplaying == NULL || vgl_main_window_is_hidden(mainwin)) return; showing_cover = TRUE; if (nowplaying->image_url != NULL && nowplaying->image_data == NULL) { g_thread_create (set_album_cover_thread, vgl_object_ref (nowplaying), FALSE, NULL); } else { vgl_main_window_set_album_cover (mainwin, nowplaying->image_data, nowplaying->image_data_size); } } /** * Callback to be called by the audio component when it actually * starts playing */ static void controller_audio_started_cb (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin) && nowplaying); LastfmTrack *track; vgl_main_window_set_state (mainwin, VGL_MAIN_WINDOW_STATE_PLAYING, nowplaying, current_radio_url); track = vgl_object_ref (nowplaying); controller_update_progress (track); showing_cover = FALSE; controller_show_cover(); gdk_threads_add_timeout_seconds (1, controller_update_progress, track); g_signal_emit (vgl_controller, signals[TRACK_STARTED], 0, nowplaying); } /** * Play the next track from the playlist, getting a new playlist if * necessary, see start_playing_get_pls_thread(). * * This is the success callback of controller_start_playing() * * @param userdata Not used */ static void controller_start_playing_cb (gpointer userdata) { LastfmTrack *track = NULL; LastfmSession *v1session; g_return_if_fail(mainwin && playlist && nowplaying == NULL); vgl_main_window_set_state (mainwin, VGL_MAIN_WINDOW_STATE_CONNECTING, NULL, NULL); if (lastfm_pls_size(playlist) == 0) { GetPlaylistData *data = g_slice_new (GetPlaylistData); data->session = vgl_object_ref (session); data->discovery = usercfg->discovery_mode; data->lowbitrate = usercfg->low_bitrate; g_thread_create (start_playing_get_pls_thread, data, FALSE, NULL); return; } track = lastfm_pls_get_track(playlist); controller_set_nowplaying(track); if (usercfg->autodl_free_tracks) { controller_download_track (TRUE); } v1session = lastfm_ws_session_get_v1_session (session); lastfm_audio_play(track->stream_url, (GCallback) controller_audio_started_cb, v1session ? v1session->id : NULL); } /** * Play the next track from the playlist, getting a new playlist if * necessary, see start_playing_get_pls_thread(). * This only calls check_session() the actual code is in * controller_start_playing_cb() */ void controller_start_playing (void) { if (stop_after_this_track) { controller_stop_playing(); } else { check_session_cb cb; cb = (check_session_cb) controller_start_playing_cb; check_session(cb, NULL, NULL); } } /** * Stop the track being played (if any) and scrobbles it. To be called * only from controller_stop_playing(), controller_skip_track() and * controller_play_radio_by_url() */ static void finish_playing_track (void) { if (nowplaying != NULL) { RspRating rating = nowplaying_rating; controller_set_nowplaying(NULL); lastfm_audio_stop (); g_signal_emit (vgl_controller, signals[TRACK_STOPPED], 0, rating); } } /** * Stop the track being played, updating the UI as well */ void controller_stop_playing (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); VglMainWindowState new_state = session != NULL ? VGL_MAIN_WINDOW_STATE_STOPPED : VGL_MAIN_WINDOW_STATE_DISCONNECTED; /* Updating the window title just before destroying the window * causes a crash, at least in the Moblin platform */ if (!shutting_down) vgl_main_window_set_state (mainwin, new_state, NULL, NULL); finish_playing_track(); stop_after_this_track = FALSE; g_signal_emit (vgl_controller, signals[PLAYER_STOPPED], 0); } /** * Stop the track being played and immediately play the next one. */ void controller_skip_track (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); finish_playing_track(); controller_start_playing(); } /** * Stop the track being played and disconnect from Last.fm, clearing * the active session (if any) */ void controller_disconnect (void) { if (session != NULL) { vgl_object_unref (session); session = NULL; } lastfm_pls_clear(playlist); controller_stop_playing(); g_signal_emit (vgl_controller, signals[DISCONNECTED], 0); } /** * Idle handler to call controller_show_banner() * * @param data The banner text * @return FALSE (to remove the idle handler) */ static gboolean show_banner_idle (gpointer data) { if (mainwin) { controller_show_banner ((const char *) data); } return FALSE; } /** * Download a file in background. Must be called using g_thread_create() */ static gpointer download_track_thread (gpointer userdata) { DownloadData *d = (DownloadData *) userdata; gboolean success; char *text; success = http_download_file (d->track->free_track_url, d->dstpath, NULL, NULL); if (success) { text = g_strdup_printf (_("Downloaded %s - %s"), d->track->artist, d->track->title); } else { g_unlink (d->dstpath); text = g_strdup_printf (_("Error downloading %s - %s"), d->track->artist, d->track->title); } gdk_threads_add_idle_full (G_PRIORITY_DEFAULT, show_banner_idle, text, g_free); d->track->dl_in_progress = FALSE; vgl_object_unref (d->track); g_free (d->dstpath); g_slice_free (DownloadData, d); return NULL; } /** * Callback executed when dlwin_download_file() finishes */ static void download_track_dlwin_cb (gboolean success, gpointer userdata) { LastfmTrack *track = (LastfmTrack *) userdata; track->dl_in_progress = FALSE; vgl_object_unref (track); } /** * Download the current track (if it's free) * * @param background If TRUE, start immediately in the background, * without using a download window */ void controller_download_track (gboolean background) { g_return_if_fail(nowplaying && nowplaying->free_track_url && usercfg); LastfmTrack *t = vgl_object_ref (nowplaying); if (t->dl_in_progress) { const char *msg = _("Track already being downloaded"); if (!background) { controller_show_info (msg); } } else if (background || controller_confirm_dialog (_("Download this track?"), FALSE)) { char *filename, *dstpath; gboolean download = TRUE; filename = g_strconcat(t->artist, " - ", t->title, ".mp3", NULL); dstpath = g_strconcat(usercfg->download_dir, "/", filename, NULL); if (file_exists(dstpath)) { if (background) { download = FALSE; } else { download = controller_confirm_dialog ( _("File exists. " "Overwrite?"), TRUE); } } if (download) { g_debug ("Downloading %s to file %s", t->free_track_url, dstpath); t->dl_in_progress = TRUE; if (background) { char *banner; DownloadData *dldata; dldata = g_slice_new (DownloadData); dldata->track = vgl_object_ref (t); dldata->dstpath = g_strdup (dstpath); g_thread_create (download_track_thread, dldata, FALSE, NULL); banner = g_strdup_printf ( _("Downloading %s - %s"), t->artist, t->title); controller_show_banner (banner); g_free (banner); } else { dlwin_download_file (t->free_track_url, filename, dstpath, download_track_dlwin_cb, vgl_object_ref (t)); } } g_free(filename); g_free(dstpath); } vgl_object_unref(t); } /** * Opens the bookmarks window */ void controller_manage_bookmarks (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); vgl_bookmark_window_show(vgl_main_window_get_window(mainwin, FALSE)); } /* * Bookmark the current track */ void controller_add_bookmark (BookmarkType type) { g_return_if_fail (VGL_IS_MAIN_WINDOW (mainwin)); g_return_if_fail (nowplaying != NULL || (type == BOOKMARK_TYPE_EMPTY)); char *name, *url; const char *banner; VglBookmarkMgr *mgr = vgl_bookmark_mgr_get_instance(); if (type == BOOKMARK_TYPE_ARTIST) { g_return_if_fail(nowplaying->artistid != 0); name = g_strdup(nowplaying->artist); url = g_strdup_printf("lastfm://play/artists/%u", nowplaying->artistid); banner = _("Artist added to bookmarks"); } else if (type == BOOKMARK_TYPE_TRACK) { g_return_if_fail(nowplaying->id != 0); name = g_strdup_printf("%s - '%s'", nowplaying->artist, nowplaying->title); url = g_strdup_printf("lastfm://play/tracks/%u", nowplaying->id); banner = _("Track added to bookmarks"); } else if (type == BOOKMARK_TYPE_CURRENT_RADIO) { g_return_if_fail (nowplaying->pls_title != NULL && current_radio_url != NULL); name = g_strdup (nowplaying->pls_title); url = g_strdup (current_radio_url); banner = _("Current radio added to bookmarks"); } else if (type == BOOKMARK_TYPE_EMPTY) { name = url = NULL; banner = _("Bookmark added"); } else { g_critical("Bookmark request not supported"); return; } if (ui_edit_bookmark_dialog(vgl_main_window_get_window(mainwin, FALSE), &name, &url, TRUE)) { vgl_bookmark_mgr_add_bookmark(mgr, name, url); vgl_bookmark_mgr_save_to_disk (mgr, TRUE); controller_show_banner(banner); } g_free(name); g_free(url); } /** * Stops playing a song after a given timeout. This function is called * from controller_set_stop_after(). */ static gboolean stop_after_timeout (gpointer data) { guint *source_id = (guint *) data; controller_stop_playing(); *source_id = 0; return FALSE; } /** * Asks the user whether to stop playback after this track of a given * time. */ void controller_set_stop_after (void) { /* If source_id != 0, playback will stop at source_stop_at (approx) */ static guint source_id = 0; static time_t source_stop_at; int minutes; StopAfterType stopafter; /* Get current values */ if (stop_after_this_track) { stopafter = STOP_AFTER_THIS_TRACK; } else if (source_id != 0) { stopafter = STOP_AFTER_N_MINUTES; minutes = (source_stop_at - time (NULL) + 59) / 60; if (minutes <= 0) minutes = 1; } else { stopafter = STOP_AFTER_DONT_STOP; } if (ui_stop_after_dialog ( vgl_main_window_get_window (mainwin, FALSE), &stopafter, &minutes)) { /* Clear previous values */ if (source_id != 0) { g_source_remove (source_id); source_id = 0; } stop_after_this_track = FALSE; /* Set new values */ if (stopafter == STOP_AFTER_N_MINUTES) { g_return_if_fail (minutes > 0); source_id = gdk_threads_add_timeout_seconds (minutes * 60, stop_after_timeout, &source_id); source_stop_at = time (NULL) + minutes * 60; } else if (stopafter == STOP_AFTER_THIS_TRACK) { stop_after_this_track = TRUE; } else if (stopafter != STOP_AFTER_DONT_STOP) { g_return_if_reached (); } } } /** * Mark the currently playing track as a loved track. This will be * used when scrobbling it. * @param interactive If called interactively */ void controller_love_track (gboolean interactive) { g_return_if_fail(nowplaying != NULL && VGL_IS_MAIN_WINDOW(mainwin)); if (!interactive || controller_confirm_dialog(_("Really mark track as loved?"),FALSE)) { nowplaying_rating = RSP_RATING_LOVE; vgl_main_window_set_track_as_loved(mainwin); if (interactive) { controller_show_banner(_("Marking track as loved")); } } } /** * Ban this track, marking it as banned and skipping it * @param interactive If called interactively */ void controller_ban_track (gboolean interactive) { g_return_if_fail(nowplaying != NULL); if (!interactive || controller_confirm_dialog(_("Really ban this track?"), FALSE)) { nowplaying_rating = RSP_RATING_BAN; controller_skip_track(); if (interactive) { controller_show_banner(_("Banning track")); } } } /** * Tag a track. This can take some seconds, so it must be called using * g_thread_create() to avoid freezing the UI. * * @param data Pointer to TagData, with info about the track to be * tagged. This data must be freed here * @return NULL (this value is not used) */ static gpointer tag_track_thread (gpointer data) { TagData *d = (TagData *) data; const char *text; gboolean tagged; GSList *list = NULL; char **tags; int i; g_return_val_if_fail (d && d->track && d->taglist, NULL); tags = g_strsplit(d->taglist, ",", 0); for (i = 0; tags[i] != NULL; i++) { list = g_slist_append(list, g_strstrip(tags[i])); } tagged = lastfm_ws_tag_track (d->session, d->track, d->type, list); /* Cleanup */ g_strfreev(tags); g_slist_free(list); vgl_object_unref(d->session); vgl_object_unref(d->track); g_free(d->taglist); g_slice_free(TagData, d); text = tagged ? _("Tags set correctly") : _("Error tagging"); gdk_threads_add_idle (show_banner_idle, (char *) text); return NULL; } /** * Ask the user a list of tags and tag the current artist, track or * album (yes, the name of the function is misleading but I can't * think of a better one) * @param type The type of tag (artist, track, album) */ void controller_tag_track (void) { /* Keep this static to remember the previous value */ static LastfmTrackComponent type = LASTFM_TRACK_COMPONENT_ARTIST; char *tags = NULL; LastfmTrack *track; LastfmWsSession *sess; gboolean accept; g_return_if_fail (mainwin && usercfg && nowplaying); track = vgl_object_ref (nowplaying); sess = vgl_object_ref (session); if (track->album[0] == '\0' && type == LASTFM_TRACK_COMPONENT_ALBUM) { type = LASTFM_TRACK_COMPONENT_ARTIST; } accept = tagwin_run(vgl_main_window_get_window(mainwin, FALSE), usercfg->username, &tags, usertags, sess, track, &type); if (accept) { TagData *d = g_slice_new (TagData); if (tags == NULL) { tags = g_strdup(""); } d->session = sess; d->track = track; d->taglist = tags; d->type = type; g_thread_create(tag_track_thread,d,FALSE,NULL); } else { if (accept) { controller_show_info(_("You must type a list of tags")); } vgl_object_unref(sess); vgl_object_unref(track); } } /** * Recommend a track. This can take some seconds, so it must be called * using g_thread_create() to avoid freezing the UI. * * @param data Pointer to RecommData, with info about the track to be * recommended. This data must be freed here * @return NULL (this value is not used) */ static gpointer recomm_track_thread (gpointer data) { RecommData *d = (RecommData *) data; const char *text; gboolean retval; g_return_val_if_fail (d && d->session && d->track && d->rcpt && d->text, NULL); retval = lastfm_ws_share_track (d->session, d->track, d->text, d->type, d->rcpt); text = retval ? _("Recommendation sent") : _("Error sending recommendation"); gdk_threads_add_idle (show_banner_idle, (char *) text); vgl_object_unref(d->track); vgl_object_unref(d->session); g_free(d->rcpt); g_free(d->text); g_slice_free(RecommData, d); return NULL; } /** * Ask the user a recipient and a message and recommend the current * artist, track or album (chosen by the user) */ void controller_recomm_track (void) { g_return_if_fail (nowplaying && session); char *rcpt = NULL; char *body = NULL; /* Keep this static to remember the previous value */ static LastfmTrackComponent type = LASTFM_TRACK_COMPONENT_TRACK; LastfmTrack *track = vgl_object_ref(nowplaying); LastfmWsSession *sess = vgl_object_ref (session); gboolean accept; if (track->album[0] == '\0' && type == LASTFM_TRACK_COMPONENT_ALBUM) { type = LASTFM_TRACK_COMPONENT_ARTIST; } accept = recommwin_run(vgl_main_window_get_window(mainwin, FALSE), &rcpt, &body, friends, track, &type); if (accept && rcpt && body && rcpt[0] && body[0]) { g_strstrip(rcpt); RecommData *d = g_slice_new (RecommData); d->session = sess; d->track = track; d->rcpt = rcpt; d->text = body; d->type = type; g_thread_create(recomm_track_thread,d,FALSE,NULL); } else { if (accept) { controller_show_info(_("You must type a user name\n" "and a recommendation message.")); } vgl_object_unref(track); vgl_object_unref(sess); g_free(rcpt); g_free(body); } } /** * Idle handler to update the UI after adding a track to the user's * playlist. * * @param data Boolean to tell whether the track was added or not * @return FALSE (to remove the idle handler) */ static gboolean add_to_playlist_idle (gpointer data) { if (mainwin) { gboolean added = GPOINTER_TO_INT (data); controller_show_banner (added ? _("Track added to playlist") : _("Error adding track to playlist")); vgl_main_window_set_track_as_added_to_playlist (mainwin, added); } return FALSE; } /** * Add a track to the user's playlist. This can take some seconds, so * it must be called using g_thread_create() to avoid freezing the UI. * * @param data Pointer to an AddToPlaylistData structure. * @return NULL (this value is not used) */ static gpointer add_to_playlist_thread (gpointer data) { AddToPlaylistData *d = (AddToPlaylistData *) data; gboolean added; g_return_val_if_fail (d && d->session && d->track, NULL); added = lastfm_ws_add_to_playlist (d->session, d->track); gdk_threads_add_idle (add_to_playlist_idle, GINT_TO_POINTER (added)); vgl_object_unref (d->session); vgl_object_unref (d->track); g_slice_free (AddToPlaylistData, d); return NULL; } /** * Add the now-playing track to the user's playlist, the one in the * Last.fm website: http://www.last.fm/user/USERNAME/playlist/ */ void controller_add_to_playlist (void) { LastfmTrack *track; LastfmWsSession *sess; g_return_if_fail (session != NULL && nowplaying != NULL); track = vgl_object_ref (nowplaying); sess = vgl_object_ref (session); if (controller_confirm_dialog( _("Really add this track to the playlist?"), FALSE)) { AddToPlaylistData *data = g_slice_new (AddToPlaylistData); data->session = session; data->track = track; vgl_main_window_set_track_as_added_to_playlist (mainwin, TRUE); g_thread_create (add_to_playlist_thread, data, FALSE, NULL); } else { vgl_object_unref (track); vgl_object_unref (sess); } } /** * Idle handler to start/stop playback after a new radio has been set * * @param data Pointer to a PlayRadioByUrlData struct * @return FALSE (to remove the idle handler) */ static gboolean controller_play_radio_by_url_idle (gpointer data) { PlayRadioByUrlData *d = data; const char *error_msg = NULL; switch (d->error_code) { case LASTFM_OK: g_free (current_radio_url); current_radio_url = d->url; lastfm_pls_clear (playlist); controller_skip_track (); break; case LASTFM_GEO_RESTRICTED: error_msg = _("This radio is not available\n" "in your country."); break; default: error_msg = _("Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers"); break; } if (error_msg != NULL) { controller_stop_playing (); controller_show_info (error_msg); g_free (d->url); } vgl_object_unref (d->session); g_slice_free (PlayRadioByUrlData, d); return FALSE; } /** * Start playing a radio by its URL, stopping the current track if * necessary * * This is a thread created from controller_play_radio_by_url_cb() * * @param data Pointer to a PlayRadioByUrlData struct * @return NULL (not used) */ static gpointer controller_play_radio_by_url_thread (gpointer data) { PlayRadioByUrlData *d = data; d->error_code = lastfm_ws_radio_tune (d->session, d->url, get_language_code ()); gdk_threads_add_idle (controller_play_radio_by_url_idle, d); return NULL; } /** * Start playing a radio by its URL, stopping the current track if * necessary * * This is the success callback of controller_play_radio_by_url(). * * @param url The URL of the radio to be played */ static void controller_play_radio_by_url_cb (char *url) { if (!VGL_IS_MAIN_WINDOW (mainwin) || session == NULL) { g_critical ("Main window destroyed or session not found"); g_free (url); } else if (url == NULL) { g_critical ("Attempted to play a NULL radio URL"); controller_stop_playing (); } else { PlayRadioByUrlData *data = g_slice_new (PlayRadioByUrlData); data->session = vgl_object_ref (session); data->url = url; g_thread_create (controller_play_radio_by_url_thread, data, FALSE, NULL); } } /** * Start playing a radio by its URL, stopping the current track if * necessary * This only calls check_session() the actual code is in * controller_play_radio_by_url_cb() * * @param url The URL of the radio to be played */ void controller_play_radio_by_url (const char *url) { check_session_cb cb; finish_playing_track(); vgl_main_window_set_state (mainwin, VGL_MAIN_WINDOW_STATE_CONNECTING, NULL, NULL); cb = (check_session_cb) controller_play_radio_by_url_cb; check_session(cb, (check_session_cb) g_free, g_strdup(url)); } /** * Start playing a radio by its type. In all cases it will be the * radio of the user running the application, not someone else's radio * * This is the success callback of controller_play_radio() * * @param userdata The radio type (passed as a gpointer) */ static void controller_play_radio_cb (gpointer userdata) { LastfmRadio type = GPOINTER_TO_INT (userdata); char *url = NULL; if (type == LASTFM_RECOMMENDED_RADIO) { url = lastfm_recommended_radio_url( usercfg->username, 100); } else if (type == LASTFM_USERTAG_RADIO) { static char *previous = NULL; char *tag; tag = ui_input_dialog_with_list( vgl_main_window_get_window(mainwin, TRUE), _("Enter tag"), _("Enter one of your tags"), usertags, previous); if (tag != NULL) { url = lastfm_usertag_radio_url(usercfg->username, tag); /* Store the new value for later use */ g_free(previous); previous = tag; } } else { url = lastfm_radio_url(type, usercfg->username); } if (url != NULL) { controller_play_radio_by_url(url); g_free(url); } } /** * Start playing a radio by its type. In all cases it will be the * radio of the user running the application, not someone else's radio * * This only calls check_session() the actual code is in * controller_play_radio_cb() * * @param type Radio type */ void controller_play_radio (LastfmRadio type) { check_session_cb cb; cb = (check_session_cb) controller_play_radio_cb; check_session(cb, NULL, GINT_TO_POINTER(type)); } /* controller_play_others_radio() is not needed in Maemo 5 */ #ifndef MAEMO5 /** * Start playing other user's radio by its type. It will pop up a * dialog to ask the user whose radio is going to be played * * This is a success callback of controller_play_radio() * * @param userdata The radio type (passed as a gpointer) */ static void controller_play_others_radio_cb (gpointer userdata) { LastfmRadio type = GPOINTER_TO_INT (userdata); static char *previous = NULL; char *url = NULL; char *user = ui_input_dialog_with_list(vgl_main_window_get_window(mainwin, TRUE), _("Enter user name"), _("Play this user's radio"), friends, previous); if (user != NULL) { if (type == LASTFM_RECOMMENDED_RADIO) { url = lastfm_recommended_radio_url (user, 100); } else { url = lastfm_radio_url (type, user); } controller_play_radio_by_url(url); g_free(url); /* Store the new value for later use */ g_free(previous); previous = user; } } /** * Start playing other user's tag radio. It will pop up a dialog to * ask the user and tag to select the radio to be played. * * This is a success callback of controller_play_radio() * * @param userdata Not used **/ static void controller_play_usertag_radio_cb (gpointer userdata) { static char *previoususer = NULL; static char *previoustag = NULL; char *user = g_strdup (previoususer); char *tag = g_strdup (previoustag); ui_usertag_dialog (vgl_main_window_get_window (mainwin, TRUE), &user, &tag, friends); if (user != NULL && tag != NULL) { char *url = lastfm_usertag_radio_url (user, tag); controller_play_radio_by_url (url); g_free (url); /* Store new values for later use */ g_free (previoususer); g_free (previoustag); previoususer = user; previoustag = tag; } else { g_free (user); g_free (tag); } } /** * Start playing other user's radio by its type. It will pop up a * dialog to ask the user whose radio is going to be played * * This only calls check_session() the actual code is in * controller_play_others_radio_cb() * * @param type Radio type */ void controller_play_others_radio (LastfmRadio type) { check_session_cb cb; if (type == LASTFM_USERTAG_RADIO) { cb = (check_session_cb) controller_play_usertag_radio_cb; } else { cb = (check_session_cb) controller_play_others_radio_cb; } check_session(cb, NULL, GINT_TO_POINTER(type)); } #else /* ifndef MAEMO5 */ /** * Start playing other user's radio by its type and user name. * * @param username User name * @param type Radio type */ void controller_play_others_radio_by_user (const char *username, LastfmRadio type) { char *url = NULL; g_return_if_fail (username != NULL && mainwin != NULL); if (type == LASTFM_USERTAG_RADIO) { static char *previous = NULL; char *tag = ui_input_dialog( vgl_main_window_get_window (mainwin, TRUE), _("Enter tag"), _("Enter a tag"), previous); if (tag != NULL) { url = lastfm_usertag_radio_url (username, tag); g_free (previous); previous = tag; } } else { if (type == LASTFM_RECOMMENDED_RADIO) { url = lastfm_recommended_radio_url (username, 100); } else { url = lastfm_radio_url (type, username); } } if (url != NULL) { controller_play_radio_by_url (url); g_free (url); } } #endif /* MAEMO5 */ /** * Open a dialog asking for a group and play its radio */ void controller_play_group_radio (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); static char *previous = NULL; char *url = NULL; char *group = ui_input_dialog( vgl_main_window_get_window(mainwin, TRUE), _("Enter group"), _("Enter group name"), previous); if (group != NULL) { url = lastfm_radio_url(LASTFM_GROUP_RADIO, group); controller_play_radio_by_url(url); g_free(url); /* Store the new value for later use */ g_free(previous); previous = group; } } /** * Open a dialog asking for a global tag and play its radio */ void controller_play_globaltag_radio (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); static char *previous = NULL; char *url = NULL; char *tag; tag = ui_input_dialog_with_list( vgl_main_window_get_window(mainwin, TRUE), _("Enter tag"), _("Enter a global tag"), usertags, previous); if (tag != NULL) { url = lastfm_radio_url(LASTFM_GLOBALTAG_RADIO, tag); controller_play_radio_by_url(url); g_free(url); /* Store the new value for later use */ g_free(previous); previous = tag; } } /** * Open a dialog asking for an artist and play its similar artists' * radio */ void controller_play_similarartist_radio (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); static char *previous = NULL; char *url = NULL; char *artist = ui_input_dialog( vgl_main_window_get_window(mainwin, TRUE), _("Enter artist"), _("Enter an artist's name"), nowplaying ? nowplaying->artist : previous); if (artist != NULL) { url = lastfm_radio_url(LASTFM_SIMILAR_ARTIST_RADIO, artist); controller_play_radio_by_url(url); g_free(url); /* Store the new value for later use */ g_free(previous); previous = artist; } } /** * Open a dialog asking for a radio URL and play it */ void controller_play_radio_ask_url (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); static char *previous = NULL; char *url = NULL; url = ui_input_dialog(vgl_main_window_get_window(mainwin, TRUE), _("Enter radio URL"), _("Enter the URL of the Last.fm radio"), previous ? previous : "lastfm://"); if (url != NULL) { if (!strncmp(url, "lastfm://", 9)) { controller_play_radio_by_url(url); /* Store the new value for later use */ g_free(previous); previous = url; } else { controller_show_info(_("Last.fm radio URLs must start " "with lastfm://")); g_free(url); } } } /** * Increase (or decrease) the audio volume * @param inc Level of increase * @return The new level */ int controller_increase_volume (int inc) { int newvol; if (inc != 0) { newvol = lastfm_audio_increase_volume(inc); } else { newvol = lastfm_audio_get_volume(); } return newvol; } /** * Set the audio volume level * @param vol New volume level */ void controller_set_volume (int vol) { lastfm_audio_set_volume (vol); } /** * Close the application */ void controller_quit_app (void) { g_return_if_fail(VGL_IS_MAIN_WINDOW(mainwin)); shutting_down = TRUE; controller_stop_playing(); vgl_main_window_destroy(mainwin); } /** * Start running the application, initializing all of its * subcomponents and finally letting the main window take control. * * @param win The program's main window. * @param radio_url If not NULL, this radio will be played * automatically from the start. Tipically set in the * command line */ void controller_run_app (const char *radio_url) { g_return_if_fail (mainwin == NULL); const char *errmsg = NULL; #ifdef MAEMO osso_context_t *osso_context = NULL; #endif vgl_controller = g_object_new (VGL_TYPE_CONTROLLER, NULL); g_object_add_weak_pointer (G_OBJECT (vgl_controller), (gpointer) &vgl_controller); #ifdef HAVE_DBUS_SUPPORT switch (lastfm_dbus_init (vgl_controller)) { case DBUS_INIT_ERROR: errmsg = _("Unable to initialize DBUS"); break; case DBUS_INIT_ALREADY_RUNNING: if (radio_url) { g_debug ("Playing radio URL %s in running instance", radio_url); lastfm_dbus_play_radio_url (radio_url); } return; default: break; } #endif #ifdef SET_IM_STATUS im_status_init (vgl_controller); #endif mainwin = VGL_MAIN_WINDOW (vgl_main_window_new (vgl_controller)); g_object_add_weak_pointer (G_OBJECT (mainwin), (gpointer) &mainwin); vgl_main_window_show(mainwin, TRUE); vgl_main_window_set_state (mainwin, VGL_MAIN_WINDOW_STATE_DISCONNECTED, NULL, NULL); #ifdef HAVE_TRAY_ICON /* Init Freedesktop tray icon */ vgl_tray_icon_create (vgl_controller); #endif http_init(); playlist = lastfm_pls_new(); rsp_init (vgl_controller); if (!errmsg && !vgl_server_list_init()) { errmsg = _("Error reading the server list file"); } if (!errmsg) { check_usercfg(FALSE); } if (!errmsg && !lastfm_audio_init()) { controller_show_error(_("Error initializing audio system")); return; } #ifdef MAEMO /* Initialize osso context */ if (!errmsg) { osso_context = osso_initialize (APP_NAME_LC, APP_VERSION, FALSE, NULL); if (!osso_context) { errmsg = _("Unable to initialize OSSO context"); } } #endif if (!errmsg) { errmsg = connection_init(); } if (errmsg) { controller_show_error(errmsg); return; } if (radio_url) { controller_play_radio_by_url(radio_url); } #ifdef HAVE_DBUS_SUPPORT lastfm_dbus_notify_started(); #endif vgl_main_window_run_app(); /* --- From here onwards the app shuts down --- */ if (session) { vgl_object_unref (session); session = NULL; } lastfm_pls_destroy(playlist); playlist = NULL; if (usercfg != NULL) { set_user_tag_list(usercfg->username, NULL); set_friend_list(usercfg->username, NULL); vgl_user_cfg_destroy(usercfg); usercfg = NULL; } lastfm_audio_clear(); vgl_server_list_finalize (); vgl_bookmark_mgr_save_to_disk (vgl_bookmark_mgr_get_instance (), FALSE); g_object_unref (vgl_controller); #ifdef MAEMO /* Cleanup OSSO context */ osso_deinitialize(osso_context); #endif } /** * Close the application (either to systray or shut it down) */ void controller_close_mainwin (void) { #ifdef HAVE_TRAY_ICON if (usercfg->close_to_systray) controller_show_mainwin(FALSE); else #endif controller_quit_app(); } static void vgl_controller_class_init (VglControllerClass *klass) { signals[CONNECTED] = g_signal_new ("connected", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); signals[DISCONNECTED] = g_signal_new ("disconnected", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[TRACK_STARTED] = g_signal_new ("track-started", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); signals[TRACK_STOPPED] = g_signal_new ("track-stopped", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); signals[PLAYER_STOPPED] = g_signal_new ("player-stopped", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[USERCFG_CHANGED] = g_signal_new ("usercfg-changed", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); signals[PLAYBACK_PROGRESS] = g_signal_new ("playback-progress", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, vgl_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); } static void vgl_controller_init (VglController *self) { } vagalume-0.8.6/src/dlwin.c0000644000000000000000000001376012233552617012302 00000000000000/* * dlwin.c -- Download window * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include #include "globaldefs.h" #include "dlwin.h" #include "http.h" #include "vgl-object.h" #include "compat.h" #include #include #include #include typedef struct { VglObject parent; GtkWidget *window; GtkWidget *button; GtkProgressBar *progressbar; char *url; char *dstpath; double dlnow; double dltotal; gboolean win_needs_update; gboolean success; guint timeout_id; dlwin_cb callback; gpointer cbdata; } dlwin; static gboolean update_window (gpointer data) { dlwin *w = data; if (w->window && w->win_needs_update) { const int bufsize = 30; char text[bufsize]; guint now = w->dlnow / 1024; guint total = w->dltotal / 1024; double fraction = w->dlnow / w->dltotal; fraction = CLAMP (fraction, 0, 1); snprintf(text, bufsize, "%u / %u KB", now, total); gtk_progress_bar_set_text(w->progressbar, text); gtk_progress_bar_set_fraction(w->progressbar, fraction); w->win_needs_update = FALSE; } return TRUE; } static gboolean dlwin_progress_cb (gpointer data, double dltotal, double dlnow) { dlwin *w = data; gdk_threads_enter (); w->dlnow = dlnow; w->dltotal = dltotal; w->win_needs_update = TRUE; gdk_threads_leave (); return (w->window != NULL); } static void dlwin_destroy (gpointer data) { dlwin *w = data; g_free (w->url); g_free (w->dstpath); } static gboolean dlwin_download_file_idle (gpointer data) { dlwin *w = data; if (w->callback) { w->callback (w->success, w->cbdata); } /* Remove the timeout handler */ g_source_remove (w->timeout_id); if (w->window) { update_window (w); gtk_progress_bar_set_text (w->progressbar, w->success ? _("Download complete!") : _("Download error!")); gtk_button_set_label (GTK_BUTTON (w->button), _("C_lose")); } vgl_object_unref (w); return FALSE; } static gpointer dlwin_download_file_thread (gpointer data) { dlwin *w = (dlwin *) data; /* Remove the file if it exists and then download it */ g_unlink (w->dstpath); w->success = http_download_file (w->url, w->dstpath, dlwin_progress_cb, w); /* Remove if the download was unsuccessful */ if (!w->success) g_unlink (w->dstpath); gdk_threads_add_idle (dlwin_download_file_idle, w); return NULL; } void dlwin_download_file (const char *url, const char *filename, const char *dstpath, dlwin_cb cb, gpointer cbdata) { GtkWidget *label; const int textsize = 100; char text[textsize]; GtkBox *box; dlwin *w; g_return_if_fail (url && filename && dstpath); w = vgl_object_new (dlwin, dlwin_destroy); w->url = g_strdup(url); w->dstpath = g_strdup(dstpath); w->dlnow = 0.0; w->dltotal = 0.0; w->success = FALSE; w->win_needs_update = FALSE; w->callback = cb; w->cbdata = cbdata; /* Widget creation */ w->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width(GTK_CONTAINER(w->window), 10); gtk_window_set_icon_from_file(GTK_WINDOW(w->window), APP_ICON, NULL); snprintf(text, textsize, _("Downloading %s"), filename); text[textsize - 1] = '\0'; gtk_window_set_title(GTK_WINDOW(w->window), text); snprintf(text, textsize, _("Downloading file\n%s"), filename); text[textsize - 1] = '\0'; label = gtk_label_new(text); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER); w->progressbar = GTK_PROGRESS_BAR(gtk_progress_bar_new()); w->button = gtk_button_new_with_mnemonic(_("_Cancel")); box = GTK_BOX(gtk_vbox_new(TRUE, 5)); /* Widget packing */ gtk_container_add(GTK_CONTAINER(w->window), GTK_WIDGET(box)); gtk_box_pack_start(box, label, FALSE, FALSE, 0); gtk_box_pack_start(box, GTK_WIDGET(w->progressbar), FALSE, FALSE, 0); gtk_box_pack_start(box, w->button, FALSE, FALSE, 0); #ifdef MAEMO /* Small hack to make this window a bit less ugly */ gtk_widget_set_size_request (w->button, 300, 80); #endif g_object_add_weak_pointer (G_OBJECT (w->window), (gpointer) &(w->window)); g_signal_connect_swapped (G_OBJECT (w->button), "clicked", G_CALLBACK (gtk_widget_destroy), w->window); g_signal_connect_swapped (G_OBJECT (w->window), "destroy", G_CALLBACK (vgl_object_unref), w); w->timeout_id = gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT_IDLE, 200, update_window, vgl_object_ref (w), vgl_object_unref); gtk_widget_show_all(w->window); g_thread_create (dlwin_download_file_thread, vgl_object_ref (w), FALSE, NULL); } vagalume-0.8.6/src/audio.c0000644000000000000000000002621612233552617012266 00000000000000/* * audio.c -- All the audio related stuff * * Copyright (C) 2007-2010, 2013 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include "config.h" #include #include #include #include #include "audio.h" #include "controller.h" #include "http.h" #include "util.h" #include "compat.h" #ifdef HAVE_DSPMP3SINK static const char *default_decoders[] = { NULL }; static const char *default_sinks[] = { "dspmp3sink", NULL }; #else static const char *default_decoders[] = { "decodebin", NULL }; static const char *default_sinks[] = { "autoaudiosink", NULL }; #endif static GstElement *pipeline = NULL; static GstElement *source = NULL; static GstElement *decoder = NULL; static GstElement *sink = NULL; static volatile gboolean http_req_success = FALSE; static int http_pipe[2] = { -1, -1 }; static GThread *http_thread = NULL; static gboolean audio_started = FALSE; static GCallback audio_started_callback = NULL; static void close_previous_playback (void) { if (http_pipe[0] != -1) close(http_pipe[0]); if (http_pipe[1] != -1) close(http_pipe[1]); http_pipe[0] = http_pipe[1] = -1; } typedef struct { char *url; char *session_id; } get_audio_thread_data; static gpointer get_audio_thread (gpointer userdata) { g_return_val_if_fail(userdata != NULL && http_pipe[1] > 0, NULL); get_audio_thread_data *data = (get_audio_thread_data *) userdata; GSList *headers = NULL; char *cookie = NULL; http_req_success = FALSE; if (data->session_id != NULL) { cookie = g_strconcat("Cookie: Session=", data->session_id, NULL); headers = g_slist_append(headers, cookie); } http_req_success = http_get_to_fd (data->url, http_pipe[1], headers); if (!audio_started) http_req_success = FALSE; g_free(data->url); g_free(data->session_id); g_free(cookie); g_slice_free(get_audio_thread_data, data); g_slist_free(headers); return NULL; } static gboolean audio_started_cb_handler (gpointer data) { GCallback callback = data; (*callback) (); return FALSE; } static gboolean gst_eos_handler (gpointer data) { static int failed_tracks = 0; if (http_req_success) { failed_tracks = 0; controller_skip_track (); } else if (++failed_tracks == 3) { failed_tracks = 0; controller_stop_playing (); controller_show_warning ("Connection error"); } else { controller_skip_track (); } return FALSE; } static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data) { switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_ERROR: { gchar *debug; GError *err; gst_message_parse_error (msg, &err, &debug); g_free (debug); g_warning ("Error: %s", err->message); g_error_free (err); } /* No, I haven't forgotten the break here */ case GST_MESSAGE_EOS: gdk_threads_add_idle (gst_eos_handler, NULL); break; case GST_MESSAGE_STATE_CHANGED: if (audio_started_callback != NULL) { GstState st; gst_message_parse_state_changed(msg, NULL, &st, NULL); if (st == GST_STATE_PLAYING) { gdk_threads_add_idle (audio_started_cb_handler, audio_started_callback); audio_started_callback = NULL; audio_started = TRUE; } } break; case GST_MESSAGE_TAG: case GST_MESSAGE_CLOCK_PROVIDE: case GST_MESSAGE_NEW_CLOCK: case GST_MESSAGE_STREAM_STATUS: #if GST_VERSION_MICRO >= 13 case GST_MESSAGE_ASYNC_DONE: #endif break; default: g_debug ("GStreamer message received: %d", GST_MESSAGE_TYPE(msg)); break; } return TRUE; } static GstElement * audio_element_create (const char **elem_names, const char *envvar) { g_return_val_if_fail(elem_names != NULL, NULL); GstElement *retval = NULL; const char *user_elem_name = NULL; if (envvar != NULL) user_elem_name = g_getenv(envvar); if (user_elem_name != NULL && !strcmp(user_elem_name, "none")) { return NULL; } /* Try to create the element given in the environment variable */ if (user_elem_name != NULL && *user_elem_name != '\0') { retval = gst_element_factory_make(user_elem_name, NULL); g_debug("Creating GStreamer element %s: %s", user_elem_name, retval ? "success" : "ERROR"); } else { /* Else try each element in the list */ int i; for (i = 0; !retval && elem_names[i]; i++) { retval = gst_element_factory_make(elem_names[i], NULL); g_debug("Creating GStreamer element %s: %s", elem_names[i], retval ? "success" : "ERROR"); } } return retval; } #ifndef HAVE_DSPMP3SINK static GstElement * audio_decoder_create (void) { return audio_element_create(default_decoders, GST_DECODER_ENVVAR); } static void pad_added_cb (GstElement *decoder, GstPad *pad, GstElement *sink) { GstPad *sinkpad = gst_element_get_static_pad (sink, "sink"); if (!GST_PAD_IS_LINKED (sinkpad)) { gst_pad_link (pad, sinkpad); } g_object_unref (sinkpad); } #endif const char * lastfm_audio_default_decoder_name (void) { return default_decoders[0] ? default_decoders[0] : "none"; } const char * lastfm_audio_default_sink_name (void) { return default_sinks[0] ? default_sinks[0] : "none"; } static GstElement * audio_sink_create (void) { return audio_element_create(default_sinks, GST_SINK_ENVVAR); } gboolean lastfm_audio_init (void) { GstBus *bus; /* initialize GStreamer */ gst_init (NULL, NULL); /* set up */ pipeline = gst_pipeline_new (NULL); source = gst_element_factory_make ("fdsrc", NULL); #ifdef HAVE_DSPMP3SINK decoder = source; /* Unused, this is only for the assertions */ #else decoder = audio_decoder_create(); #endif sink = audio_sink_create(); if (!pipeline || !source || !decoder || !sink) { g_critical ("Error creating GStreamer elements"); return FALSE; } bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); gst_bus_add_watch (bus, bus_call, NULL); gst_object_unref (bus); #ifdef HAVE_DSPMP3SINK gst_bin_add_many (GST_BIN (pipeline), source, sink, NULL); gst_element_link_many (source, sink, NULL); lastfm_audio_set_volume(80); #else gst_bin_add_many (GST_BIN (pipeline), source, decoder, sink, NULL); gst_element_link (source, decoder); g_signal_connect (decoder, "pad-added", G_CALLBACK (pad_added_cb), sink); #endif return TRUE; } gboolean lastfm_audio_play (const char *url, GCallback audio_started_cb, const char *session_id) { g_return_val_if_fail(pipeline && source && url, FALSE); get_audio_thread_data *data = NULL; close_previous_playback(); if (http_thread != NULL) g_thread_join(http_thread); http_thread = NULL; audio_started = FALSE; audio_started_callback = audio_started_cb; pipe(http_pipe); data = g_slice_new(get_audio_thread_data); data->session_id = g_strdup(session_id); data->url = g_strdup (url); http_thread = g_thread_create(get_audio_thread, data, TRUE, NULL); g_object_set(G_OBJECT(source), "fd", http_pipe[0], NULL); gst_element_set_state(pipeline, GST_STATE_PLAYING); #ifdef HAVE_DSPMP3SINK /* It seems that dspmp3sink ignores the previous volume level * when playing a new song. Workaround: change it and then * restore the original value */ int volume = lastfm_audio_get_volume(); lastfm_audio_set_volume(volume == 0 ? 1 : 0); lastfm_audio_set_volume(volume); #endif return TRUE; } gboolean lastfm_audio_stop (void) { g_return_val_if_fail(pipeline != NULL, FALSE); gst_element_set_state(pipeline, GST_STATE_NULL); close_previous_playback(); return TRUE; } void lastfm_audio_clear (void) { g_return_if_fail(pipeline != NULL); gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (GST_OBJECT (pipeline)); pipeline = NULL; close_previous_playback(); if (http_thread != NULL) g_thread_join(http_thread); } int lastfm_audio_get_running_time (void) { g_return_val_if_fail(pipeline != NULL, 0); gint64 t; GstFormat format = GST_FORMAT_TIME; #if GST_CHECK_VERSION(1,0,0) if (gst_element_query_position(pipeline, format, &t)) { #else if (gst_element_query_position(pipeline, &format, &t)) { #endif /* Round to nearest integer */ t = (t + 500000000) / 1000000000; return t; } else { return -1; } } int lastfm_audio_get_volume (void) { int vol = 0; #ifdef HAVE_DSPMP3SINK g_return_val_if_fail(sink != NULL, 0); g_return_val_if_fail(g_object_class_find_property( G_OBJECT_GET_CLASS(sink), "volume"), 0); g_object_get(G_OBJECT(sink), "volume", &vol, NULL); vol = ((double)vol) / 655.35 + 0.5; /* Round the number */ #endif vol = CLAMP (vol, 0, 100); return vol; } void lastfm_audio_set_volume (int vol) { #ifdef HAVE_DSPMP3SINK g_return_if_fail(sink != NULL); g_return_if_fail(g_object_class_find_property( G_OBJECT_GET_CLASS(sink),"volume")); vol *= 655.35; vol = CLAMP (vol, 0, 65535); g_object_set(G_OBJECT(sink), "volume", vol, NULL); #endif } int lastfm_audio_increase_volume (int inc) { lastfm_audio_set_volume(lastfm_audio_get_volume() + inc); return lastfm_audio_get_volume(); } vagalume-0.8.6/src/vgl-main-window.c0000644000000000000000000010011212233552617014170 00000000000000/* * vgl-main-window.c -- Main program window * * Copyright (C) 2007-2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include #include "controller.h" #include "vgl-main-menu.h" #include "vgl-main-window.h" #include "radio.h" #include "uimisc.h" #include "util.h" #include "compat.h" #if defined(SCR_RESOLUTION_800X480) # define COVER_FRAME_HEIGHT 215 # define COVER_FRAME_WIDTH 230 # define BIGBUTTON_IMG_SIZE 64 # define SMALLBUTTON_IMG_SIZE 50 #elif defined(SCR_RESOLUTION_1024X600) # define COVER_FRAME_HEIGHT 233 # define COVER_FRAME_WIDTH 250 # define BIGBUTTON_IMG_SIZE 98 # define SMALLBUTTON_IMG_SIZE 82 #else # define COVER_FRAME_HEIGHT 121 # define COVER_FRAME_WIDTH 130 # define BIGBUTTON_IMG_SIZE 48 # define SMALLBUTTON_IMG_SIZE 24 #endif #define ALBUM_COVER_PADDING 2 #define ALBUM_COVER_SIZE (COVER_FRAME_HEIGHT - 2 * ALBUM_COVER_PADDING) #define BIGBUTTON_SIZE ((COVER_FRAME_WIDTH - 5) / 2) #ifdef USE_HILDON_WINDOW # define PARENT_CLASS_TYPE HILDON_TYPE_WINDOW #else # define PARENT_CLASS_TYPE GTK_TYPE_WINDOW #endif #define VGL_MAIN_WINDOW_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), VGL_TYPE_MAIN_WINDOW, \ VglMainWindowPrivate)) G_DEFINE_TYPE (VglMainWindow, vgl_main_window, PARENT_CLASS_TYPE); struct _VglMainWindowPrivate { GtkWidget *playbutton, *stopbutton, *skipbutton; GtkWidget *lovebutton, *banbutton, *recommendbutton; GtkWidget *dloadbutton, *tagbutton, *addplbutton; GtkWidget *playlist, *artist, *track, *album; GtkWidget *album_cover; VglMainMenu *menu; GtkProgressBar *progressbar; GString *progressbar_text; gboolean is_fullscreen; gboolean is_hidden; gboolean showing_msg; guint lastmsg_id; int x_pos, y_pos; }; typedef struct { const char *icon_name; const int icon_size; const int button_width; const int button_height; const char *tooltip; } button_data; static const button_data play_button = { "media-playback-start", BIGBUTTON_IMG_SIZE, BIGBUTTON_SIZE, -1, N_("Start playing") }; static const button_data stop_button = { "media-playback-stop", BIGBUTTON_IMG_SIZE, BIGBUTTON_SIZE, -1, N_("Stop playing") }; static const button_data skip_button = { "media-skip-forward", BIGBUTTON_IMG_SIZE, BIGBUTTON_SIZE, -1, N_("Skip this track") }; static const button_data love_button = { "emblem-favorite", SMALLBUTTON_IMG_SIZE, -1, -1, N_("Mark as loved") }; static const button_data ban_button = { "process-stop", SMALLBUTTON_IMG_SIZE, -1, -1, N_("Ban this track") }; static const button_data recommend_button = { "mail-message-new", SMALLBUTTON_IMG_SIZE, -1, -1, N_("Recommend this track") }; static const button_data dload_button = { "document-save", SMALLBUTTON_IMG_SIZE, -1, -1, N_("Download this track") }; static const button_data tag_button = { "accessories-text-editor", SMALLBUTTON_IMG_SIZE, -1, -1, N_("Edit tags for this track") }; static const button_data addpl_button = { "list-add", SMALLBUTTON_IMG_SIZE, -1, -1, N_("Add this track to playlist") }; static const char cover_bg[] = APP_DATA_DIR "/cover.png"; void vgl_main_window_run_app (void) { gtk_main(); } void vgl_main_window_destroy (VglMainWindow *w) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); while (gtk_events_pending()) gtk_main_iteration(); gtk_widget_destroy(GTK_WIDGET(w)); } GtkWindow * vgl_main_window_get_window (VglMainWindow *w, gboolean get_if_hidden) { g_return_val_if_fail(VGL_IS_MAIN_WINDOW(w), NULL); if (!(w->priv->is_hidden) || get_if_hidden) { return GTK_WINDOW(w); } else { return NULL; } } void vgl_main_window_show (VglMainWindow *w, gboolean show) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); GtkWindow *win = GTK_WINDOW(w); VglMainWindowPrivate *priv = w->priv; if (show) { /* Move window to its right place (not needed in Maemo) */ gtk_window_move (win, priv->x_pos, priv->y_pos); gtk_window_present (win); } else { /* Save position before hiding window (not needed in Maemo) */ gtk_window_get_position(win, &(priv->x_pos), &(priv->y_pos)); gtk_widget_hide (GTK_WIDGET(w)); } } void vgl_main_window_toggle_visibility (VglMainWindow *w) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); vgl_main_window_show (w, !gtk_window_is_active (GTK_WINDOW (w))); } gboolean vgl_main_window_is_hidden (VglMainWindow *w) { g_return_val_if_fail(VGL_IS_MAIN_WINDOW(w), TRUE); return w->priv->is_hidden; } void vgl_main_window_set_album_cover (VglMainWindow *w, const char *data, int size) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); GdkPixbuf *pixbuf = get_pixbuf_from_image(data, size, ALBUM_COVER_SIZE); gtk_image_set_from_pixbuf (GTK_IMAGE (w->priv->album_cover), pixbuf); if (pixbuf != NULL) g_object_unref(pixbuf); } static void vgl_main_window_update_track_info (VglMainWindow *w, const LastfmTrack *t) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w) && t != NULL); VglMainWindowPrivate *priv = w->priv; GString *text = g_string_sized_new(50); char *markup; markup = g_markup_escape_text(t->artist, -1); g_string_assign(text, _("Artist:\n")); g_string_append(text, markup); gtk_label_set_markup(GTK_LABEL(priv->artist), text->str); g_free(markup); markup = g_markup_escape_text(t->title, -1); g_string_assign(text, _("Title:\n")); g_string_append(text, markup); gtk_label_set_markup(GTK_LABEL(priv->track), text->str); g_free(markup); if (t->album[0] != '\0') { markup = g_markup_escape_text(t->album, -1); g_string_assign(text, _("Album:\n")); g_string_append(text, markup); gtk_label_set_markup(GTK_LABEL(priv->album), text->str); g_free(markup); } else { gtk_label_set_text(GTK_LABEL(priv->album), ""); } markup = g_markup_escape_text(t->pls_title, -1); g_string_assign(text, _("Listening to ")); g_string_append(text, markup); g_string_append(text, ""); gtk_label_set_markup(GTK_LABEL(priv->playlist), text->str); g_free(markup); g_string_assign(text, t->artist); g_string_append(text, " - "); g_string_append(text, t->title); gtk_window_set_title(GTK_WINDOW(w), text->str); g_string_free(text, TRUE); gtk_widget_set_tooltip_text (priv->artist, t->artist); gtk_widget_set_tooltip_text (priv->track, t->title); gtk_widget_set_tooltip_text (priv->album, t->album); } static void set_progress_bar_text (VglMainWindow *w, const char *text) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); if (w->priv->showing_msg) { /* If showing a status message, save text for later */ g_string_assign (w->priv->progressbar_text, text); } else { gtk_progress_bar_set_text (w->priv->progressbar, text); } } static void vgl_main_window_controller_progress_cb (VglController *controller, guint played, guint length, VglMainWindow *w) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); const int bufsize = 16; char count[bufsize]; gdouble fraction = 0; if (length != 0) { if (played > length) played = length; fraction = (gdouble)played / length; snprintf(count, bufsize, "%u:%02u / %u:%02u", played/60, played%60, length/60, length%60); } else { snprintf(count, bufsize, "%u:%02u / ??:??", played/60, played%60); } gtk_progress_bar_set_fraction (w->priv->progressbar, fraction); set_progress_bar_text(w, count); } typedef struct { VglMainWindow *win; guint msgid; } remove_status_msg_data; static gboolean remove_status_msg (gpointer data) { g_return_val_if_fail(data != NULL, FALSE); remove_status_msg_data *d = (remove_status_msg_data *) data; VglMainWindowPrivate *priv = d->win->priv; if (priv->lastmsg_id == d->msgid) { priv->showing_msg = FALSE; /* Restore saved text */ gtk_progress_bar_set_text(priv->progressbar, priv->progressbar_text->str); } g_slice_free(remove_status_msg_data, d); return FALSE; } void vgl_main_window_show_status_msg (VglMainWindow *w, const char *text) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w) && text != NULL); remove_status_msg_data *d; VglMainWindowPrivate *priv = w->priv; priv->lastmsg_id++; if (!(priv->showing_msg)) { const char *old; priv->showing_msg = TRUE; /* Save current text for later */ old = gtk_progress_bar_get_text(priv->progressbar); g_string_assign(priv->progressbar_text, old ? old : " "); } gtk_progress_bar_set_text(priv->progressbar, text); d = g_slice_new(remove_status_msg_data); d->win = w; d->msgid = priv->lastmsg_id; gdk_threads_add_timeout (1500, remove_status_msg, d); } void vgl_main_window_set_track_as_loved (VglMainWindow *w) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); gtk_widget_set_sensitive (w->priv->lovebutton, FALSE); vgl_main_menu_set_track_as_loved (w->priv->menu); } void vgl_main_window_set_track_as_added_to_playlist (VglMainWindow *w, gboolean added) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); gtk_widget_set_sensitive (w->priv->addplbutton, !added); vgl_main_menu_set_track_as_added_to_playlist (w->priv->menu, added); } void vgl_main_window_set_state (VglMainWindow *w, VglMainWindowState state, const LastfmTrack *t, const char *radio_url) { g_return_if_fail(VGL_IS_MAIN_WINDOW(w)); VglMainWindowPrivate *priv = w->priv; gboolean dim_labels = FALSE; vgl_main_menu_set_state (priv->menu, state, t, radio_url); switch (state) { case VGL_MAIN_WINDOW_STATE_DISCONNECTED: case VGL_MAIN_WINDOW_STATE_STOPPED: dim_labels = FALSE; set_progress_bar_text(w, _("Stopped")); gtk_label_set_text(GTK_LABEL(priv->playlist), _("Stopped")); gtk_label_set_text(GTK_LABEL(priv->artist), NULL); gtk_label_set_text(GTK_LABEL(priv->track), NULL); gtk_label_set_text(GTK_LABEL(priv->album), NULL); gtk_widget_show (priv->playbutton); gtk_widget_hide (priv->stopbutton); gtk_widget_set_sensitive (priv->playbutton, TRUE); gtk_widget_set_sensitive (priv->skipbutton, FALSE); gtk_widget_set_sensitive (priv->lovebutton, FALSE); gtk_widget_set_sensitive (priv->banbutton, FALSE); gtk_widget_set_sensitive (priv->recommendbutton, FALSE); gtk_widget_set_sensitive (priv->dloadbutton, FALSE); gtk_widget_set_sensitive (priv->tagbutton, FALSE); gtk_widget_set_sensitive (priv->addplbutton, FALSE); gtk_window_set_title(GTK_WINDOW(w), APP_NAME); vgl_main_window_set_album_cover(w, NULL, 0); break; case VGL_MAIN_WINDOW_STATE_PLAYING: if (t == NULL) { g_warning("Set playing state with t == NULL"); break; } vgl_main_window_update_track_info(w, t); dim_labels = FALSE; set_progress_bar_text(w, _("Playing...")); gtk_widget_hide (priv->playbutton); gtk_widget_show (priv->stopbutton); gtk_widget_set_sensitive (priv->stopbutton, TRUE); gtk_widget_set_sensitive (priv->skipbutton, TRUE); gtk_widget_set_sensitive (priv->lovebutton, TRUE); gtk_widget_set_sensitive (priv->banbutton, TRUE); gtk_widget_set_sensitive (priv->recommendbutton, TRUE); gtk_widget_set_sensitive (priv->dloadbutton, t->free_track_url != NULL); gtk_widget_set_sensitive (priv->tagbutton, TRUE); gtk_widget_set_sensitive (priv->addplbutton, TRUE); break; case VGL_MAIN_WINDOW_STATE_CONNECTING: dim_labels = TRUE; set_progress_bar_text(w, _("Connecting...")); gtk_label_set_text(GTK_LABEL(priv->playlist), _("Connecting...")); gtk_widget_hide (priv->playbutton); gtk_widget_show (priv->stopbutton); gtk_widget_set_sensitive (priv->stopbutton, FALSE); gtk_widget_set_sensitive (priv->skipbutton, FALSE); gtk_widget_set_sensitive (priv->lovebutton, FALSE); gtk_widget_set_sensitive (priv->recommendbutton, FALSE); gtk_widget_set_sensitive (priv->banbutton, FALSE); gtk_widget_set_sensitive (priv->dloadbutton, FALSE); gtk_widget_set_sensitive (priv->tagbutton, FALSE); gtk_widget_set_sensitive (priv->addplbutton, FALSE); gtk_window_set_title(GTK_WINDOW(w), APP_NAME); vgl_main_window_set_album_cover (w, NULL, 0); break; default: g_critical("Unknown ui state received: %d", state); break; } if (state == VGL_MAIN_WINDOW_STATE_DISCONNECTED) { gtk_label_set_text(GTK_LABEL(priv->playlist), _("Disconnected")); } gtk_widget_set_sensitive (priv->artist, !dim_labels); gtk_widget_set_sensitive (priv->track, !dim_labels); gtk_widget_set_sensitive (priv->album, !dim_labels); gtk_progress_bar_set_fraction(priv->progressbar, 0); } static gboolean window_state_cb (GtkWidget *widget, GdkEventWindowState *event, VglMainWindow *win) { GdkWindowState st = event->new_window_state; VglMainWindowPrivate *priv = win->priv; /* Save the old position if the window has been minimized */ if (st == GDK_WINDOW_STATE_ICONIFIED && event->changed_mask == st) { gtk_window_get_position( GTK_WINDOW(win), &(priv->x_pos), &(priv->y_pos)); } priv->is_fullscreen = (st & GDK_WINDOW_STATE_FULLSCREEN); priv->is_hidden = st & (GDK_WINDOW_STATE_ICONIFIED|GDK_WINDOW_STATE_WITHDRAWN); if (!priv->is_hidden) { controller_show_cover(); } return FALSE; } #ifdef MAEMO static void is_topmost_cb (GObject *obj, GParamSpec *arg, VglMainWindow *win) { g_return_if_fail(VGL_IS_MAIN_WINDOW(win)); HildonWindow *hildonwin = HILDON_WINDOW(win); win->priv->is_hidden = !hildon_window_get_is_topmost(hildonwin); if (!(win->priv->is_hidden)) { controller_show_cover(); } } #endif /* MAEMO */ #ifdef ENABLE_VOLUME_KEY_HANDLER static gboolean key_press_cb (GtkWidget *widget, GdkEventKey *event, VglMainWindow *win) { int volchange = 0; switch (event->keyval) { #ifdef MAEMO case GDK_KEY_F6: if (win->priv->is_fullscreen) { gtk_window_unfullscreen(GTK_WINDOW(win)); } else { gtk_window_fullscreen(GTK_WINDOW(win)); } break; case GDK_KEY_F7: #else case GDK_KEY_KP_Add: case GDK_KEY_plus: #endif volchange = 5; break; #ifdef MAEMO case GDK_KEY_F8: #else case GDK_KEY_KP_Subtract: case GDK_KEY_minus: #endif volchange = -5; break; } if (volchange != 0) { int newvol = controller_increase_volume(volchange); char *text = g_strdup_printf(_("Volume: %d/100"), newvol); controller_show_banner(text); g_free(text); } return FALSE; } #endif /* ENABLE_VOLUME_KEY_HANDLER */ static gboolean delete_event (GtkWidget *widget, GdkEvent *event, gpointer data) { controller_close_mainwin(); return TRUE; } static void love_track_selected (GtkWidget *widget, gpointer data) { controller_love_track(TRUE); } static void ban_track_selected (GtkWidget *widget, gpointer data) { controller_ban_track(TRUE); } static void download_track_selected (GtkWidget *widget, gpointer data) { controller_download_track (FALSE); } static void apply_icon_theme (GtkIconTheme *icon_theme, GtkButton *button) { g_return_if_fail(button != NULL); const button_data *data; GdkPixbuf *pixbuf = NULL; GtkWidget *image; data = (const button_data *) g_object_get_data (G_OBJECT (button), "button_data"); g_return_if_fail(data && data->icon_name && data->icon_size > 0); pixbuf = gtk_icon_theme_load_icon(icon_theme, data->icon_name, data->icon_size, 0, NULL); if (pixbuf != NULL) { image = gtk_image_new_from_pixbuf(pixbuf); gtk_button_set_image (button, image); g_object_unref (pixbuf); } } static GtkWidget * image_button_new (const button_data *data) { g_return_val_if_fail(data->icon_name && data->icon_size > 0, NULL); GtkWidget *button = compat_gtk_button_new(); GtkIconTheme *icon_theme = gtk_icon_theme_get_default(); g_object_set_data(G_OBJECT(button), "button_data", (gpointer)data); apply_icon_theme (icon_theme, GTK_BUTTON (button)); g_signal_connect(G_OBJECT(icon_theme), "changed", G_CALLBACK(apply_icon_theme), button); gtk_widget_set_size_request(button, data->button_width, data->button_height); if (data->tooltip != NULL) { gtk_widget_set_tooltip_text (button, _(data->tooltip)); } return button; } #ifdef MAEMO5 static void vgl_main_window_set_hildon22_accels (VglMainWindow *win, GtkAccelGroup *accel) { VglMainWindowPrivate *p = win->priv; gtk_widget_add_accelerator (p->playbutton, "activate", accel, GDK_KEY_space, 0, 0); gtk_widget_add_accelerator (p->stopbutton, "activate", accel, GDK_KEY_space, 0, 0); gtk_widget_add_accelerator (p->skipbutton, "activate", accel, GDK_KEY_Right, GDK_CONTROL_MASK, 0); gtk_widget_add_accelerator (p->banbutton, "activate", accel, GDK_KEY_b, GDK_CONTROL_MASK, 0); gtk_widget_add_accelerator (p->lovebutton, "activate", accel, GDK_KEY_l, GDK_CONTROL_MASK, 0); gtk_widget_add_accelerator (p->recommendbutton, "activate", accel, GDK_KEY_r, GDK_CONTROL_MASK, 0); gtk_widget_add_accelerator (p->tagbutton, "activate", accel, GDK_KEY_t, GDK_CONTROL_MASK, 0); gtk_widget_add_accelerator (p->addplbutton, "activate", accel, GDK_KEY_a, GDK_CONTROL_MASK, 0); } #endif /* MAEMO5 */ static void vgl_main_window_init (VglMainWindow *self) { VglMainWindowPrivate *priv = VGL_MAIN_WINDOW_GET_PRIVATE(self); GtkWindow *win = GTK_WINDOW(self); GtkBox *mainvbox, *vbox, *centralbox; GtkBox *image_box_holder, *image_box_holder2, *labelbox; GtkBox *buttonshbox, *secondary_bbox, *secondary_bar_vbox; GtkWidget* image_box; GtkAccelGroup *accel = gtk_accel_group_new(); self->priv = priv; priv->progressbar_text = g_string_sized_new(30); g_string_assign(priv->progressbar_text, " "); /* Window */ #ifndef USE_HILDON_WINDOW gtk_window_set_default_size(win, 500, -1); #endif gtk_window_add_accel_group(win, accel); gtk_window_set_icon_from_file(win, APP_ICON, NULL); /* Boxes */ mainvbox = GTK_BOX(gtk_vbox_new(FALSE, 5)); vbox = GTK_BOX(gtk_vbox_new(FALSE, 5)); centralbox = GTK_BOX(gtk_hbox_new(FALSE, 5)); image_box_holder = GTK_BOX(gtk_hbox_new(FALSE, 0)); image_box_holder2 = GTK_BOX(gtk_vbox_new(FALSE, 5)); labelbox = GTK_BOX(gtk_vbox_new(TRUE, 5)); buttonshbox = GTK_BOX(gtk_hbox_new(FALSE, 5)); secondary_bbox = GTK_BOX(gtk_hbox_new(FALSE, 5)); secondary_bar_vbox = GTK_BOX(gtk_vbox_new(FALSE, 2)); #if defined(MAEMO5) gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); #else gtk_container_set_border_width (GTK_CONTAINER (vbox), 2); #endif /* Buttons */ priv->playbutton = image_button_new(&play_button); priv->stopbutton = image_button_new(&stop_button); priv->skipbutton = image_button_new(&skip_button); priv->lovebutton = image_button_new(&love_button); priv->banbutton = image_button_new(&ban_button); priv->recommendbutton = image_button_new(&recommend_button); priv->dloadbutton = image_button_new(&dload_button); priv->tagbutton = image_button_new(&tag_button); priv->addplbutton = image_button_new(&addpl_button); /* Text labels */ priv->playlist = gtk_label_new(NULL); priv->artist = gtk_label_new(NULL); priv->track = gtk_label_new(NULL); priv->album = gtk_label_new(NULL); gtk_label_set_ellipsize(GTK_LABEL(priv->playlist),PANGO_ELLIPSIZE_END); gtk_label_set_ellipsize(GTK_LABEL(priv->artist), PANGO_ELLIPSIZE_END); gtk_label_set_ellipsize(GTK_LABEL(priv->track), PANGO_ELLIPSIZE_END); gtk_label_set_ellipsize(GTK_LABEL(priv->album), PANGO_ELLIPSIZE_END); /* Cover image */ image_box = gtk_event_box_new(); { #ifdef GTK_TYPE_CSS_PROVIDER guint priority = GTK_STYLE_PROVIDER_PRIORITY_APPLICATION; GtkStyleContext *ctx = gtk_widget_get_style_context (image_box); GtkCssProvider *provider = gtk_css_provider_new (); char *css = g_strdup_printf ("* { background-image: url(\"%s\") }", cover_bg); gtk_css_provider_load_from_data (provider, css, -1, NULL); gtk_style_context_add_provider (ctx, GTK_STYLE_PROVIDER (provider), priority); g_object_unref (provider); g_free (css); #else GtkRcStyle *style = gtk_rc_style_new (); style->bg_pixmap_name[GTK_STATE_NORMAL] = g_strdup (cover_bg); style->bg_pixmap_name[GTK_STATE_ACTIVE] = g_strdup (cover_bg); style->bg_pixmap_name[GTK_STATE_PRELIGHT] = g_strdup (cover_bg); style->bg_pixmap_name[GTK_STATE_SELECTED] = g_strdup (cover_bg); style->bg_pixmap_name[GTK_STATE_INSENSITIVE] = g_strdup (cover_bg); gtk_widget_modify_style (image_box, style); g_object_unref (style); #endif /* GTK_TYPE_CSS_PROVIDER */ } gtk_widget_set_size_request(GTK_WIDGET(image_box), COVER_FRAME_WIDTH, COVER_FRAME_HEIGHT); priv->album_cover = gtk_image_new(); gtk_container_add(GTK_CONTAINER(image_box), priv->album_cover); gtk_misc_set_alignment (GTK_MISC (priv->album_cover), 1.0, 0.5); gtk_misc_set_padding (GTK_MISC (priv->album_cover), ALBUM_COVER_PADDING, ALBUM_COVER_PADDING); /* Menu */ priv->menu = vgl_main_menu_new (accel); /* Progress bar */ priv->progressbar = GTK_PROGRESS_BAR(gtk_progress_bar_new()); gtk_progress_set_text_alignment(GTK_PROGRESS(priv->progressbar), 0.5, 0.5); gtk_progress_bar_set_show_text (priv->progressbar, TRUE); #ifdef MAEMO5 gtk_widget_set_name ((GtkWidget *) priv->progressbar, "small-progress-bar"); #endif /* Layout */ gtk_misc_set_alignment(GTK_MISC(priv->playlist), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(priv->artist), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(priv->track), 0, 0.5); gtk_misc_set_alignment(GTK_MISC(priv->album), 0, 0.5); gtk_misc_set_padding(GTK_MISC(priv->playlist), 10, 0); gtk_misc_set_padding(GTK_MISC(priv->artist), 10, 0); gtk_misc_set_padding(GTK_MISC(priv->track), 10, 0); gtk_misc_set_padding(GTK_MISC(priv->album), 10, 0); gtk_box_pack_start(buttonshbox, priv->playbutton, FALSE, FALSE, 0); gtk_box_pack_start(buttonshbox, priv->stopbutton, FALSE, FALSE, 0); gtk_box_pack_start(buttonshbox, priv->skipbutton, FALSE, FALSE, 0); gtk_box_pack_start(secondary_bbox, priv->lovebutton, TRUE, TRUE, 0); gtk_box_pack_start(secondary_bbox, priv->recommendbutton, TRUE, TRUE, 0); gtk_box_pack_start(secondary_bbox, priv->tagbutton, TRUE, TRUE, 0); gtk_box_pack_start(secondary_bbox, priv->addplbutton, TRUE, TRUE, 0); gtk_box_pack_start(secondary_bbox, priv->dloadbutton, TRUE, TRUE, 0); gtk_box_pack_start(secondary_bbox, priv->banbutton, TRUE, TRUE, 0); gtk_box_pack_start(secondary_bar_vbox, GTK_WIDGET(secondary_bbox), TRUE, TRUE, 0); gtk_box_pack_start(secondary_bar_vbox, GTK_WIDGET(priv->progressbar), FALSE, FALSE, 0); gtk_box_pack_start(buttonshbox, GTK_WIDGET(secondary_bar_vbox), TRUE, TRUE, 0); gtk_box_pack_start(labelbox, priv->artist, TRUE, TRUE, 0); gtk_box_pack_start(labelbox, priv->track, TRUE, TRUE, 0); gtk_box_pack_start(labelbox, priv->album, TRUE, TRUE, 0); gtk_box_pack_start(image_box_holder, image_box, FALSE, FALSE, 0); gtk_box_pack_start(image_box_holder2, GTK_WIDGET(image_box_holder), TRUE, FALSE, 0); gtk_box_pack_start(centralbox, GTK_WIDGET(image_box_holder2), FALSE, FALSE, 0); gtk_box_pack_start(centralbox, GTK_WIDGET(labelbox), TRUE, TRUE, 0); gtk_box_pack_end (mainvbox, GTK_WIDGET (vbox), TRUE, TRUE, 0); gtk_container_add (GTK_CONTAINER (win), GTK_WIDGET (mainvbox)); #ifdef MAEMO5 hildon_window_set_app_menu (HILDON_WINDOW (win), HILDON_APP_MENU (priv->menu)); vgl_main_window_set_hildon22_accels (self, accel); #elif defined(USE_HILDON_WINDOW) hildon_window_set_menu (HILDON_WINDOW (win), GTK_MENU (priv->menu)); #else gtk_box_pack_end (mainvbox, GTK_WIDGET (priv->menu), FALSE, FALSE, 0); #endif gtk_box_pack_start(vbox, priv->playlist, FALSE, FALSE, 0); gtk_box_pack_start(vbox, gtk_hseparator_new(), FALSE, FALSE, 0); gtk_box_pack_start(vbox, GTK_WIDGET(centralbox), TRUE, TRUE, 0); gtk_box_pack_start(vbox, GTK_WIDGET(buttonshbox), TRUE, TRUE, 0); /* Signals */ g_signal_connect(G_OBJECT(priv->playbutton), "clicked", G_CALLBACK(controller_start_playing), NULL); g_signal_connect(G_OBJECT(priv->skipbutton), "clicked", G_CALLBACK(controller_skip_track), NULL); g_signal_connect(G_OBJECT(priv->stopbutton), "clicked", G_CALLBACK(controller_stop_playing), NULL); g_signal_connect(G_OBJECT(priv->lovebutton), "clicked", G_CALLBACK(love_track_selected), NULL); g_signal_connect(G_OBJECT(priv->banbutton), "clicked", G_CALLBACK(ban_track_selected), NULL); g_signal_connect(G_OBJECT(priv->recommendbutton), "clicked", G_CALLBACK(controller_recomm_track), NULL); g_signal_connect(G_OBJECT(priv->dloadbutton), "clicked", G_CALLBACK(download_track_selected), NULL); g_signal_connect(G_OBJECT(priv->tagbutton), "clicked", G_CALLBACK(controller_tag_track), NULL); g_signal_connect(G_OBJECT(priv->addplbutton), "clicked", G_CALLBACK(controller_add_to_playlist), NULL); g_signal_connect(G_OBJECT(win), "destroy", G_CALLBACK(gtk_main_quit), NULL); g_signal_connect(G_OBJECT(win), "delete-event", G_CALLBACK(delete_event), NULL); #ifdef MAEMO g_signal_connect(G_OBJECT(win), "notify::is-topmost", G_CALLBACK(is_topmost_cb), self); #endif #ifdef ENABLE_VOLUME_KEY_HANDLER g_signal_connect(G_OBJECT(win), "key_press_event", G_CALLBACK(key_press_cb), self); #endif g_signal_connect(G_OBJECT(win), "window_state_event", G_CALLBACK(window_state_cb), self); /* Initial state */ gtk_widget_show_all (GTK_WIDGET (mainvbox)); vgl_main_window_set_state(self, VGL_MAIN_WINDOW_STATE_DISCONNECTED, NULL, NULL); } static void vgl_main_window_finalize (GObject *object) { VglMainWindowPrivate *priv = VGL_MAIN_WINDOW (object)->priv; g_debug("Destroying main window ..."); g_string_free(priv->progressbar_text, TRUE); G_OBJECT_CLASS(vgl_main_window_parent_class)->finalize(object); } static void vgl_main_window_class_init (VglMainWindowClass *klass) { GObjectClass *obj_class = (GObjectClass *)klass; obj_class->finalize = vgl_main_window_finalize; g_type_class_add_private(obj_class, sizeof(VglMainWindowPrivate)); } GtkWidget * vgl_main_window_new (VglController *controller) { GtkWidget *win; g_return_val_if_fail (VGL_IS_CONTROLLER (controller), NULL); win = g_object_new (VGL_TYPE_MAIN_WINDOW, "type", GTK_WINDOW_TOPLEVEL, NULL); g_signal_connect (controller, "playback-progress", G_CALLBACK (vgl_main_window_controller_progress_cb), win); return win; } vagalume-0.8.6/src/xmlrpc.c0000644000000000000000000002351212233552617012466 00000000000000/* * xmlrpc.c -- Legacy XMLRPC-based functions to tag artists, tracks, * albums, loves and hates * * Copyright (C) 2007-2009 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #include #include #include #include "xmlrpc.h" #include "http.h" #include "util.h" static const char xmlrpc_url[] = "http://ws.audioscrobbler.com:80/1.0/rw/xmlrpc.php"; /** * Create a new xmlNode * with a string parameter to be added to the * request * @param str The value of the string * @return A new xmlNode * */ static xmlNode * string_param (const char *str) { g_return_val_if_fail(str != NULL, NULL); xmlNode *param = xmlNewNode(NULL, (xmlChar *) "param"); xmlNode *value = xmlNewNode(NULL, (xmlChar *) "value"); xmlAddChild(param, value); xml_add_string (value, "string", str); return param; } /** * Create a new xmlNode * with an array parameter to be added to the * request * @param params A lists of strings * @return A new xmlNode * */ static xmlNode * array_param (const GSList *params) { const GSList *iter; xmlNode *param = xmlNewNode(NULL, (xmlChar *) "param"); xmlNode *value = xmlNewNode(NULL, (xmlChar *) "value"); xmlNode *array = xmlNewNode(NULL, (xmlChar *) "array"); xmlNode *data = xmlNewNode(NULL, (xmlChar *) "data"); xmlAddChild(param, value); xmlAddChild(value, array); xmlAddChild(array, data); for (iter = params; iter != NULL; iter = g_slist_next(iter)) { xmlNode *val = xmlNewNode(NULL, (xmlChar *) "value"); xmlAddChild(data, val); xml_add_string (val, "string", (const char *) iter->data); } return param; } /** * Create a full XML document with the xmlrpc request. It receives a * variable, NULL-terminated list of nodes (xmlNode *) to be added as * parameters of the XMLRPC request * @param user User's Last.fm ID * @param password User's password * @param method The method * @return A new string containing the full XML request. Must be freed * by the caller */ static char * new_request (const char *user, const char *password, const char *method, ...) { g_return_val_if_fail(user && password && method, NULL); va_list ap; char *retval; xmlChar *xmlbuff; int buffersize; xmlDocPtr doc = xmlNewDoc((xmlChar *) "1.0"); xmlNode *root = xmlNewNode(NULL, (xmlChar *) "methodCall"); xmlNode *name = xmlNewNode(NULL, (xmlChar *) "methodName"); xmlNode *params = xmlNewNode(NULL, (xmlChar *) "params"); xmlNode *elem; char *timestamp = g_strdup_printf("%lu", time(NULL)); char *auth = compute_auth_token(password, timestamp); xmlDocSetRootElement(doc, root); xmlNodeSetContent(name, (xmlChar *) method); xmlAddChild(root, name); xmlAddChild(root, params); xmlAddChild(params, string_param(user)); xmlAddChild(params, string_param(timestamp)); xmlAddChild(params, string_param(auth)); va_start(ap, method); elem = va_arg(ap, xmlNode *); while (elem != NULL) { xmlAddChild(params, elem); elem = va_arg(ap, xmlNode *); } va_end(ap); xmlDocDumpMemoryEnc(doc, &xmlbuff, &buffersize, "UTF-8"); retval = g_strdup((char *) xmlbuff); xmlFree(xmlbuff); xmlFreeDoc(doc); g_free(timestamp); g_free(auth); return retval; } /** * Send the actual request * @param request String containing the request in XML * @param name Name of the method (for debugging purposes only) * @return Whether the operation was successful or not */ static gboolean xmlrpc_send_request (const char *request, const char *name) { g_return_val_if_fail(request != NULL, FALSE); gboolean retval = FALSE; GSList *headers = NULL; char *retbuf = NULL; headers = g_slist_append(headers, "Content-Type: text/xml"); http_post_buffer (xmlrpc_url, request, &retbuf, NULL, headers); /* Check its return value */ if (retbuf != NULL && g_strrstr(retbuf, "OK")) { g_debug("XMLRPC call (%s) OK", name); retval = TRUE; } else if (retbuf != NULL) { g_debug("Error in XMLRPC call (%s): %s", name, retbuf); } else { g_debug("Error in XMLRPC call (%s), connection error?", name); } /* Cleanup */ g_slist_free(headers); g_free(retbuf); return retval; } /** * Tags an artist, track or album, Previous tags will be overwritten. * * @param user The user's Last.fm ID * @param password The user's password * @param track The track to tag * @param type The type of the tag (artist/track/album) * @param tags A list of tags to set * @return Whether the operation was successful or not */ gboolean tag_track (const char *user, const char *password, const LastfmTrack *track, LastfmTrackComponent type, GSList *tags) { g_return_val_if_fail(user && password && track, FALSE); gboolean retval; char *request; xmlNode *param1, *param2, *param3, *param4; const char *method; param3 = array_param(tags); param4 = string_param("set"); /* or use "append" */ if (type == LASTFM_TRACK_COMPONENT_ARTIST) { method = "tagArtist"; param1 = string_param(track->artist); param2 = NULL; } else if (type == LASTFM_TRACK_COMPONENT_TRACK) { method = "tagTrack"; param1 = string_param(track->artist); param2 = string_param(track->title); } else { method = "tagAlbum"; param1 = string_param (track->album_artist); param2 = string_param (track->album); } if (param2 != NULL) { request = new_request(user, password, method, param1, param2, param3, param4, NULL); } else { request = new_request(user, password, method, param1, param3, param4, NULL); } retval = xmlrpc_send_request(request, method); g_free(request); return retval; } /** * Recommend a track to a user * * @param user The user's Last.fm ID * @param password The user's password * @param track The track to recommend * @param text The text of the recommendation * @param type Whether to recommend an artist, track or album * @param rcpt The user who will receive the recommendation * @return Whether the operation was successful or not */ gboolean recommend_track (const char *user, const char *password, const LastfmTrack *track, const char *text, LastfmTrackComponent type, const char *rcpt) { g_return_val_if_fail(user && password && track && text && rcpt, FALSE); gboolean retval; char *request; const char *method = "recommendItem"; xmlNode *artist, *title, *recomm_type, *recomm_to; xmlNode *recomm_body, *language; if (type == LASTFM_TRACK_COMPONENT_ARTIST) { artist = string_param(track->artist); title = string_param(""); recomm_type = string_param("artist"); } else if (type == LASTFM_TRACK_COMPONENT_TRACK) { artist = string_param(track->artist); title = string_param(track->title); recomm_type = string_param("track"); } else { artist = string_param (track->album_artist); title = string_param(track->album); recomm_type = string_param("album"); } recomm_to = string_param(rcpt); recomm_body = string_param(text); language = string_param("en"); request = new_request(user, password, method, artist, title, recomm_type, recomm_to, recomm_body, language, NULL); retval = xmlrpc_send_request(request, method); g_free(request); return retval; } /** * Add a track to the user's playlist * * @param user The user's Last.fm ID * @param password The user's password * @param track The track to add to the playlist * @return Whether the operation was successful or not */ gboolean add_to_playlist (const char *user, const char *password, const LastfmTrack *track) { g_return_val_if_fail(user && password && track, FALSE); gboolean retval; char *request; const char *method = "addTrackToUserPlaylist"; xmlNode *artist, *title; artist = string_param(track->artist); title = string_param(track->title); request = new_request(user, password, method, artist, title, NULL); retval = xmlrpc_send_request(request, method); g_free(request); return retval; } vagalume-0.8.6/src/vgl-object.h0000644000000000000000000000170512233552617013222 00000000000000/* * vgl-object.h -- Very minimalist implementation of ref-counted objects * * Copyright (C) 2009, 2010 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VGL_OBJECT_H #define VGL_OBJECT_H #include G_BEGIN_DECLS typedef struct { #ifndef G_DISABLE_CAST_CHECKS int header; #endif volatile int refcount; int objsize; GDestroyNotify destroy_func; } VglObject; gpointer vgl_object_new_with_size (int objsize, GDestroyNotify destroy_func); gpointer vgl_object_ref (gpointer ptr); void vgl_object_unref (gpointer ptr); #define vgl_object_new(type,func) \ ((type *) \ vgl_object_new_with_size (sizeof (type), func)) G_END_DECLS #endif /* VGL_OBJECT_H */ vagalume-0.8.6/src/uimisc-hildon22.c0000644000000000000000000012076212233552617014076 00000000000000/* * uimisc-hildon22.c -- Hildon 2.2 UI functions * * Copyright (C) 2010, 2011 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3. * See the README file for more details. */ #include #include #include "uimisc.h" #include "util.h" #include "compat.h" static const char pidgin_name[] = "Pidgin"; static const char gajim_name[] = "Gajim"; static const char gossip_name[] = "Gossip"; static const char telepathy_name[] = "Telepathy"; typedef struct { VglObject parent; GtkWindow *window; GtkEntry *entry; GtkWidget *selbutton; HildonButton *globalbutton; LastfmTrack *track; LastfmWsSession *ws_session; char *user; char *tags_artist; char *tags_track; char *tags_album; GtkTreeModel *poptags_artist; GtkTreeModel *poptags_track; GtkTreeModel *poptags_album; GtkTreeModel *nonemodel; TagComboState artist_state, track_state, album_state; } tagwin; typedef struct { GtkEntry *user; GtkEntry *pw; GtkDialog *dialog; } UserCfgWin; typedef struct { tagwin *w; LastfmTrackComponent type; GList *userlist; GList *globallist; } GetTrackTagsData; static void tagwin_selbutton_changed (GtkWidget *button, tagwin *w); static void user_pw_modified (GObject *obj, GParamSpec *arg, UserCfgWin *win) { const char *user = gtk_entry_get_text (win->user); const char *pw = gtk_entry_get_text (win->pw); gboolean userpw = (user && pw && strlen (user) > 0 && strlen (pw) > 0); gtk_dialog_set_response_sensitive (win->dialog, GTK_RESPONSE_ACCEPT, userpw); } static void dlbutton_clicked (HildonButton *button, GtkWindow *win) { char *dir; dir = ui_select_download_dir (win, hildon_button_get_value (button)); if (dir != NULL) { hildon_button_set_value (button, dir); g_free (dir); } } static HildonTouchSelector * usercfg_create_server_selector (VglUserCfg *cfg) { HildonTouchSelector *selector; const GList *srvlist, *iter; int i; g_return_val_if_fail (cfg != NULL, NULL); selector = HILDON_TOUCH_SELECTOR (hildon_touch_selector_new_text ()); srvlist = vgl_server_list_get (); for (iter = srvlist, i = 0; iter != NULL; iter = iter->next, i++) { const VglServer *srv = iter->data; hildon_touch_selector_append_text (selector, srv->name); if (srv == cfg->server) { hildon_touch_selector_set_active (selector, 0, i); } } return selector; } static HildonTouchSelector * usercfg_create_im_selector (VglUserCfg *cfg, gboolean *none_selected) { HildonTouchSelector *selector; GtkTreeModel *model; GtkTreeIter iter; g_return_val_if_fail (cfg != NULL && none_selected != NULL, NULL); selector = HILDON_TOUCH_SELECTOR (hildon_touch_selector_new_text ()); *none_selected = FALSE; hildon_touch_selector_append_text (selector, "Disabled"); hildon_touch_selector_append_text (selector, pidgin_name); hildon_touch_selector_append_text (selector, gajim_name); hildon_touch_selector_append_text (selector, gossip_name); hildon_touch_selector_append_text (selector, telepathy_name); hildon_touch_selector_set_column_selection_mode ( selector, HILDON_TOUCH_SELECTOR_SELECTION_MODE_MULTIPLE); hildon_touch_selector_unselect_all (selector, 0); model = hildon_touch_selector_get_model (selector, 0); gtk_tree_model_get_iter_first (model, &iter); if (!(cfg->im_pidgin || cfg->im_gajim || cfg->im_gossip || cfg->im_telepathy)) { *none_selected = TRUE; hildon_touch_selector_select_iter (selector, 0, &iter, FALSE); } gtk_tree_model_iter_next (model, &iter); if (cfg->im_pidgin) hildon_touch_selector_select_iter (selector, 0, &iter, FALSE); gtk_tree_model_iter_next (model, &iter); if (cfg->im_gajim) hildon_touch_selector_select_iter (selector, 0, &iter, FALSE); gtk_tree_model_iter_next (model, &iter); if (cfg->im_gossip) hildon_touch_selector_select_iter (selector, 0, &iter, FALSE); gtk_tree_model_iter_next (model, &iter); if (cfg->im_telepathy) hildon_touch_selector_select_iter (selector, 0, &iter, FALSE); return selector; } static void im_selection_changed_cb (HildonTouchSelector *sel, gint col, gboolean *none_selected) { GtkTreeModel *model; GtkTreeIter iter; /* If the first element ("Disabled") was not selected but is * selected now, unselect all the other ones */ if (!*none_selected) { GList *l, *liter; l = hildon_touch_selector_get_selected_rows (sel, col); for (liter = l; liter && !*none_selected; liter=liter->next) { GtkTreePath *path = liter->data; *none_selected = !gtk_tree_path_prev (path); } g_list_foreach (l, (GFunc) gtk_tree_path_free, NULL); g_list_free (l); } else { *none_selected = FALSE; } model = hildon_touch_selector_get_model (sel, col); gtk_tree_model_get_iter_first (model, &iter); g_signal_handlers_block_by_func (sel, im_selection_changed_cb, none_selected); if (*none_selected) { while (gtk_tree_model_iter_next (model, &iter)) { hildon_touch_selector_unselect_iter (sel, col, &iter); } } else { hildon_touch_selector_unselect_iter (sel, col, &iter); } g_signal_handlers_unblock_by_func (sel, im_selection_changed_cb, none_selected); } static void update_imstatus_config (HildonTouchSelector *sel, VglUserCfg *cfg) { GList *l, *iter; GtkTreeModel *model; l = hildon_touch_selector_get_selected_rows (sel, 0); model = hildon_touch_selector_get_model (sel, 0); cfg->im_pidgin = cfg->im_gajim = FALSE; cfg->im_gossip = cfg->im_telepathy = FALSE; for (iter = l; iter != NULL; iter = iter->next) { char *str; GtkTreeIter treeiter; GtkTreePath *path = iter->data; gtk_tree_model_get_iter (model, &treeiter, path); gtk_tree_model_get (model, &treeiter, 0, &str, -1); if (g_str_equal (str, pidgin_name)) { cfg->im_pidgin = TRUE; } else if (g_str_equal (str, gajim_name)) { cfg->im_gajim = TRUE; } else if (g_str_equal (str, gossip_name)) { cfg->im_gossip = TRUE; } else if (g_str_equal (str, telepathy_name)) { cfg->im_telepathy = TRUE; } g_free (str); } g_list_foreach (l, (GFunc) gtk_tree_path_free, NULL); g_list_free (l); } gboolean ui_usercfg_window (GtkWindow *parent, VglUserCfg **cfg) { UserCfgWin win; GtkWidget *d, *panarea; GtkWidget *label; GtkWidget *frame; GtkEntry *user, *pw, *proxy, *imtemplate; HildonButton *service, *dlbutton, *imbutton; HildonCheckButton *scrob, *discov, *useproxy; HildonCheckButton *lowbitrate, *autodl, *nodiags; HildonTouchSelector *servicesel, *imsel; GtkBox *vbox, *hbox, *framebox; GtkSizeGroup *size_group; gboolean changed = FALSE; gboolean none_selected; g_return_val_if_fail (cfg != NULL, FALSE); if (*cfg == NULL) *cfg = vgl_user_cfg_new (); size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); /* Create dialog */ d = gtk_dialog_new_with_buttons (_("User settings"), parent, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); gtk_window_set_default_size (GTK_WINDOW (d), -1, 300); /* Pannable area and table */ panarea = hildon_pannable_area_new (); framebox = GTK_BOX (gtk_vbox_new (FALSE, 0)); /* Account frame */ frame = gtk_frame_new (_("Account")); vbox = GTK_BOX (gtk_vbox_new (TRUE, 0)); gtk_box_pack_start (framebox, frame, FALSE, FALSE, 10); gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (vbox)); /* User name */ hbox = GTK_BOX (gtk_hbox_new (FALSE, 0)); label = gtk_label_new (_("Username")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size_group, label); gtk_box_pack_start (hbox, label, FALSE, FALSE, 10); user = GTK_ENTRY (hildon_entry_new (FINGER_SIZE)); gtk_box_pack_start (hbox, GTK_WIDGET (user), TRUE, TRUE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (hbox), FALSE, FALSE, 0); /* Password */ hbox = GTK_BOX (gtk_hbox_new (FALSE, 0)); label = gtk_label_new (_("Password")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size_group, label); gtk_box_pack_start (hbox, label, FALSE, FALSE, 10); pw = GTK_ENTRY (hildon_entry_new (FINGER_SIZE)); hildon_gtk_entry_set_input_mode (pw, HILDON_GTK_INPUT_MODE_FULL); gtk_entry_set_visibility (pw, FALSE); gtk_box_pack_start (hbox, GTK_WIDGET (pw), TRUE, TRUE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (hbox), FALSE, FALSE, 0); /* Service */ service = HILDON_BUTTON (hildon_picker_button_new ( FINGER_SIZE, HILDON_BUTTON_ARRANGEMENT_VERTICAL)); servicesel = usercfg_create_server_selector (*cfg); hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (service), servicesel); hildon_button_set_title (service, _("Service")); hildon_button_set_alignment (service, 0.0, 0.5, 1.0, 0.0); hildon_button_set_title_alignment (service, 0.0, 0.5); hildon_button_set_value_alignment (service, 0.0, 0.5); gtk_box_pack_start (vbox, GTK_WIDGET (service), FALSE, FALSE, 0); /* Enable scrobbling */ scrob = HILDON_CHECK_BUTTON (hildon_check_button_new (FINGER_SIZE)); gtk_button_set_label (GTK_BUTTON (scrob), _("Enable scrobbling")); gtk_box_pack_start (vbox, GTK_WIDGET (scrob), FALSE, FALSE, 0); /* Discovery mode */ discov = HILDON_CHECK_BUTTON (hildon_check_button_new (FINGER_SIZE)); gtk_button_set_label (GTK_BUTTON (discov), _("Discovery mode")); gtk_box_pack_start (vbox, GTK_WIDGET (discov), FALSE, FALSE, 0); /* Connection frame */ frame = gtk_frame_new (_("Connection")); vbox = GTK_BOX (gtk_vbox_new (TRUE, 0)); gtk_box_pack_start (framebox, frame, FALSE, FALSE, 10); gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (vbox)); /* Use HTTP proxy */ useproxy = HILDON_CHECK_BUTTON (hildon_check_button_new (FINGER_SIZE)); gtk_button_set_label (GTK_BUTTON (useproxy), _("Use HTTP proxy")); gtk_box_pack_start (vbox, GTK_WIDGET (useproxy), FALSE, FALSE, 0); /* Proxy address */ hbox = GTK_BOX (gtk_hbox_new (FALSE, 0)); label = gtk_label_new (_("Proxy address")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size_group, label); gtk_box_pack_start (hbox, label, FALSE, FALSE, 10); proxy = GTK_ENTRY (hildon_entry_new (FINGER_SIZE)); gtk_box_pack_start (hbox, GTK_WIDGET (proxy), TRUE, TRUE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (hbox), FALSE, FALSE, 0); /* Low bitrate stream */ lowbitrate = HILDON_CHECK_BUTTON (hildon_check_button_new (FINGER_SIZE)); gtk_button_set_label (GTK_BUTTON (lowbitrate), _("Low bitrate stream")); gtk_box_pack_start (vbox, GTK_WIDGET (lowbitrate), FALSE, FALSE, 0); /* Download frame */ frame = gtk_frame_new (_("Download")); vbox = GTK_BOX (gtk_vbox_new (TRUE, 0)); gtk_box_pack_start (framebox, frame, FALSE, FALSE, 10); gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (vbox)); /* Download directory */ dlbutton = HILDON_BUTTON (hildon_button_new ( FINGER_SIZE, HILDON_BUTTON_ARRANGEMENT_VERTICAL)); hildon_button_set_title (dlbutton, _("Download directory")); hildon_button_set_style (dlbutton, HILDON_BUTTON_STYLE_PICKER); hildon_button_set_alignment (dlbutton, 0.0, 0.5, 1.0, 0.0); hildon_button_set_title_alignment (dlbutton, 0.0, 0.5); hildon_button_set_value_alignment (dlbutton, 0.0, 0.5); gtk_box_pack_start (vbox, GTK_WIDGET (dlbutton), FALSE, FALSE, 0); /* Auto download free tracks */ autodl = HILDON_CHECK_BUTTON (hildon_check_button_new (FINGER_SIZE)); g_object_set (autodl, "width-request", 1, NULL); gtk_button_set_label (GTK_BUTTON (autodl), /* Translators: keep this string short!! */ _("Automatically download free tracks")); gtk_box_pack_start (vbox, GTK_WIDGET (autodl), FALSE, FALSE, 0); /* IM status frame */ frame = gtk_frame_new (_("Update IM status")); vbox = GTK_BOX (gtk_vbox_new (TRUE, 0)); gtk_box_pack_start (framebox, frame, FALSE, FALSE, 10); gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (vbox)); /* Update IM status */ imbutton = HILDON_BUTTON (hildon_picker_button_new ( FINGER_SIZE, HILDON_BUTTON_ARRANGEMENT_VERTICAL)); imsel = usercfg_create_im_selector (*cfg, &none_selected); hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (imbutton), imsel); hildon_button_set_title (imbutton, _("Update IM status")); hildon_button_set_alignment (imbutton, 0.0, 0.5, 1.0, 0.0); hildon_button_set_title_alignment (imbutton, 0.0, 0.5); hildon_button_set_value_alignment (imbutton, 0.0, 0.5); gtk_box_pack_start (vbox, GTK_WIDGET (imbutton), FALSE, FALSE, 0); /* IM message template */ hbox = GTK_BOX (gtk_hbox_new (FALSE, 0)); label = gtk_label_new (_("IM message template")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size_group, label); gtk_box_pack_start (hbox, label, FALSE, FALSE, 10); imtemplate = GTK_ENTRY (hildon_entry_new (FINGER_SIZE)); gtk_box_pack_start (hbox, GTK_WIDGET (imtemplate), TRUE, TRUE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (hbox), FALSE, FALSE, 0); /* Misc frame */ frame = gtk_frame_new (_("Misc")); vbox = GTK_BOX (gtk_vbox_new (TRUE, 0)); gtk_box_pack_start (framebox, frame, FALSE, FALSE, 10); gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (vbox)); /* Disable confirmation dialogs */ nodiags = HILDON_CHECK_BUTTON (hildon_check_button_new (FINGER_SIZE)); gtk_button_set_label (GTK_BUTTON (nodiags), _("Disable confirmation dialogs")); gtk_box_pack_start (vbox, GTK_WIDGET (nodiags), FALSE, FALSE, 0); /* Pack everything else */ hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA (panarea), GTK_WIDGET (framebox)); gtk_container_add ( GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (d))), panarea); /* Connect signals */ win.user = user; win.pw = pw; win.dialog = GTK_DIALOG (d); g_signal_connect (user, "notify::text", G_CALLBACK (user_pw_modified), &win); g_signal_connect (pw, "notify::text", G_CALLBACK (user_pw_modified), &win); g_signal_connect (dlbutton, "clicked", G_CALLBACK(dlbutton_clicked),d); g_signal_connect (imsel, "changed", G_CALLBACK (im_selection_changed_cb),&none_selected); /* Set current config values */ gtk_entry_set_text (user, (*cfg)->username); gtk_entry_set_text (pw, (*cfg)->password); gtk_entry_set_text (proxy, (*cfg)->http_proxy); gtk_entry_set_text (imtemplate, (*cfg)->imstatus_template); hildon_button_set_value (dlbutton, (*cfg)->download_dir); hildon_check_button_set_active (scrob, (*cfg)->enable_scrobbling); hildon_check_button_set_active (discov, (*cfg)->discovery_mode); hildon_check_button_set_active (useproxy, (*cfg)->use_proxy); hildon_check_button_set_active (lowbitrate, (*cfg)->low_bitrate); hildon_check_button_set_active (autodl, (*cfg)->autodl_free_tracks); hildon_check_button_set_active (nodiags, (*cfg)->disable_confirm_dialogs); /* Run the dialog */ gtk_widget_show_all (d); if (gtk_dialog_run (GTK_DIALOG (d)) == GTK_RESPONSE_ACCEPT) { vgl_user_cfg_set_username (*cfg, gtk_entry_get_text (user)); vgl_user_cfg_set_password (*cfg, gtk_entry_get_text (pw)); vgl_user_cfg_set_http_proxy (*cfg, gtk_entry_get_text (proxy)); vgl_user_cfg_set_download_dir ( *cfg, hildon_button_get_value (dlbutton)); vgl_user_cfg_set_server_name( *cfg, hildon_button_get_value (service)); (*cfg)->enable_scrobbling = hildon_check_button_get_active (scrob); (*cfg)->discovery_mode = hildon_check_button_get_active (discov); (*cfg)->use_proxy = hildon_check_button_get_active (useproxy); (*cfg)->low_bitrate = hildon_check_button_get_active (lowbitrate); (*cfg)->autodl_free_tracks = hildon_check_button_get_active (autodl); vgl_user_cfg_set_imstatus_template ( *cfg, gtk_entry_get_text (imtemplate)); update_imstatus_config (imsel, *cfg); (*cfg)->disable_confirm_dialogs = hildon_check_button_get_active (nodiags); changed = TRUE; } gtk_widget_destroy (d); return changed; } char * ui_input_dialog_with_list (GtkWindow *parent, const char *title, const char *text, const GList *elems, const char *value) { GtkWidget *dialog; HildonTouchSelector *selector; char *retvalue = NULL; selector = HILDON_TOUCH_SELECTOR ( hildon_touch_selector_entry_new_text ()); if (elems == NULL) { /* Hack for libhildon < 2.2.5 */ hildon_touch_selector_append_text (selector, ""); } else for (; elems != NULL; elems = elems->next) { hildon_touch_selector_append_text (selector, elems->data); } dialog = hildon_picker_dialog_new (parent); gtk_window_set_title (GTK_WINDOW (dialog), title); hildon_picker_dialog_set_selector (HILDON_PICKER_DIALOG (dialog), selector); if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) { retvalue = g_strstrip ( hildon_touch_selector_get_current_text (selector)); } gtk_widget_destroy (dialog); return retvalue; } static GtkWidget * ui_picker_button_new_from_list (const char *title, const GList *items, gboolean entry, gboolean multiple) { HildonButton *b; HildonTouchSelector *sel; if (entry) { sel = HILDON_TOUCH_SELECTOR ( hildon_touch_selector_entry_new_text ()); } else { sel = HILDON_TOUCH_SELECTOR ( hildon_touch_selector_new_text ()); hildon_touch_selector_set_column_selection_mode ( sel, multiple ? HILDON_TOUCH_SELECTOR_SELECTION_MODE_MULTIPLE : HILDON_TOUCH_SELECTOR_SELECTION_MODE_SINGLE); } if (items == NULL && entry) { /* Hack for libhildon < 2.2.5 */ hildon_touch_selector_append_text (sel, ""); } else for (; items != NULL; items = items->next) { hildon_touch_selector_append_text (sel, items->data); } b = HILDON_BUTTON ( hildon_picker_button_new ( FINGER_SIZE, HILDON_BUTTON_ARRANGEMENT_VERTICAL)); hildon_button_set_title (b, title); hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (b), sel); hildon_button_set_alignment (b, 0.0, 0.5, 1.0, 0.0); hildon_button_set_title_alignment (b, 0.0, 0.5); hildon_button_set_value_alignment (b, 0.0, 0.5); return GTK_WIDGET (b); } static GtkWidget * artist_track_album_button_new (const char *title, const LastfmTrack *track, LastfmTrackComponent active) { GtkWidget *button; HildonTouchSelector *selector; GList *l = NULL; GString *str = g_string_sized_new (50); g_string_assign (str, _("Artist: ")); g_string_append (str, track->artist); l = g_list_append (l, g_strdup (str->str)); g_string_assign (str, _("Track: ")); g_string_append (str, track->title); l = g_list_append (l, g_strdup (str->str)); if (track->album[0] != '\0') { g_string_assign (str, _("Album: ")); g_string_append (str, track->album); l = g_list_append (l, g_strdup (str->str)); } button = ui_picker_button_new_from_list (title, l, FALSE, FALSE); selector = hildon_picker_button_get_selector ( HILDON_PICKER_BUTTON (button)); switch (active) { case LASTFM_TRACK_COMPONENT_ARTIST: hildon_touch_selector_set_active (selector, 0, 0); break; case LASTFM_TRACK_COMPONENT_TRACK: hildon_touch_selector_set_active (selector, 0, 1); break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_val_if_fail (track->album[0] != '\0', FALSE); hildon_touch_selector_set_active (selector, 0, 2); break; default: g_return_val_if_reached (NULL); break; } g_list_foreach (l, (GFunc) g_free, NULL); g_list_free (l); g_string_free (str, TRUE); return button; } static LastfmTrackComponent artist_track_album_button_get_selected (GtkWidget *button) { LastfmTrackComponent ret; HildonTouchSelector *selector; g_return_val_if_fail (HILDON_IS_PICKER_BUTTON (button), LASTFM_TRACK_COMPONENT_ARTIST); selector = hildon_picker_button_get_selector ( HILDON_PICKER_BUTTON (button)); switch (hildon_touch_selector_get_active (selector, 0)) { case 0: ret = LASTFM_TRACK_COMPONENT_ARTIST; break; case 1: ret = LASTFM_TRACK_COMPONENT_TRACK; break; case 2: ret = LASTFM_TRACK_COMPONENT_ALBUM; break; default: g_return_val_if_reached (LASTFM_TRACK_COMPONENT_ARTIST); break; } return ret; } gboolean recommwin_run (GtkWindow *parent, char **user, char **message, const GList *friends, const LastfmTrack *track, LastfmTrackComponent *type) { gboolean retval = FALSE; GtkDialog *dialog; GtkWidget *panarea; GtkBox *vbox, *dvbox; GtkWidget *selbutton; GtkWidget *userbutton; GtkWidget *textlabel; GtkTextView *textview; g_return_val_if_fail (user && message && track && type, FALSE); /* Dialog and basic settings */ dialog = ui_base_dialog (parent, _("Send a recommendation")); dvbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); gtk_box_set_homogeneous (dvbox, FALSE); gtk_box_set_spacing (dvbox, 5); /* Picker button to select what to recommend */ selbutton = artist_track_album_button_new ( _("Recommend this"), track, *type); /* Picker button to select the recipient of the recommendation */ userbutton = ui_picker_button_new_from_list ( _("Send recommendation to"), friends, TRUE, FALSE); if (friends) { hildon_button_set_value (HILDON_BUTTON (userbutton), friends->data); } /* Message of the recommendation */ textlabel = gtk_label_new(_("Recommendation message")); textview = GTK_TEXT_VIEW (hildon_text_view_new ()); gtk_text_view_set_accepts_tab(textview, FALSE); gtk_text_view_set_wrap_mode(textview, GTK_WRAP_WORD_CHAR); /* Widget packing */ vbox = GTK_BOX (gtk_vbox_new (FALSE, 0)); panarea = hildon_pannable_area_new (); gtk_box_pack_start (vbox, GTK_WIDGET (selbutton), FALSE, FALSE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (userbutton), FALSE, FALSE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (textlabel), TRUE, TRUE, 0); gtk_box_pack_start (vbox, GTK_WIDGET (textview), TRUE, TRUE, 0); gtk_box_pack_start (dvbox, panarea, TRUE, TRUE, 0); hildon_pannable_area_add_with_viewport ( HILDON_PANNABLE_AREA (panarea), GTK_WIDGET (vbox)); gtk_widget_set_size_request (GTK_WIDGET (dialog), -1, 300); gtk_widget_show_all (GTK_WIDGET (dialog)); if (gtk_dialog_run (dialog) == GTK_RESPONSE_ACCEPT) { GtkTextIter start, end; GtkTextBuffer *buf = gtk_text_view_get_buffer (textview); HildonButton *b = HILDON_BUTTON (userbutton); gtk_text_buffer_get_bounds(buf, &start, &end); *message = gtk_text_buffer_get_text (buf, &start, &end, FALSE); *type = artist_track_album_button_get_selected (selbutton); *user = g_strstrip (g_strdup (hildon_button_get_value (b))); retval = TRUE; } else { *message = NULL; *user = NULL; retval = FALSE; } gtk_widget_destroy (GTK_WIDGET (dialog)); return retval; } static void tagwin_destroy (tagwin *w) { gtk_widget_destroy (GTK_WIDGET (w->window)); vgl_object_unref (w->track); vgl_object_unref (w->ws_session); g_free (w->user); g_free (w->tags_artist); g_free (w->tags_track); g_free (w->tags_album); if (w->poptags_artist) g_object_unref (w->poptags_artist); if (w->poptags_track) g_object_unref (w->poptags_track); if (w->poptags_album) g_object_unref (w->poptags_album); } static tagwin * tagwin_create (void) { return vgl_object_new (tagwin, (GDestroyNotify) tagwin_destroy); } static gboolean get_track_tags_idle (gpointer userdata) { GetTrackTagsData *data = userdata; GtkTreeModel *model = NULL; char *usertags = str_glist_join (data->userlist, ", "); if (data->globallist != NULL) { model = ui_create_options_list (data->globallist); } switch (data->type) { case LASTFM_TRACK_COMPONENT_ARTIST: data->w->poptags_artist = model; data->w->tags_artist = usertags; data->w->artist_state = TAGCOMBO_STATE_READY; break; case LASTFM_TRACK_COMPONENT_TRACK: data->w->poptags_track = model; data->w->tags_track = usertags; data->w->track_state = TAGCOMBO_STATE_READY; break; case LASTFM_TRACK_COMPONENT_ALBUM: data->w->poptags_album = model; data->w->tags_album = usertags; data->w->album_state = TAGCOMBO_STATE_READY; break; default: g_return_val_if_reached (FALSE); } tagwin_selbutton_changed (data->w->selbutton, data->w); g_list_foreach (data->userlist, (GFunc) g_free, NULL); g_list_free (data->userlist); g_list_foreach (data->globallist, (GFunc) g_free, NULL); g_list_free (data->globallist); vgl_object_unref (data->w); g_slice_free (GetTrackTagsData, data); return FALSE; } static gpointer get_track_tags_thread (gpointer userdata) { GetTrackTagsData *data = userdata; g_return_val_if_fail (data && data->w && data->w->track, NULL); lastfm_ws_get_user_track_tags(data->w->ws_session, data->w->track, data->type, &(data->userlist)); lastfm_ws_get_track_tags (data->w->ws_session, data->w->track, data->type, &(data->globallist)); gdk_threads_add_idle (get_track_tags_idle, data); return NULL; } static void tagwin_selbutton_changed (GtkWidget *button, tagwin *w) { GtkTreeModel *model = NULL; const char *usertags = NULL; HildonTouchSelector *sel; TagComboState oldstate; LastfmTrackComponent type; sel = hildon_picker_button_get_selector ( HILDON_PICKER_BUTTON (w->globalbutton)); type = artist_track_album_button_get_selected (button); switch (type) { case LASTFM_TRACK_COMPONENT_ARTIST: oldstate = w->artist_state; if (oldstate == TAGCOMBO_STATE_READY) { model = w->poptags_artist; usertags = w->tags_artist; } else { w->artist_state = TAGCOMBO_STATE_LOADING; } break; case LASTFM_TRACK_COMPONENT_TRACK: oldstate = w->track_state; if (oldstate == TAGCOMBO_STATE_READY) { model = w->poptags_track; usertags = w->tags_track; } else { w->track_state = TAGCOMBO_STATE_LOADING; } break; case LASTFM_TRACK_COMPONENT_ALBUM: g_return_if_fail(w->track->album[0] != '\0'); oldstate = w->album_state; if (oldstate == TAGCOMBO_STATE_READY) { model = w->poptags_album; usertags = w->tags_album; } else { w->album_state = TAGCOMBO_STATE_LOADING; } break; default: g_return_if_reached(); break; } gtk_widget_set_sensitive (GTK_WIDGET (w->globalbutton), model != NULL); if (oldstate == TAGCOMBO_STATE_READY) { if (model != NULL) { hildon_touch_selector_set_model (sel, 0, model); hildon_touch_selector_unselect_all (sel, 0); } else { hildon_touch_selector_set_model (sel, 0, w->nonemodel); } gtk_widget_set_sensitive (GTK_WIDGET (w->entry), TRUE); gtk_entry_set_text (w->entry, usertags ? usertags : ""); } else { hildon_touch_selector_set_model (sel, 0, w->nonemodel); hildon_button_set_value (w->globalbutton, _("retrieving...")); gtk_widget_set_sensitive (GTK_WIDGET (w->entry), FALSE); gtk_entry_set_text (w->entry, _("retrieving...")); } if (oldstate == TAGCOMBO_STATE_NULL) { GetTrackTagsData *data = g_slice_new (GetTrackTagsData); data->w = vgl_object_ref (w); data->type = type; data->userlist = data->globallist = NULL; g_thread_create (get_track_tags_thread, data, FALSE, NULL); } } static void tagwin_tagbutton_changed (HildonPickerButton *button, tagwin *w) { GList *rows, *l; GString *tags; HildonTouchSelector *sel; GtkTreeModel *model; sel = hildon_picker_button_get_selector (button); model = hildon_touch_selector_get_model (sel, 0); rows = hildon_touch_selector_get_selected_rows (sel, 0); tags = g_string_new (gtk_entry_get_text (w->entry)); g_strstrip (tags->str); g_string_truncate (tags, strlen (tags->str)); for (l = rows; l != NULL; l = l->next) { GtkTreeIter iter; char *str; gtk_tree_model_get_iter (model, &iter, l->data); gtk_tree_model_get (model, &iter, 0, &str, -1); if (tags->len > 0) { if (tags->str[tags->len - 1] != ',') { g_string_append_c (tags, ','); } g_string_append_c (tags, ' '); } g_string_append (tags, str); g_free (str); } g_list_foreach (rows, (GFunc) gtk_tree_path_free, NULL); g_list_free (rows); g_signal_handlers_block_by_func (button, tagwin_tagbutton_changed, w); hildon_touch_selector_unselect_all (sel, 0); g_signal_handlers_unblock_by_func (button, tagwin_tagbutton_changed,w); gtk_entry_set_text (w->entry, tags->str); gtk_editable_set_position (GTK_EDITABLE (w->entry), -1); g_string_free (tags, TRUE); } static char * userbutton_print_func (HildonTouchSelector *selector, gpointer user_data) { GtkTreeModel *model = hildon_touch_selector_get_model (selector, 0); gint size = gtk_tree_model_iter_n_children (model, NULL); return g_strdup_printf (_("%d tags"), size); } static char * globalbutton_print_func (HildonTouchSelector *selector, gpointer user_data) { LastfmTrackComponent type; TagComboState state; tagwin *w = user_data; type = artist_track_album_button_get_selected ( GTK_WIDGET (w->selbutton)); if (type == LASTFM_TRACK_COMPONENT_ARTIST) { state = w->artist_state; } else if (type == LASTFM_TRACK_COMPONENT_TRACK) { state = w->track_state; } else if (type == LASTFM_TRACK_COMPONENT_ALBUM) { state = w->album_state; } else { g_return_val_if_reached (NULL); } if (state == TAGCOMBO_STATE_READY) { gint size; GtkTreeModel *model; model = hildon_touch_selector_get_model (selector, 0); size = gtk_tree_model_iter_n_children (model, NULL); return g_strdup_printf (_("%d tags"), size); } else { return g_strdup ("(retrieving...)"); } } gboolean tagwin_run (GtkWindow *parent, const char *user, char **newtags, const GList *usertags, LastfmWsSession *ws_session, LastfmTrack *track, LastfmTrackComponent *type) { tagwin *t; gboolean retvalue = FALSE; GtkWidget *selbutton; GtkWidget *entrylabel, *entry, *userbutton, *globalbutton; HildonTouchSelector *sel; GtkDialog *dialog; GtkBox *vbox; g_return_val_if_fail (ws_session && track && type && user && newtags, FALSE); /* Dialog and basic settings */ t = tagwin_create (); dialog = ui_base_dialog (parent, _("Tagging")); vbox = GTK_BOX (gtk_dialog_get_content_area (dialog)); gtk_box_set_homogeneous (vbox, FALSE); gtk_box_set_spacing (vbox, 5); /* Combo to select what to tag */ selbutton = artist_track_album_button_new (_("Tag this"),track,*type); /* Text entry */ entrylabel = gtk_label_new(_("Enter a comma-separated list of tags")); entry = hildon_entry_new (FINGER_SIZE); /* User tags */ userbutton = ui_picker_button_new_from_list ( _("Your favourite tags"), usertags, FALSE, TRUE); sel = hildon_picker_button_get_selector ( HILDON_PICKER_BUTTON (userbutton)); hildon_touch_selector_set_print_func (sel, userbutton_print_func); hildon_touch_selector_unselect_all (sel, 0); /* Global tags */ globalbutton = ui_picker_button_new_from_list ( _("Popular tags for this"), NULL, FALSE, TRUE); sel = hildon_picker_button_get_selector ( HILDON_PICKER_BUTTON (globalbutton)); hildon_touch_selector_set_print_func_full ( sel, globalbutton_print_func, t, NULL); if (usertags == NULL) { gtk_widget_set_sensitive (userbutton, FALSE); } /* Widget packing */ gtk_box_pack_start (vbox, selbutton, TRUE, TRUE, 5); gtk_box_pack_start (vbox, entrylabel, TRUE, TRUE, 5); gtk_box_pack_start (vbox, entry, TRUE, TRUE, 5); gtk_box_pack_start (vbox, userbutton, TRUE, TRUE, 5); gtk_box_pack_start (vbox, globalbutton, TRUE, TRUE, 5); t->track = vgl_object_ref (track); t->ws_session = vgl_object_ref (ws_session); t->window = GTK_WINDOW (dialog); t->entry = GTK_ENTRY (entry); t->selbutton = selbutton; t->globalbutton = HILDON_BUTTON (globalbutton); t->user = g_strdup (user); t->nonemodel = ui_create_options_list (NULL); /* Signals */ g_signal_connect (selbutton, "value-changed", G_CALLBACK (tagwin_selbutton_changed), t); g_signal_connect (userbutton, "value-changed", G_CALLBACK (tagwin_tagbutton_changed), t); g_signal_connect (globalbutton, "value-changed", G_CALLBACK (tagwin_tagbutton_changed), t); tagwin_selbutton_changed (selbutton, t); gtk_widget_grab_focus (entry); gtk_widget_show_all (GTK_WIDGET (dialog)); if (gtk_dialog_run (dialog) == GTK_RESPONSE_ACCEPT) { *newtags = g_strdup (gtk_entry_get_text (t->entry)); *type = artist_track_album_button_get_selected (selbutton); retvalue = TRUE; } else { *newtags = NULL; retvalue = FALSE; } gtk_widget_hide (GTK_WIDGET (t->window)); vgl_object_unref (t); return retvalue; } vagalume-0.8.6/src/vgl-bookmark-mgr.h0000644000000000000000000000561512233552617014350 00000000000000/* * vgl-bookmark-mgr.h -- Bookmark manager class * * Copyright (C) 2007-2008 Igalia, S.L. * Authors: Alberto Garcia * * This file is part of Vagalume and is published under the GNU GPLv3 * See the README file for more details. */ #ifndef VGL_BOOKMARK_MGR_H #define VGL_BOOKMARK_MGR_H #include G_BEGIN_DECLS #define VGL_TYPE_BOOKMARK_MGR (vgl_bookmark_mgr_get_type()) #define VGL_BOOKMARK_MGR(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ VGL_TYPE_BOOKMARK_MGR, VglBookmarkMgr)) #define VGL_BOOKMARK_MGR_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST ((klass), \ VGL_TYPE_BOOKMARK_MGR, VglBookmarkMgrClass)) #define VGL_IS_BOOKMARK_MGR(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VGL_TYPE_BOOKMARK_MGR)) #define VGL_IS_BOOKMARK_MGR_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), VGL_TYPE_BOOKMARK_MGR)) #define VGL_BOOKMARK_MGR_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), \ VGL_TYPE_BOOKMARK_MGR, VglBookmarkMgrClass)) typedef struct _VglBookmarkMgr VglBookmarkMgr; typedef struct _VglBookmarkMgrClass VglBookmarkMgrClass; typedef struct _VglBookmarkMgrPrivate VglBookmarkMgrPrivate; typedef struct { int id; const char *name; const char *url; } VglBookmark; struct _VglBookmarkMgrClass { GObjectClass parent_class; }; struct _VglBookmarkMgr { GObject parent; VglBookmarkMgrPrivate *priv; }; GType vgl_bookmark_mgr_get_type (void) G_GNUC_CONST; VglBookmarkMgr * vgl_bookmark_mgr_get_instance (void); int vgl_bookmark_mgr_add_bookmark (VglBookmarkMgr *mgr, const char *name, const char *url); void vgl_bookmark_mgr_remove_bookmark (VglBookmarkMgr *mgr, int id); void vgl_bookmark_mgr_change_bookmark (VglBookmarkMgr *mgr, int id, char *newname, char *newurl); const VglBookmark * vgl_bookmark_mgr_get_bookmark (VglBookmarkMgr *mgr, int id); const GList * vgl_bookmark_mgr_get_bookmark_list (VglBookmarkMgr *mgr); void vgl_bookmark_mgr_save_to_disk (VglBookmarkMgr *mgr, gboolean force); void vgl_bookmark_mgr_reorder (VglBookmarkMgr *mgr, const int *ids); G_END_DECLS #endif /* VGL_BOOKMARK_MGR_H */ vagalume-0.8.6/po/0000755000000000000000000000000012233553555010723 500000000000000vagalume-0.8.6/po/LINGUAS0000644000000000000000000000004712233552617011667 00000000000000ca de es fi fr gl it lv pl pt pt_BR ru vagalume-0.8.6/po/es.po0000644000000000000000000006474512233552617011630 00000000000000# Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # # Oscar A. Mata T. , 2008 # Ricardo Mones , 2010 msgid "" msgstr "" "Project-Id-Version: Vagalume\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:39+0200\n" "Last-Translator: Ricardo Mones \n" "Language-Team: None\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Cliente de Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Cliente de Last.fm Vagalume" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Error inicializando el administrador de conexiones de red" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Información del servidor importada corréctamente" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "No hay información del servidor en el fichero" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Imposible acceder a %s\n" "Compruebe su nombre de usuario y contraseña" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Error de conexión de red" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Necesita introducir su nombre de \n" "usuario y contraseña para poder\n" "usar este programa." #: ../src/controller.c:717 msgid "No more content to play" msgstr "No hay más contenido que reproducir" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Descargado %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Error descargando %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Ya se está descargando la pista" #: ../src/controller.c:994 msgid "Download this track?" msgstr "¿Descargar esta pista?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "El fichero ya existe. ¿Desea sobreescribirlo?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Descargando %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Artista agregado a favoritos" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Pista agregada a favoritos" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Radio actual agregada a favoritos" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Favorito añadido" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "¿Marcar la pista como favorita?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Marcando pista como favorita" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "¿Marcar la pista como excluida?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Excluyendo pista" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Etiquetas establecidas correctamente" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Error etiquetando" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Debe introducir una lista de etiquetas" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Recomendación enviada" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Error enviando recomendación" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Debe introducir un nombre de usuario\n" "y un mensaje de recomendación." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Pista agregada a la lista de reproducción" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Error agregando la pista a la lista de reproducción" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "¿Desea agregar esta pista a la lista de reproducción?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Esta radio no está disponible\n" "en tu país." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "URL de radio inválida. O la\n" "radio no existe o sólo está\n" "disponible para suscriptores\n" "de Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Introducir etiqueta" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Introducir una de sus etiquetas" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Introducir un nombre de usuario" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Reproducir esta radio de usuario" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Introducir una etiqueta" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Introducir un grupo" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Introducir un nombre de grupo" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Introducir una etiqueta global" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Introducir artista" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Introducir un nombre de artista" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Introducir URL de radio" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Introducir la URL de la radio Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Las URL de Last.fm deben comenzar con lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Imposible inicializar DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Error leyendo la lista de ficheros del servidor" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Error inicializando el sistema de audio" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Imposible inicializar contexto de OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "¡Descarga completa!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "¡Error en la descarga!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "C_errar" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Descargando %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Descargando el fichero\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Cancelar" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Uso:\n" " %s [-d decodif] [-s sink] [lastfm radio url]\n" "\n" " decodif: Decodificador GStreamer (por omisión: '%s')\n" " sink: «Sink» GStreamer (por omisión: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Demasiadas opciones no reconocidas\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Uso: %s [URL de radio lastfm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(radio desconocida)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Etiqueta de radio de usuario" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Usuario:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Etiqueta:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "No hay ayuda disponible" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Contraseña:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Servicio:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Activar «scrobbling»:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Modo de descubrimiento:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Cuenta" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Nombre de usuario y contraseña:\n" "De su cuenta.\n" "\n" "* Servicio:\n" "Servicio compatible con Last.fm al que conectar.\n" "\n" "* Scrobbling:\n" "Muestra la música que escuchas en tu perfil.\n" "\n" "* Modo de descubrimiento:\n" "No reproduce la música que ya escuchaste. Requiere de una suscripción a Last." "fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Usar proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Dirección del proxy:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Flujo de bajo bitrate" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Usar proxy:\n" "Activa esto para usar un proxy.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Usar el proxy del sistema" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Usar el proxy del sistema:\n" "Usar la configuración de proxy del sistema.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Conexión" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Dirección del proxy:\n" "[protocolo://]usuario@contraseña@servidor:puerto\n" "Tal sólo el servidor (puede ser una dirección IP) es\n" "requerido. Protocolos soportados: http, socks4, socks5.\n" "\n" "* Flujo de bajo bitrate:\n" "Intenta obtener un flujo de bitrate bajo del servidor\n" "para ahorrar ancho de banda." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Seleccionar directorio de descargas" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Autodescargar las pistas gratuitas" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Descargar" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Directorio de descarga:\n" "Ruta donde se descargarán los archivos mp3. Nótese que sólo se podrán " "descargar aquellas canciones marcadas como gratuitas por el servidor." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Plantilla de MI:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Actualizar estado de Pidgin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Actualizar estado de Gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Actualizar estado de Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Actualizar estado de Telepathy:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Actualizar estado de MI" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume puede actualizar el mensaje de estado de su cliente de MI cada vez " "que comience una nueva canción. La plantilla puede contener las siguientes " "palabras clave:\n" "\n" "{artist}: Nombre del artista\n" "{title}: Título de la canción\n" "{station}: Estación de radio\n" "{version}: Versión de Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Desactivar diálogos de confirmación:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Desactivar diálogos de confirmación:\n" "No pedir confirmación al marcar pistas como favoritas o excluidas." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Mostrar notificaciones de reproducción:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Mostrar notificaciones de reproducción:\n" "Mostrar una caja de notificación al comienzo de una nueva canción.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Cerrar a bandeja del sistema:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Cerrar a bandeja del sistema:\n" "Ocultar la ventana de Vagalume cuando se presione el botón de cerrar." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Miscelánea" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Configuraciones de usuario" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artista:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Pista:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Álbum:" #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Enviar una recomendación" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Recomendar esto" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Enviar recomendación a" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Mensaje de recomendación" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "recuperando..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(ninguno)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Etiquetando" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Etiquétalo" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Introduzca una lista de\n" "etiquetas separada por comas" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Tus etiquetas favoritas" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Etiquetas populares para esto" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Usuario" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Contraseña" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Servicio" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Activar scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Modo de descubrimiento" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Usar proxy HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Dirección del proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Directorio de descargas" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Plantilla de MI" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Desactivar diálogos de confirmación" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d etiquetas" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "" "Introduzca una lista de\n" "etiquetas separada por comas" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Cliente de Last.fm y servicios compatibles" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Catalán" #: ../src/uimisc.c:173 msgid "German" msgstr "Alemán" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Español" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finlandés" #: ../src/uimisc.c:174 msgid "French" msgstr "Francés" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Gallego" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italiano" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Letón" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polaco" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugués" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Ruso" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Confirmación" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Agregar favorito" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Editar favorito" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nombre de favorito" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Dirección de radio last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Nombre de favorito inválido" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Seleccione fichero de servidor a importar" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Detener automáticamente" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "¿Cuándo quiere detener la reproducción?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minutos" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "No detener" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Detener después de esta pista" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Detener después de" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Recomendar a..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "E_tiquetas..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Agregar a lista de reproducción" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Pista _favorita" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "E_xcluir esta pista" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Favoritos" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importar fichero de servidores..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Reproducir _radio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Mis radios" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Las radios de otros" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Grupo de radio..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Música etiquetada..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artistas similares a..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Introduzca URL..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Mi colección" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Mis vecinos" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Mis pistas favoritas" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Mi radio Mix" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Mi lista de reproducción" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Mis recomendaciones" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Mi música etiquetada..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Colección..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Vecinos..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Pistas favoritas..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Radio Mix..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Lista de reproducción..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Recomendaciones..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Acciones" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Detener después de..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Descargar esta pista" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Favoritos" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Agregar favorito..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Administrar favoritos..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Agregar este artista a favoritos..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Agregar esta pista a favoritos..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Agregar esta radio a favoritos..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "A_yuda" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Seleccionar radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Colección de %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Vecinos de %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Pistas favoritas de %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Radio Mix de %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Lista de reproducción de %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Recomendaciones de %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Música etiquetada de %s..." #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Introduzca un nombre de usuario" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importar fichero de servidores" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Reproducir radio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Gente" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Comenzar reproducción" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Detener reproducción" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Omitir esta pista" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Marcar como favorita" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Excluir esta pista" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Recomendar esta pista" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Editar etiquetas de esta pista" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Agregar pista a la lista de reproducción" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artista:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Título:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Álbum:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Escuchando a " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Detenido" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Reproduciendo..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Conectando..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Desconectado" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volumen: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Sin artista" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Sin pista" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Sin álbum" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Reproducir" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Detener" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Omitir" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Favorita" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Excluir" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Mostrar la ventana principal" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Cerrar Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Detenido" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Reproduciendo ahora: \n" " %s \n" " por %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " por %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" "por %s\n" " de %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Usar proxy HTTP:\n" #~ "Activar esto para usar un proxy HTTP.\n" #~ "\n" #~ "* Dirección del proxy:\n" #~ "usuario:contraseña@servidor:puerto\n" #~ "Sólo el servidor (puede ser una dirección IP) es obligatorio." vagalume-0.8.6/po/pt_BR.po0000644000000000000000000006421412233552617012216 00000000000000# pt_BR.po - Brazilian Portuguese translation file # Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # Rodrigo Flores , 2008, 2009 msgid "" msgstr "" "Project-Id-Version: Vagalume 0.5.1-1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:41+0200\n" "Last-Translator: Rodrigo Flores \n" "Language-Team: Rodrigo Flores \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Cliente do Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Cliente do Last.fm Vagalume" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Erro ao inicializar o gerenciador de conexões da internet" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Não foi possível fazer login no %s\n" "Verifique o nome de usuário e senha" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Erro de conexão da rede" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Você deve digitar seu nome de usuário\n" "e senha para poder utilizar este \n" "programa." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Sem mais conteúdo para reproduzir" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Download realizado %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Erro ao fazer download de %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Download da faixa sendo realizado" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Fazer o download desta faixa?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "O arquivo existe. Sobrescrevê-lo?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Fazendo o download de %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Artista adicionado aos marcadores" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Faixa adicionada aos marcadores" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Rádio atual adicionada aos marcadores" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Marcador adicionado" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Marcar a faixa como preferida?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Marcando faixa como preferida" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Banir essa faixa?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Banindo faixa" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Etiquetas definidas corretamente" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Erro ao etiquetar" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Você deve digitar uma lista de etiquetas" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Recomendação enviada" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Erro ao enviar recomendação" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Você deve digitar um nome de usuário\n" "e uma mensagem de recomendação." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Faixa adicionada à lista de reprodução" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Erro ao adicionar faixa à lista de reprodução" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Adicionar esta faixa à lista de reprodução?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Esta rádio não está disponível\n" "no seu país." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "URL de rádio inválido.\n" "Ou esta rádio não existe\n" "ou é somente disponível para\n" "quem tem conta no Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Digite a etiqueta" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Digite uma de suas etiquetas" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Digite o nome de usuário" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Reproduzir a rádio deste usuário" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Digite uma etiqueta" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Digite o grupo" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Digite o nome do grupo" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Digite uma etiqueta global" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Digite o artista" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Digite o nome de um artista" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Digite o URL de uma rádio" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Digite o URL de uma rádio do Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Um URL de uma rádio do Last.fm deve começar com lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Não foi possível iniciar o DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Erro ao iniciar sistema de aúdio" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Não foi possível iniciar contexto OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Download completo!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Erro no download!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "_Fechar" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Fazendo o download de %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Fazendo o download do arquivo\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Cancelar" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Uso:\n" " %s [-d decodificador] [-s sink] [lastfm rádio url]\n" "\n" " decodificador: decodificador do GStreamer (padrão: \"%s\")\n" " sink: sink do GStreamer (padrão: \"%s\")\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Muitas opções não reconhecidas\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Uso: %s [lastfm rádio endereço]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(rádio desconhecida)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Etiqueta de rádio do usuário" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Nome de usuário:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Etiqueta:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Sem ajuda disponível" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Senha:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Serviço:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Habilitar scrobbling:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Modo de descoberta:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Conta" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Nome de usuário e senha:\n" "Da sua conta.\n" "\n" "* Service:\n" "Serviço compatível ao Last.fm para se conectar.\n" "\n" "* Scrobbling:\n" "Mostra a música que você ouve no seu perfil.\n" "\n" "* Discovery mode:\n" "Não reproduz a música que você já ouviu. Requer uma conta do Last.fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Utilizar proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Endereço do Proxy:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Conexão" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Escolher o diretório de download" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Faça automaticamente o download de faixas gratuitas" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Download" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Diretório de Download:\n" "Onde fazer o download de arquivos mp3. Perceba que você só poderá fazer o " "download de músicas marcadas como Download Gratuito pelo Last.fm." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Modelo de mensagem do MI:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Atualizar o status do Pidgin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Atualizar o status do gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Atualizar o status do Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Atualizar o status do Telepathy" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Atualizar o status do MI:" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "O Vagalume pode atualizar a mensagem de status do seu cliente de MI toda vez " "que uma música começa. O modelo pode conter as seguintes palavras chave:\n" "\n" "{artist}: Nome do artista\n" "{title}: Nome da música\n" "{station}: Estação de rádio\n" "{version}: versão do Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Desabilitar diálogos de confirmação:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Desabilitar diálogos de confirmação:\n" "Não peça uma confirmação ao marcar como preferida/banir faixa." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Mostrar notificações de reprodução:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Mostrar notificações de reprodução:\n" "Fazer uma notificação de pop-up acada vez que uma música nova iniciar.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Fechar para a barra de notificação:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Fechar para a barra de notificação:\n" "Esconde a janela do Vagalume quando o botão fechar é pressionado." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Misc" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Configurações do usuário" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artista: " #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Faixa: " #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Álbum: " #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Enviar uma recomendação" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Recomendar esta" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Enviar recommendation a" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Mensagem de recomendação" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "recuperando..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(nenhum)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Etiquetando" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Etiquetar esta" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Digite uma lista de etiquetas\n" "separadas por vírgula" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Suas etiquetas favoritas" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Etiquetas populares para esta" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Nome de usuário" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Senha" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Serviço" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Habilitar scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Modo de descoberta" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Utilizar proxy HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Endereço do Proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Diretório de download" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Modelo de mensagem do MI" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Desabilitar diálogos de confirmação" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "" "Digite uma lista de etiquetas\n" "separadas por vírgula" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Cliente para o Last.fm e serviços compatíveis" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "" #: ../src/uimisc.c:173 msgid "German" msgstr "Alemão" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Espanhol" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finlandês" #: ../src/uimisc.c:174 msgid "French" msgstr "Francês" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galego" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italiano" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Lituano" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polonês" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Português" #: ../src/uimisc.c:178 msgid "Russian" msgstr "" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Confirmação" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Adicionar marcador" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Editar marcador" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nome do marcador" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Endereço da rádio do Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Nome do marcador inválido" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Parar automaticamente" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Quando você quer parar a reprodução?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minutos" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Não parar" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Parar depois desta faixa" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Parar depois de" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Recomendar a..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "E_tiquetas..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Adicionar à lista de reprodução" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Marcar esta faixa como preferida" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Banir esta faixa" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Marcadores" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "" #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Reproduzir _Rádio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Minhas rádios" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Rádios de outros" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Rádio de grupo..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Música etiquetada..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artistas semelhantes a..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Digite o URL..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Minha biblioteca" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Meus vizinhos" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Minhas faixas preferidas" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Minha lista de reprodução" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Minhas recomendações" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Minhas músicas etiquetadas..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Biblioteca..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Vizinhos..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Faixas preferidas..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "" #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Lista de Reprodução..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Recomendações..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Ações" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Parar depois ..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Fazer o download desta faixa" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Marcadores" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Adicionar marcador..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Gerenciar Marcadores..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Marcar este artista..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Marcar esta faixa..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Marcar esta faixa..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "A_juda" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Escolher rádio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "A biblioteca de %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Os vizinhos de %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "As faixas preferidas de %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "O mix de %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "A lista de reprodução de %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "As recomendações de %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "As músicas etiquetadas de %s..." #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Digite um nome de usuário" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Reproduzir rádio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Começar a reprodução" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Parar a reprodução" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Pular esta faixa" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Marcar como preferida" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Banir esta faixa" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Recomendar esta faixa" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Editar etiquetas para esta faixa" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Adicionar esta faixa à lista de reprodução" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artista:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Título:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Álbum\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Ouvindo: " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Parado" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Reproduzindo..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Conectando..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Desconectado" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volume: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Nenhum artista" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Nenhuma faixa" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Nenhum álbum" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Reproduzir" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Parar" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Pular" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Preferir" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Banir" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Mostrar janela principal" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Fechar o Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr " Parado " #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Reproduzindo agora: \n" " %s \n" " por %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " por %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " por %s\n" " de %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Utilizar proxy HTTP:\n" #~ "Permite utilizar um proxy HTTP.\n" #~ "\n" #~ "* Endereço do proxy:\n" #~ "usuário:senha@nome da máquina:porta\n" #~ "Somente o nome da máquina (pode ser um endereço IP) é necessário." #~ msgid "Stop after ..." #~ msgstr "Parar depois ..." #~ msgid "Invalid radio URL" #~ msgstr "URL de rádio inválido" #~ msgid "A Last.fm client for Gnome and Maemo" #~ msgstr "Um cliente do Last.fm para o Gnome e o Maemo" #~ msgid "Settings..." #~ msgstr "Configurações..." #~ msgid "Quit" #~ msgstr "Sair" #~ msgid "About..." #~ msgstr "Sobre..." vagalume-0.8.6/po/gl.po0000644000000000000000000006610712233552617011615 00000000000000# Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # # Ignacio Casal Quinteiro , 2008 # Amador Loureiro Blanco , 2008-2011 msgid "" msgstr "" "Project-Id-Version: Vagalume en Galego 0.8.3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:42+0200\n" "Last-Translator: Amador Loureiro Blanco \n" "Language-Team: Vagalume en Galego \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Galician\n" "X-Poedit-Country: SPAIN\n" "X-Poedit-SourceCharset: utf-8\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Cliente de Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Cliente de Last.fm Vagalume" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Houbo un erro iniciando o xestor de conexións a internet" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Importouse correctamente a iinformación do servidor" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Non se atopou información do servidor nese ficheiro" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Non é posible acceder a %s\n" "Verifica o nome de persoa usuaria e contrasinal" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Houbo un erro de conexión á rede" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Precísase introducir ou teu nome\n" "de persoa usuaria e contrasinal \n" "para poder usar este programa" #: ../src/controller.c:717 msgid "No more content to play" msgstr "Non hai máis contido para reproducir" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Descargado %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Houbo un erro descargando %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Pista xa descargada" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Desexa descargar esta pista?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Este ficheiro xa existe. Desexas sobreescribilo?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Descargando %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Engadiuse o Artista aos marcadores" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Engadiuse a pista aos marcadores" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Engadiuse a radio actual aos marcadores" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Marcador engadido" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Desexas realmente marcar esta pista como favorita?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Marcando esta pista como favorita" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Desexas realmente desbotar esta pista?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Desbotando a pista" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Estableceronse correctamente as etiquetas" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Houbo un erro etiquetando" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Debes escribir unha lista de etiquetas" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Enviouse unha recomendación" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Houbo un erro enviando a recomendación" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Debes escribir un nome de usuario\n" "e unha mensaxe de recomendación." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Engadiuse a pista á lista de reproducción" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Houbo un erro engadindo a pista á lista de reprodución" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Desexa engadir realmente esta pista á lista de reprodución?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Esta radio non está dispoñible\n" "no teu país." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "O URL da radio non é correcto.\n" "Ou non existe esa radio ou só\n" "está dispoñible para persoas\n" "subscritoras do Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Introducir unha etiqueta" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Introduce unha das túas etiquetas" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Introducir un nome de persoa usuaria" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Reproducir a radio desta persoa usuaria" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Introduza unha etiqueta" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Introducir un grupo" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Introducir o nome dun grupo" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Introducir unha etiqueta global" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Introducir un artista" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Introducir o nome dun artista" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Introducir o URL da radio" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Introducir o URL da radio do Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "O URL da radio de Last.fm debe comezar con lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Non se puido inicializar o DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Non se puido ler o ficheiro coa lista de servidores" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Houbo un erro ao iniciar o sistema de audio" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Non se puido iniciar o contexto OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Completouse a descarga!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Houbo un erro na descarga!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "C_lose" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Descargando %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Descargando o arquivo\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Cancelar" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Uso:\n" " %s [-d decodificador] [-s atenuador] [url da radio de lastfm]\n" "\n" " decodificador: decodificador GStreamer (por defecto: '%s')\n" " atenuador: atenuador do GStreamer (por defecto: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Hai demasiadas opcións descoñecidas\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Uso: %s [url da radio en lastfm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(radio descoñecida)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Radio etiquetada pola persoa usuaria" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Nome de persoa usuaria:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Etiqueta:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Non hai axuda dispoñible" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Contrasinal:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Servizo:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Habilitar scrobbling:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Modo descubrimento:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Conta" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Nome de persoa usuaria e contrasinal:\n" "Desde a súa conta de Last.fm.\n" "\n" "* Servizo:\n" "Conectar ao servizo compatible con Last.fm.\n" "\n" "* Scrobbling:\n" "Amosa a música que escoita no seu perfil de last.fm.\n" "\n" "* Modo descuberta:\n" "Non reproduce música que vostede xa teña escoitado. Precisa dunha " "subscripción a Last.fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Usar proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Enderezo do proxy:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Fluxo baixo de bitrate" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Usar proxy:\n" "Activar isto para usar un proxy.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Usar o proxy xeral do sistema" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Usar o Proxy xeral do sistema:\n" "Usar a configuración do proxy xeral do sistema.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Conexión" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Enderezo do Proxy:\n" "[protocolo://]usuario:contrasinal@nomedohost:porto\n" "Só se precisa o nome do host (pode ser un enderezo IP).\n" "Os protocolos aceptados son: http, socks4, socks5.\n" "\n" "* Fluxo baixo de bitrate:\n" "Proba a obter un fluxo baixo de bitrate desde o servidor\n" "para aforrar ancho de banda." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Selecciona o directorio de descarga" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Descargar automaticamente as pistas gratuitas" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Descargar" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Directorio de descarga:\n" "Onde se descargan os ficheiros mp3. Ten en conta que só podes descargar " "aquelas cancións marcadas coma de libre descarga polo servidor." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Modelo de mensaxe para a mensaxería:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Actualizar o estado en Pidgin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Actualizar o estado en Gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Actualizar o estado en Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Actualizar o estado en Telepathy:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Actualizar o estado na mensaxería" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume pode actualizar a mensaxe de estado do teu cliente de mensaxería " "instantánea cada vez que comece unha nova canción. O modelo pode conter as " "seguintes palabras chave:\n" "\n" "{artist}: Nome do artista\n" "{title}: Título da canción\n" "{station}: Estación de radio\n" "{version}: Versión de Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Inhabilitar os diálogos de confirmación:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Inhabilitar os diálogos de confirmación:\n" "Non se solicitará confirmación cando sinales pistas favoritas/desbotadas." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Amosar notificacións de reprodución:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Amosar notificacións de reprodución:\n" "Amosa unha caixa notificando cando comeza unha nova canción.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Pechar á barra de notificacións:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Pechar á barra de notificacións:\n" "Oculta a ventá de Vagalume cando prema no botón de peche." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Varios" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Configuracións de persoa usuaria" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artista:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Pista:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Álbum:" #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Enviar unha recomendación" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Recomendar isto" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Enviar recomendación a" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Mensaxe de recomendación" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "obtendo..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(ningún)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Etiquetando" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Etiquetar isto" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Introduza unha lista de etiquetas\n" "separadas por comas" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "As túas etiquetas favoritas" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Etiquetas populares para isto" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Nome de usuario/a" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Contrasinal" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Servizo" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Habilitar scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Modo descubrimento" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Usar proxy HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Enderezo do proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Directorio de descarga" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Modelo de mensaxe para IM (Mensaxaría Instantánea)" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Deshabilitar os diálogos de confirmación" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d etiquetas" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Introduza unha lista de etiquetas separadas por comas" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Cliente de Last.fm e servizos compatibles" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Catalán" #: ../src/uimisc.c:173 msgid "German" msgstr "Alemán" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Español" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finés" #: ../src/uimisc.c:174 msgid "French" msgstr "Francés" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galego" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italiano" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Letón" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polaco" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugués" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Ruso" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Confirmación" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Engadir marcador" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Editar marcador" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nome do marcador" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Enderezo da radio de Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "O nome do marcador non é valido" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Escoller o ficheiro do servidor a importar" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Parar automaticamente" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Cando queres parar a reprodución?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minutos" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Non parar" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Parar despois desta pista" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Parar despois de" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Recomendar a..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Etiquetas.." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Engadir á lista de reprodución" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "_Marcar como favorita" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Desbotar esta pista" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Marcadores" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importar ficheiro de servidores..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Reproducir _Radio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "As miñas radios" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Radios de outras persoas" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Radio de grupo..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Música etiquetada..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artistas semellantes a..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Introducir un URL..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "A miña biblioteca" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "A miña veciñanza" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "As miñas pistas favoritas" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "A miña mestura" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "A miña lista de reprodución" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "As miñas recomendacións" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "A miña música etiquetada..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Biblioteca..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Veciñanza..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Pistas favoritas..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mestura..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Lista de reprodución..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Recomendacións..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Accións" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Parar despois..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Descargar esta pista" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Marcadores" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Engadir marcador..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Xestionar marcadores..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Marcar este artista..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Marcar esta pista..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Marcar esta radio..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Axuda" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Escoller radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Biblioteca de %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Veciñanza de %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Pistas favoritas de %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "A mestura de %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Lista de reproducción de %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Recomendacións de %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Música etiquetada de %s" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Escreba calquera nome de persoa usuaria" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importar ficheiro de servidores" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Reproducir radio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Xente" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Iniciar a reprodución" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Parar a reprodución" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Saltar esta pista" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Marcar como favorita" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Desbotar esta pista" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Recomendar esta pista" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Editar as etiquetas desta pista" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Engadir esta pista á lista de reprodución" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artista:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Título:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Álbum:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Escoitando " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Parado" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Reproducindo..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Conectando..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Desconectado" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volume: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Non hai artistas" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Non hai pistas" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Sen álbum" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Reproducir" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Parar" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Saltar" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Favorita" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Desbotar" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Amosar ventá principal" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Pechar Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Parado" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Reproducindo agora: \n" " %s \n" " por %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " por %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " por %s\n" " do %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Usar proxy HTTP:\n" #~ "Habilitar isto para usar un proxy HTTP.\n" #~ "\n" #~ "* Enderezo do Proxy:\n" #~ "usuario:contrasinal@nomededominio:porto\n" #~ "Só se precisa o nome de dominio (pode ser un enderezo IP)." vagalume-0.8.6/po/ca.po0000644000000000000000000006504312233552617011574 00000000000000# Catalan translations for Vagalume # Traduccions al català del paquet «vagalume». # Copyright (C) 2011 Igalia S.L. # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # # Carles Muñoz Gorriz , 2011. # msgid "" msgstr "" "Project-Id-Version: vagalume\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:38+0200\n" "Last-Translator: Carles Muñoz Gorriz \n" "Language-Team: Catalan\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-Language: Catalan\n" "X-Poedit-SourceCharset: utf-8\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Client de Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Client de Last.fm Vagalume" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "" "S'ha produït un error al inicialitzar el gestor de la connexió a internet" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "S'ha importat la informació de servidors" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "No hi ha informació de servidors en el fitxer" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "No s'ha pogut registrar a %s\n" "Comproveu el nom d'usuari i contrasenya" #: ../src/controller.c:549 msgid "Network connection error" msgstr "S'ha produït un error en la connexió de xarxa" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Heu d'introduir el vostre nom\n" "d'usuari i contrasenya per\n" "poder emprar aquest programa." #: ../src/controller.c:717 msgid "No more content to play" msgstr "No hi ha més contingut per reproduir" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "S'ha descarregat %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "S'ha produït un error al descarregar %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "La peça ja s'està descarregant" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Voleu descarregar aquesta peça?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "El fitxer ja existeix. Voleu sobreescriure'l?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Descarregant %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "S'ha afegit l'artista als preferits" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "S'ha afegit la peça als preferits" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "S'ha afegit l'emissora actual als preferits" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "S'ha afegit el preferit" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Veleu marcar la peça com que us agrada?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "S'esta marcant la peça com que us agrada" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Voleu excloure la peça?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "S'està excloent la peça" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "S'ha fixat l'etiqueta correctament" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "S'ha produït un error al etiquetar" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Heu d'introduir una llista d'etiquetes" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "S'ha enviar la recomanació" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "S'ha produït un error al enviar la recomanació" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Heu d'introduir un nom d'usuari\n" "i un missatge de recomanació." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "S'ha afegit la peça a la llista de reproducció" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "S'ha produït un error al afegir la peça a la llista de reproducció" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Voleu afegir aquest peça a la llista de reproducció?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "La URL de l'emissora no és\n" "vàlida. O no existeix l'emissora\n" "o només està disponible per\n" "subscriptors de Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Introduïu etiqueta" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Introduïu una de les vostres etiquetes" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Introduïu nom d'usuari" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Reprodueix aquesta emissora d'usuari" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Introduïu una etiqueta" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Introduïu grup" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Introduïu el nom del grup" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Introduïu una etiqueta global" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Introduïu l'artista" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Introduïu un nom d'artista" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Introduïu URL d'emissora" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Introduïu la URL de l'emissora de Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Les URLs d'emissores de Last.fm han de començar per lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "No s'ha pogut inicialitzar DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "No s'ha pogut llegit el fitxer amb la llista de servidors" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "No s'ha pogut inicialitzar el sistema d'àudio" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "No es pot iniciar el context OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Descàrrega completada" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Error al descarregar" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "_Tanca" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Descarregant «%s»" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Descarregant fitxer\n" "«%s»" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Canceŀla" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Ús:\n" " %s [-d descodificador] [-s destí] [url emissora lastfm]\n" "\n" " descodificador: Descodificador de GStreamer («%s» per defecte)\n" " destí: Destí «sink» de GStreamer de GStreamer («%s» per defecte)\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Massa opcions no reconegudes\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Ús: %s [url de l'emissora de lastfm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(emissora desconeguda)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Etiqueta d'emissora d'usuari" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Nom d'usuari:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Etiqueta:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "No hi ha ajuda disponible" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Contrasenya:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Servei:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Habilita «scrobbling»:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Mode de descoberta:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Compte" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Nom d'usuari i contrasenya:\n" "Del vostre compte.\n" "\n" "* Servei:Servei compatible amb Last.fm al que connectar-se.\n" "\b* «Scrobbling»:\n" "Mostra la música que escolteu en el vostre perfil.\n" "* Mode de descoberta:\n" "No reprodueixis músuca que ja heu escoltat. Cal que esteu subscrits a Last." "fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Empra un servidor intermediari" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Dreça del servidor intermediari:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Connexió" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Seleccioneu el directori de descàrrega" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Peces lliures, descàrrega automàtica" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Descàrrega" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "^Directori de descàrrega:\n" "On es descarreguen els fitxers «mp3». Noteu que només us podreu descarregar " "les cançons marcades com de lliure descàrrega en el servidor." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Plantilla de missatge MI:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Actualitza l'estat de Pidgin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Actualitza l'estat de Gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Actualitza l'estat de Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Actualitza l'estat de Telepathy:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Actualitza l'estat de MI" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume pot actualitzar el missatge d'estat del vostre client MI " "(missatgeria instantània) cada cop que comença una nova cançó. La plantilla " "pot emprar les següents claus:\n" "\n" "{artist}: Nom de l'artista.\n" "{title}: Títol de la cançó.\n" "{station}: Emissora de ràdio.\n" "{version}: Versió de Vagalume." #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "No mostris diàlegs de confirmació:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* No mostris diàlegs de confirmació:\n" "No demanis confirmació quan una peça us agrada o l'excloeu." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Mostra notificacions de reproducció:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Mostra notificacions de reproducció:\n" "Mostra una caixa emergent de notificació cada cop que \n" "comenci una cançó nova.\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Tanca a la safata del sistema:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Tanca a la safata del sistema:\n" "Amaga la finestra de Vagalume quan es pitja el botó de tancar." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Altres" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Ajustaments d'usuari" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artista:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Peça:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Àlbum:" #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Envia una recomanació" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Recomaneu-lo" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Envia la recomanació a" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Missatge de recomanació" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "s'estan recuperant…" #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(cap)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Afegint etiquetes" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Etiqueteu-lo" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Introduïu una llista separada\n" "per comes d'etiquetes" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Les vostres etiquetes favorites" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Les seves etiquetes populars" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Nom d'usuari" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Contrasenya" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Servei" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Mode «scrobbling»" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Mode de descoberta" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Empra un servidor intermediari HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Adreça del servidor intermediari" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Directori de descàrregues" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Plantilla de missatges MI" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Deshabilita els diàlegs de confirmació" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d etiquetes" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Introduïu una llista separada per comes d'etiquetes" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Client de Last.fm i serveis compatibles" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Català" #: ../src/uimisc.c:173 msgid "German" msgstr "Alemany" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Castellà" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finès" #: ../src/uimisc.c:174 msgid "French" msgstr "Francès" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Gallec" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italià" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Letó" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polonès" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portuguès" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Rus" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Confirmació" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Afegeix preferit" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Edita preferit" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nom de preferit" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Direcció d'emissora de Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "El nom de preferit no és vàlid" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Seleccioneu el fitxer de servidors a immportar" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Atura automaticament" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Quan voleu aturar la reproducció" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minuts" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "No aturis" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Atura després d'aquesta peça" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Atura en" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Recomana a…" #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Etiquetes…" #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "Afegeix a la _llista de reproducció" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "M'_agrada aquesta peça" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Exclou aquesta peça" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Preferits" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importa fitxer de servidors…" #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Reprodueix _emissora" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Les meves emissores" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Unes altres emissores" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Emissora de grup…" #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Música etiquetada…" #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artista semblant a…" #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Introduïu una URL…" #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "La meva biblioteca" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Els meus veïns" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Les peces que m'agraden" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "La meva mescla" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "La meva llista de reproducció" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Les meves recomanacions" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "La meva música etiquetada…" #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Biblioteca…" #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Veïns…" #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Peces que us agraden…" #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mescla…" #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Llista de reproducció…" #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Recomanacions…" #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Accions" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Para en…" #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Descarrega aquesta peça" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Preferits" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Afegeix preferit…" #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Gestiona els preferits…" #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Afegeix l'artista com preferit…" #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Afegeix la peça com preferida…" #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Afegeix l'emissora com preferida…" #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "A_juda" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Seleccioneu emissora" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Biblioteca de %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Veïns de %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Peces que agraden a %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Mescla de %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Llista de reproducció de %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Recomanacions de %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Música de %s etiquetada…" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Introduïu un nom d'usuari" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importa el fitxer de servidors" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Reprodueix emissora" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Gent" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Comença la reproducció" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Atura la reproducció" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Salta aquesta peça" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Marca'l com que m'agrada" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Exclou aquesta peça" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Recomana aquesta peça" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Edita les etiquetes d'aquesta peça" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Afegeix aquesta peça a la llista de reproducció" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artista:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Títol:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Àlbum:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Escoltant " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Aturat" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "S'està reproduint…" #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "S'està connectant…" #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Desconnectat" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volum: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Sense artista" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Sense peça" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Sense àlbum" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Reprodueix" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Para" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Salta" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "M'agrada" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Exclou-lo" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Mostra la finestra principal" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Tanca Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr " Parat" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Reproduint: \n" " %s \n" " per %s" #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " per %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " per %s\n" " de %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Empreu un servidor intermediari HTTP:\n" #~ "Habiliteu-lo per emprar un servidor intermediari HTTP.\n" #~ "\n" #~ "* Adreça del servidor intermediari:\n" #~ "usuari:contrasenya@servidor:port\n" #~ "Només el servidor, que pot ser una adreça IP, és obligatori." vagalume-0.8.6/po/fr.po0000644000000000000000000006572512233552617011627 00000000000000# translation of fr.po to # fr.po - French translation file # Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # # Julien Duponchelle , 2008, 2009, 2010 # Jean-Alexandre Angles d'Auriac , 2009. msgid "" msgstr "" "Project-Id-Version: fr\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:39+0200\n" "Last-Translator: Julien Duponchelle \n" "Language-Team: \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: French\n" "X-Poedit-Country: FRANCE\n" "X-Generator: KBabel 1.11.4\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Client pour Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume un client pour Last.fm" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Erreur pendant l'initialisation de la connexion à internet" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Les informations du serveur ont bien été importées" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Pas d'information sur le serveur dans ce fichier" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Impossible de se connecter à %s\n" "Vérifiez votre nom d'utilisateur et votre mot de passe" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Erreur de connexion au réseau" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Vous devez entrer votre nom d'utilisateur\n" "et votre mot de passe pour pouvoir\n" "utiliser ce programme." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Plus de contenu à lire" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Télécharge %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Erreur pendant le téléchargement de %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "La piste a déjà été téléchargée" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Télécharger cette piste?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Le fichier existe déjà. L'écraser?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Télécharge %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "L'artiste a été ajouté aux favoris" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Piste ajoutée dans les favoris" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "La radio a été ajoutée aux favoris" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Favori ajouté" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Voulez-vous vraiment marquer cette piste comme un coup de cœur?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Piste marquée comme coup de cœur" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Voulez-vous vraiment bannir cette piste?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Bannir la piste" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Tag appliqué correctement" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Erreur pendant l'application du tag" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Vous devez taper une liste de tags" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Recommandation envoyée" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Erreur pendant l'envoi de la recommandation" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Vous devez taper un nom d'utilisateur\n" "et un message de recommandation." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Piste ajoutée à la liste de lecture" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Erreur pendant l'ajout de la piste à la liste de lecture" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Voulez vous vraiment ajouter cette piste à votre liste de lecture ?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Cette radio n'est pas disponible\n" "dans votre pays." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "Url de la radio invalide.\n" "Soit cette radio n'existe pas\n" "soit elle n'est accessible qu'aux\n" "adhérents de Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Entrez un tag" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Entrez un de vos tags" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Entrez un nom d'utilisateur" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Écouter la radio de cet utilisateur" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Entrez un tag" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Entrez le groupe" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Entrez le nom du groupe" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Entrez un tag global" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Entrez un artiste" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Entrez le nom de l'artiste" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Entrez l'url de la radio" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Entrez l'URL de la radio Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Les URL de radio Last.fm doivent commencer par lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Impossible d'initialiser le contexte DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "" "Erreur pendant la lecture du fichier contenant les informations sur le " "serveur" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Erreur d'initialisation du système audio" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Impossible d'initialiser le contexte OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Téléchargement fini !" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Erreur pendant le téléchargement !" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "_Fermer" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Télécharge %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Téléchargement du fichier\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Annuler" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Usage: %s [-d décodeur] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer décodeur (par défaut: '%s')\n" " sink: GStreamer sink (par défaut: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Trop d'options non reconnues\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Usage: %s [url de la radio lastfm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(radio inconnue)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Radio utilisant les tags de l'utilisateur" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Utilisateur : " #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Tag:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Aucune aide disponible" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Mot de passe : " #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Service" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Activer l'envoi des chansons écoutées : " #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Mode découverte : " #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Compte" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Nom d'utilisateur et mot de passe:\n" "De votre compte.\n" "\n" "* Service:\n" "Service compatible avec Last.fm auquel vous voulez vous connecter.\n" "\n" "* Scrobbling:\n" "Afficher la musique que vous écoutez sur votre profil Last.fm.\n" "\n" "* Mode découverte:\n" "Ne pas jouer de la musique que vous avez déjà écoutée. Requiert un " "abonnement à Last.fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Utiliser un proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Adresse du proxy" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Flux bas débit" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Utiliser un proxy:\n" "Activer cette option pour utiliser un proxy.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Utiliser le proxy du système" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Utiliser un le proxy du système:\n" "Utiliser la configuration du proxy du système.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Connexion" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Adresse du proxy:\n" "[protocole://]utilisateur:mot de passe@hôte:port\n" "Seul le nom de l'hôte (cela peut-être une adresse IP) est requis.\n" "Les protocole supportés sont: http, socks4, socks5.\n" "\n" "* Flux bas débit:\n" "Essayer cette option pour économiser de la bande passante." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Sélectionnez un répertoire de téléchargement" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Télécharger automatiquement les pistes gratuites" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Téléchargement" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Répertoire de téléchargement:\n" "Où seront téléchargés les fichiers mp3. Notez que vous ne pouvez télécharger " "que les pistes marquées comme librement téléchargeable par le serveur." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "" "Modèle de message pour\n" "le message d'état de la messagerie instantanée :" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Mettre à jour le message d'état de Pidgin : " #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Mettre à jour le message d'état de Gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Mettre à jour le message d'état de Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Mettre à jour le message d'état de Telepathy " #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Mettre à jour le message d'état de la messagerie instantané" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume peut mettre à jour le message d'état de votre client de messagerie " "instantanée à chaque fois qu'une nouvelle chanson démarre. Le modèle peut " "contenir les mots-clef suivant:\n" "\n" "{artist}: Nom de l'artiste\n" "{title}: Titre de la chanson\n" "{radio}: Station de radio\n" "{version}: Version de Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Désactiver les fenêtres de confirmation :" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Désactive les fenêtre de confirmations :\n" "Ne demande plus de confirmation lorsque l'on marque une piste comme bannie " "ou coup de cœur." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Voir les notifications de lecture :" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Voir les notifications de lecture:\n" "Affiche une fenêtre de notification à chaque fois qu'une nouvelle piste " "démarre.\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Réduire dans la zone de notification à la fermeture" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Réduit dans la zone de notification à la fermeture : Réduit la fenêtre de " "Vagulume dans la zone de notification lorsque l'on clique sur le bouton de " "fermeture." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Divers" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Réglages utilisateur" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artiste : " #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Piste : " #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Album : " #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Envoyer une recommandation" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Recommander cette piste" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Envoyer une recommandation à" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Message de recommandation" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "récupère..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(aucun)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Tag" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Taguer cette piste" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Entrez une liste de tags\n" "séparés par des virgules" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Vos tags favoris" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Les tags populaires pour" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Nom d'utilisateur" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Mot de passe" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Service" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Activer l'envoi des chansons écoutées" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Mode découverte" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Utiliser un proxy HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Adresse du proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Sélectionnez un répertoire de téléchargement" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Modèle de message pour le message d'état de la messagerie instantanée" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Désactiver les fenêtres de confirmation" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d tags" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Entrez une liste de tags séparés par des virgules" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Un client pour Last.fm et les services compatibles" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Catalan" #: ../src/uimisc.c:173 msgid "German" msgstr "Allemand" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Espagnol" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finnois" #: ../src/uimisc.c:174 msgid "French" msgstr "Français" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galicien" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italien" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Letton" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polonais" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugais" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Russe" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Confirmation" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Ajouter aux favoris" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Modifier le favori" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nom du favori" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Adresse de la radio Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Le nom du favori est invalide" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "_Importer un fichier serveur..." #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Arrêter automatiquement" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Quand voulez vous arrêter la lecture?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minutes" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Ne pas arrêter" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Arrêter après cette piste" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Arrêter après" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Recommander à..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Tags..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Ajouter à la liste de lecture" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Marquer cette piste comme un _coup de cœur" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Bannir cette piste" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Favoris" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importer un fichier serveur..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Écouter une _Radio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Mes radios" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Autres radios" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Radio de groupe..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Musique taguée..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artistes similaire à..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Entrez l'url..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Ma bibliothèque" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Mes voisins" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Mes coups de cœur" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Ma radio Mix" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Ma liste de lecture" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Mes recommandations" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "La musique que j'ai tagué" #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Bibliothèque..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Voisins..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Pistes aimées..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mix..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Playlist..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Recommandation..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Actions" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Arrêter après..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Télécharger cette piste" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Favoris" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Ajouter un favoris..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Gérer les favoris..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Ajouter cet artiste dans les favoris..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Ajouter cette piste au favoris..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Ajouter cette radio au favoris..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Aide" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Sélectionner une radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "La bibliothèque de %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Les voisins de %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Les coups de cœur de %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Le mix de %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "La liste de lecture de %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Les recommandations de %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "La musique tagué par %s" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Entrez un nom d'utilisateur" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importer un fichier serveur" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Écouter une Radio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Personnes" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Commence la lecture" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Arrête la lecture" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Sauter cette piste" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Marquer comme coup de cœur" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Bannir cette piste" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Recommander cette piste" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Modifier les tags pour cette piste" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Ajouter cette piste à la liste de lecture" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artiste : \n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Titre : \n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Album : \n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "En écoute " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Stoppé" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Lecture..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Connection..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Déconnecté" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volume: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Pas d'artiste" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Pas de piste" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Pas d'album" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Lire" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Arrêter" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Sauter" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Coup de cœur" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Bannir" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Voir la fenêtre principale" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Fermer Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Stoppé" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" "En ce moment :\n" " %s \n" " by %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr "par %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" "par %s\n" "de %s" vagalume-0.8.6/po/it.po0000644000000000000000000006517412233552617011632 00000000000000# translation of it.po to Italian # Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # Andrea Grandi , 2008, 2009, 2010, 2011. # msgid "" msgstr "" "Project-Id-Version: it\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:40+0200\n" "Last-Translator: Andrea Grandi \n" "Language-Team: Italian <>\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Client Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume Client Last.fm" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Errore di inizializzazione del gestore di connessioni" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Informazioni sul server importate correttamente" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "" "Non è stata trovata alcuna informazione sul server nela file selezionato" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Impossibile effettuare il login su %s\n" "Verificare username e password" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Errore di connessione di rete" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Devi inserire la tua username\n" " e password di Last.fm per poter \n" "utilizzare questo programma." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Non ci sono piu' contenuti da suonare" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Sto scaricando %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Errore durante il donwload di %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Scaricamento della traccia in corso" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Scarica questa traccia?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Il file esiste. Sovrascrivere?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Sto scaricando %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Artista aggiunto ai segnalibri" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Traccia aggiunta ai segnalibri" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Radio aggiunta ai segnalibri" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Segnalibro aggiunto" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "" "Sicuro di voler contrassegnare\n" " questa traccia come preferita?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Traccia contrassegnata come preferita" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Vuoi realmente bannare questa traccia?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Traccia bannata" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Etichette impostate correttamente" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Errore nell'assegnazione dell'etichetta" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Devi indicare una lista di etichette" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Raccomandazione inviata" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Errore nell'invio della raccomandazione" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Devi specificare uno username\n" "ed un messaggio di raccomandazione" #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Traccia aggiunta alla playlist" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Errore nell'aggiungere la traccia alla playlist" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Confermi l'aggiunta della traccia alla playlist?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Questa radio non è disponibile\n" "nel tuo paese." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "URL della radio non valido.\n" "Questo indirizzo non esiste\n" "oppure è disponibile solo agli\n" "utenti Last.fm a pagamento" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Inserire l'etichetta" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Inserisci una delle tue etichette" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Inserire lo username" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Suona la radio di questo utente" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Inserire un'etichetta" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Inserire il gruppo" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Inserire il nome del gruppo" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Inserire un' etichetta globale" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Inserire l'artista" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Inserire il nome dell'artista" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Inserire l'indirizzo della radio" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Inserire l'indirizzo della radio Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Gli indirizzi radio di Last.fm devono iniziare con lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Impossibile inizializzare la libreria DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Errore durante la lettura del file con la lista dei server" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Errore di inizializzazione del sistema audio" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Impossibile inizializzare la libreria OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Download completato!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Errore di download!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "C_hiudi" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Sto scaricando %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Sto scaricando il file\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Annulla" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Utilizzo:\n" " %s [-d decoder] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Troppe opzioni non riconosciute\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Utilizzo: %s [url della radio lastfm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(radio sconosciuta)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Radio dei tag utente" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Username:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Etichetta:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Help non disponibile" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Password:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Servizio:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Abilita lo scrobbling" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Modalità discovery:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Account" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Username e password:\n" "del tuo account Last.fm.\n" "\n" "* Service:\n" "Servizio Last.fm compatibili al quale connettersi.\n" "\n" "* Scrobbling:\n" "Mostra la musica che stai ascoltando sul tuo profilo Last.fm.\n" "\n" "* Discovery mode:\n" "Non suona le canzoni che hai già ascoltato. Richiede una sottoscrizione Last." "fm a pagamento." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Usa un proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Indirizzo del Proxy" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Stream a bassa qualità" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Usa un proxy:\n" "Abilita per utilizzare un proxy.\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Usa il proxy di sistema" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Usa il proxy di sistema:\n" "Usa la configurazione di sistema per il proxy.\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Connessione" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Indirizzo del proxy:\n" "[protocollo://]utente:password@nomehost:porta\n" "Solo il nome dell'host è obbligatorio.\n" "Protocolli supportati: http, socks4, socks5.\n" "\n" "* Stream a bassa qualità:\n" "Prova ad effettuare uno streaming dal server\n" "a bassa qualità, per salvare la banda occupata." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Selezione la directory per il download" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Scarica automaticamente le tracce gratuite" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Download" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Directory per il download:\n" "Dove scaricare i file mp3. Nota che puoi scaricare solo le canzoni " "contrassegnate come liberamente scaricabili da Last.fm." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Formato del messaggio di status" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Aggiorna lo status di Pidgin" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Aggiorna lo status di Gajim" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Aggiorna lo status di Gossip" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Aggiorna lo status di Telepathy" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Aggiorna lo status dell'IM" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume può aggiornare il messaggio di stato del tuo client IM ogni volta " "che una nuova canzone inizia. Il template può contenere le seguenti parole " "chiave:\n" "\n" "{artist}: Nome dell'artista\n" "{title}: Titolo della canzone\n" "{station}: Stazione radio\n" "{version}: La versione di Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Disabilita le finestre di conferma:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Disabilita le finestra di conferma:
Non chiede conferma quando si " "contrassegna una canzone come preferita o bannata." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Mostra le notifiche durante la riproduzione:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Mostra le notifiche durante la riproduzione:\n" "Mostra una finestra di pop up ogni volta che inizia una nuova canzone.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Riduci nella systray" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Riduci nella systray:\n" "Nasconde la finestra di Vagalume quando viene premuto il bottone di chiusura." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Generali" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Impostazioni utente" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artista:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Traccia:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Album:" #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Invia una raccomandazione" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Raccomanda questa" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Invia raccomandazione a" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Messaggio di raccomandazione" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "recupero..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(nessuno)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Etichettamento" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Etichetta questo" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Inserire una lista di tag\n" "separati dalla virgola" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Le tue etichette preferite" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Etichette popolari per questa" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Username" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Password" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Servizio" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Abilita lo scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Modalità discovery" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Usa un proxy HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Indirizzo del Proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Directory per il download" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Formato del messaggio di status" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Disabilita le finestre di conferma" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d tag" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Inserire una lista di tag separati dalla virgola" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Client per Last.fm e servizi compatibili" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Catalano" #: ../src/uimisc.c:173 msgid "German" msgstr "Tedesco" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Spagnolo" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finlandese" #: ../src/uimisc.c:174 msgid "French" msgstr "Francese" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galiziano" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italiano" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Lettone" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polacco" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portoghese" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Russo" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Conferma" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Aggiungi ai segnalibri" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Modifica segnalibri" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nome segnalibro" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Indirizzo della radio Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Nome di segnalibro non valido" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Seleziona il file con il server da importare" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Ferma automaticamente" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Quando vuoi fermare la riproduzione?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minuti" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Non fermare" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Ferma dopo questa traccia" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Ferma dopo" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Raccomanda a..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Etichetta..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Aggiungi alla playlist" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "_Segna come preferita" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Banna questa traccia" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Segnalibri" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importa il file con i server..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Riproduci _Radio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Le mie radio" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Le radio degli altri" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Radio del gruppo..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Musica etichettata..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artisti simili a..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Inserire l'URL..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "La mia libreria" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "I miei vicini" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Le mie tracce preferite" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Il mio mix" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "La mia playlist" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Le mie raccomandazioni" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "La musica che ho etichettato" #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Libreria..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Vicini..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Tracce preferite..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mix..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Playlist..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Raccomandazioni..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Azioni" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Ferma dopo..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Scarica questa traccia" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Segnalibri" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Aggiungi ai segnalibri..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Gestione segnalibri..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Aggiungi questo artista ai segnalibri..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Aggiungi questa traccia ai segnalibri..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Aggiungi questa radio ai preferiti..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "A_iuto" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Seleziona radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Libreria di %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Vicini di %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Tracce preferite da %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Mix di %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Playlist di %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Raccomandazioni di %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Musica etichettata da %s" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Inserire uno username" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importa il file con i server" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Riproduci radio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Persone" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Avvia la riproduzione" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Ferma la riproduzione" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Salta questa traccia" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Contrassegna come preferita" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Banna questa traccia" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Raccomanda questa traccia" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Modifica i tag per questa traccia" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Aggiungi questa traccia alla playlist" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artista:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Titolo:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Album:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "In ascolto " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Fermato" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "In riproduzione..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Connessione in corso..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Disconnesso" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volume: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Nessun artista" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Nessuna traccia" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Nessun album" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Avvia" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Ferma" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Salta" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Preferisci" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Banna" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Mostra la finestra principale" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Chiudi Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Fermato" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Sto suonando: \n" " %s \n" " by %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " di %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " di %s\n" " da %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Usa un proxy HTTP:\n" #~ "Abilita questo per usare un proxy HTTP.\n" #~ "\n" #~ "* Indirizzo del proxy:\n" #~ "user:password@hostname:port\n" #~ "Soltanto l'hostname (può essere un indirizzo IP) è obbligatorio." vagalume-0.8.6/po/ru.po0000644000000000000000000007426412233552617011644 00000000000000# Russian translation for Vagalume. # # Vagalume is Copyright (C) 2007-2010 Igalia, S.L. # # This file is distributed under the same license as the Vagalume package. msgid "" msgstr "" "Project-Id-Version: Vagalume 0.8.3-1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:41+0200\n" "Last-Translator: Sergei Ivanov , Vitaly Petrov \n" "Language-Team: SUAI Maemo Team, St. Petersburg, Russia\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Last.fm клиент" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume Last.fm клиент" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Ошибка инициализации менеджера подключений к интернету" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Параметры сервера импортированы" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Не найдено параметров сервера в данном файле" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Невозможно подключиться к %s\n" "Проверьте имя пользователя и пароль" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Ошибка соединения" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Для начала работы программы необходимо ввести\n" " ваше имя пользователя и пароль Last.fm." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Закончились треки для воспроизведения" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Загружено %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Ошибка при загрузке %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Трек уже загружается" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Загрузить данный трек?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Файл уже существует. Перезаписать?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Загружается %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Исполнитель добавлен в закладки" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Трек добавлен в закладки" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Текущая станция добавлена в закладки" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Закладка добавлена" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Добавить трек в \"Мои любимые треки\"?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Добавление трека в \"Мои любимые треки\"" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Отметить данный трек как запрещенный?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Отправление трека в \"Запрещенные\"" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Теги установлены корректно" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Ошибка тегирования" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Необходимо ввести список тегов" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Отзыв отправлен" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Ошибка отправки отзыва" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Необходимо ввести имя пользователя\n" "и отзыв." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Трек добавлен в список воспроизведения" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Ошибка добавления трека в список воспроизведения" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Добавить данный трек в список воспроизведения?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "Неверный URL радио.\n" "Или данное радио не существует,\n" "или оно доступно только \n" "подписчикам Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Ввод" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Введите один из ваших тегов" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Введите имя пользователя" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Воспроизвести радио данного пользователя" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Ввести тег" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Ввод" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Введите имя группы" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Введите глобальный тег" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Ввод" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Введите имя исполнителя" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Ввод" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Введите URL радио Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "URL для Last.fm должен начинаться с lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Не удалось инициализировать шину DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Ошибка при чтении файла со списком серверов" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Ошибка инициализации аудиосистемы" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Ошибка инициализации OSSO окружения" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Загрузка завершена!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Ошибка загрузки!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "_Закрыть" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Загрузка %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Загрузка файла\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Отмена" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Использование: %s [-d Decoder] [-s Sink] [Last.fm Radio-URL]\n" "\n" " Декодер: GStreamer decoder (по умолчанию: '%s')\n" " Источник: GStreamer sink (по умолчанию: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Слишком много нераспозранных опций\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Использование: %s [URL радио Last.fm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(неизвестное радио)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Пользовательские теги радиостанции" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Имя пользователя:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Тег:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Помощь недоступна" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Пароль" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Ресурс:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Включить scrobbling:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Режим обнаружения:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Учетная запись" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Имя пользователя и пароль:\n" "Вашей учетной записи Last.fm.\n" "\n" "* Ресурс:\n" "Last.fm-совмесимый ресурс для подключения\n" "* Scrobbling:\n" "Показать музыку, которую Вы слушали на Last.fm.\n" "\n" "* Режим обнаружения:\n" "Не воспроизводить композиции, которые Вы уже слушали. \n" "Для этого требуется подписка на Last.fm" #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Использовать прокси-сервер" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Адрес прокси-сервера:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Соединение" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Выберите директорию для загрузки" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Автоматически загружать бесплатные треки" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Загрузить" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Директория для загрузки:\n" "Место для загрузки mp3 файлов. Вы можете загружать только композиции, " "доступные для свободной загрузки на Last.fm." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Шаблон IM-сообщения:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Обновлять статус Pidgin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Обновлять статус Gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Обновлять статус Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Обновлять статус Telepathy:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Обновление статусов IM клиентов" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume может обновлять статус вашего IM клиента автоматически со стартом " "новой композиции. Шаблон статуса может содержать следующие поля:\n" "\n" "{artist}: Имя исполнителя\n" "{title}: Название композиции\n" "{station}: Радиостанция\n" "{version}: Версия Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Отключить диалоги подтверждения:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Отключить диалоги подтверждения:\n" "Не запрашивать подтверждения при перемещении трека в \"Мои любимые треки\" " "или запрещении трека." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Показывать уведомления о воспроизведении:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Показывать уведомления о воспроизведении:\n" "Показывать окно уведомления при начале воспроизведения новой композиции.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Сворачивать в системный трей:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Close to systray:\n" "Скрывать окно Vagalume при нажатии кнопки \\\"Закрыть\\\"." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Дополнительно" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Параметры" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Исполнитель: " #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Трек: " #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Альбом: " #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Отправить отзыв" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Рекомендовать" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Послать отзыв..." #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Отзыв" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "извлечение..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(нет)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Тегирование" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Добавить тег" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Введите список тегов,\n" "разделенных запятыми" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Избранные теги" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Популярные теги" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Имя пользователя" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Пароль" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Ресурс" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Включить scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Режим обнаружени" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Использовать HTTP прокси-сервер" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Адрес прокси-сервера" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Директория для загрузки" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Шаблон IM-сообщения" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Отключить диалоги подтверждения" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d тегов" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Введите список тегов, разделенных запятыми" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Клиент для радио Last.fm и совместимых сервисов" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "" #: ../src/uimisc.c:173 msgid "German" msgstr "Немецкий" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Испанский" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Финский" #: ../src/uimisc.c:174 msgid "French" msgstr "Французский" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Галисийский" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Итальянский" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Латвийский" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Польский" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Португальский" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Русский" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Подтверждение" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Добавление" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Редактировать закладку" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Название закладки" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Адрес радио Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Неверное имя закладки" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Выберите файл серверов для импорта" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Останавливать автоматически" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Когда Вы хотите остановить воспроизведение?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "минут" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Не останавливать" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Остановить после этого трека" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Остановить после" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Рекомендовать..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Теги..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Добавить в список воспроизведения" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "_Поместить в \"Мои любимые треки\"" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Запретить данный трек" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Закладки" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Импортировать список серверов..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Слушать _Радио" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Мои радиостанции" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Другие радиостанции" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Радиостанции группы..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Музыка с тегом..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Исполнитель схож с..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Введите URL..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Моя фонотека" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Мои соседи" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Мои любимые треки" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Мой список" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Мои списки воспроизведения" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Мои отзывы" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Моя музыка с тегом..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Фонотека..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Соседи..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Мои любимые треки..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Микс..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Список произведения..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Отзывы..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Действия" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Остановить после..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Загрузить данный трек" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Закладки" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Добавить закладку..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Управление закладками" #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Добавить данного исполнителя в закладки..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Добавить данный трек в закладки..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Добавить данную радиостанцию в закладки..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Помощь" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Выберите радио" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Фонотека %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Соседи %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "любимые треки %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Список %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Списки воспроизведения %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Рекомендации %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Музыка с тегом, принадлежащая %s" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Введите имя пользователя" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Импортировать список серверов" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Слушать радио" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Люди" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Начать воспроизведение" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Остановить воспроизведение" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Пропустить данный трек" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Поместить в \"Мои любимые треки\"" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Запретить данный трек" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Рекомендовать данный трек" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Изменить теги для данного трека" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Добавить данный трек в список воспроизведения" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Исполнитель:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Название:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Альбом:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Прослушивание: " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Остановлено" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Воспроизведение..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Соединение..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Отключено" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Громкость: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Нет исполнителей" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Нет треков" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Нет альбомов" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Играть" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Остановить" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Пропустить" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Добавить в \"Мои любимые треки\"" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Запретить" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Показать главное окно" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Закрыть Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr " Остановлено " #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Сейчас воспроизводится: \n" " %s \n" " в исполнении %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " в исполнении %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " в исполнении %s\n" " из %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Использовать HTTP прокси-сервер:\n" #~ "Включите опцию для использования HTTP прокси-сервера\n" #~ "* Адрес прокси-сервера:\n" #~ "имя пользователя:пароль@hostname:порт\n" #~ "Требуется имя хоста (или IP адрес)." vagalume-0.8.6/po/pl.po0000644000000000000000000006261412233552617011625 00000000000000# translation of Vagalume. # Copyright (C) 2009 Igalia, S.L. # This file is distributed under the same license as the Vagalume package. # Dawid Pakuła (ZuLuS) , 2009, 2010 # msgid "" msgstr "" "Project-Id-Version: Vagalume 0.71\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:40+0200\n" "Last-Translator: Dawid Pakuła \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-SourceCharset: utf-8\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Klient Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume Klient Last.fm" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Błąd inicjacji menadżera połączeń sieciowych" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Informacje o serwerze zostało zaimportowane poprawnie" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Nie znaleziono informacji o serwerze w tym pliku" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Nie można zalogować do %s\n" "Sprawdź login i hasło" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Błąd połączenia z internetem" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Musisz ustawić\n" "login i hasło\n" "aby móc używać programu." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Koniec listy odtwarzania" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Pobrano %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Błąd pobierania %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Utwór został pobrany" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Czy chcesz pobrać ten utwór?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Plik istnieje. Nadpisać?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Pobieranie %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Wykonawca został dodany do zakładek" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Utwór został dodany do zakładek" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Aktualne radio zostało dodane do zakładek" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Zakładka dodana" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Czy na pewno chce dodać do ulubionych?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Dodaj do ulubionych" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Czy na pewno chcesz zablokować ten utwór?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Blokowanie utworu" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Tagi ustawione pomyślnie" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Błąd tagowania" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Musisz wstawić listę tagów" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Rekomendację wysłano" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Błąd wysyłania rekomendacji" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "Podaj nazwę użytkownika i wiadomość." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Utwór dodany do listy odtwarzania" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Błąd dodawania do listy odtwarzania" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Czy na pewno chcesz dodać ten utwór do listy odtwarzania?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "Niepoprawny adres radia.\n" "Prawdopodobnie radio nie istnieje\n" "lub jest dostępne tylko dla\n" "subskrybentów Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Podaj tag" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Podaj jeden z Twoich tagów" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Podaj nazwę użytkownika" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Odtwarzaj radio użytkownika" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Wpisz tag" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Podaj grupę" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Podaj nazwę grupy" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Podaj globalny tag" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Podaj wykonawcę" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Podaj nazwę wykonawcy" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Podaj adres radia" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Podaj adres radia Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Radio Last.fm musi zaczynać się od lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Nie można uruchomić DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Błąd przetwarzania listy serwerów" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Nie można uruchomić systemu dżwięku" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Nie można uruchomić OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Pobieranie ukończone!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Błąd pobierania!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "Z_amknij" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Pobieranie %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Pobieranie pliku\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Wyjdź" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Użycie:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Zbyt wiele nierozpoznanych opcji\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Użycie %s [adres radia lastfm]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(nieznane radio)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Radio tagów użytkownika" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Login:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Tag:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Brak dostępnej pomocy" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Hasło:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Usługa:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Włącz scrobbling:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Tryb odkrywcy:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Konto" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Login i hasło:\n" "Do Twojego konta.\n" "\n" "* Scrobbling:\n" "Wyświetlanie muzyki której słuchasz w Twoim profilu.\n" "\n" "* Tryb odkrywcy:\n" "Nie odtwarza muzyki którą już słuchałeś. Wymagana subskrypcja w Last.fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Użyj proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Adres proxy:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Niska jakość strumienia" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Uzyj proxy:\n" "Włącz aby użyć proxy.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Użyj proxy systemowego" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Uzyj proxy systemowego:\n" "Configuracja proxy systemowego.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Połączenie" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Adres proxy:\n" "[protokół://]użytkownik:hasło@host:port\n" "Tylko nazwa hosta (może być IP) jest wymagana.\n" "Wspierane protokoły: http, socks4, socks5.\n" "\n" "* Niska jakość strumienia:\n" "Spróbuj niskiej jakości strumienia z serwera\n" "aby oszczędzić transfer" #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Wybierz katalog do zapisu pobranych plików" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Automatycznie pobieraj darmowe utwory" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Pobieranie" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Katalog zapisu:\n" "Gdzie pobierać pliki mp3. Pamiętaj, że możesz pobierać tylko pliki oznaczone " "jako darmowe w Last.fm." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Szablon opisu" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Aktualizuj status Pidgin'a:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Aktualizuj status Gajim'a:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Aktualizuj staus Gossip'a:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Aktualizuj status Telepathy:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Status komunikatora" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume może aktualizować status Twojego komunikatora na początku każdego " "utworu. Szablon może używać następujące tagi:\n" "\n" "{artist}: Nazwa wykonawcy\n" "{title}: Tytuł utworu\n" "{station}: Stacja\n" "{version}: Wersja Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Wyłącz potwierdzanie:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Wyłącz potwierdzanie:\n" "Program nie pyta o potwierdzenie gdy chcesz dodać do ulubionych lub " "zablokować utwór." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Pokaż powiadomienia o odtwarzanych:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Pokaż powiadomienia o odtwarzanych:\n" "Wyświetla info po zmianie utworu w pop up'ach.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Zamykaj do ikony w tray'u:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Zamykaj do ikony w tray'u:\n" "Chowa okno Vagalume kiedy naciśniesz przycisk zamknij." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Pozostałe" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Ustawienia użytkownika" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Wykonawca:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Utwór:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Album: " #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Poleć" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Poleć utwór" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Poleć użytkownikowi" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Wiadomość" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "pobieranie..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(brak)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Tagowanie" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Otaguj" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "Podaj listę tagów oddzielonych przecinkami" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Twoje ulubione tagi" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Popularne tagi" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Login" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Hasło" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Usługa" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Włącz scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Tryb odkrywcy" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Użyj HTTP proxy" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Adres proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Katalog pobierania" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Szablon opisu w komunikatorze" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Wyłącz powiadamianie" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d tagi" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Podaj listę tagów oddzielonych przecinkami" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Klient Last.fm i kompatybilnych usług" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Kataloński" #: ../src/uimisc.c:173 msgid "German" msgstr "Niemiecki" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Hiszpański" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Fiński" #: ../src/uimisc.c:174 msgid "French" msgstr "Francuski" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galisyjski" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Włoski" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Łotewski" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polski" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugalski" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Rosyjski" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Potwierdzenie" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Dodaj zakładkę" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Edytuj zakładkę" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Nazwa zakładki" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Adres radia Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Niepoprawna nazwa zakładki" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Wybierz plik serwera do zaimportowania" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Zatrzymaj automatycznie" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Kiedy chcesz zatrzymać odtwarzanie?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minuty" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Nie zatrzymuj" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Zatrzymaj po tym utworze" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Zatrzymaj po" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Poleć..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Tagi:" #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Dodaj do listy odtwarzania" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Dodaj do _ulubionych" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "_Zablokuj" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Zakładki" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importuj pliki serwerów" #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Wybierz _radio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Moje radia" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Pozostałe radia" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Radio grupy..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Tag..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Wykonawca podobny do..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Podaj adres..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Moja biblioteka" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Moi sądziedzi" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Moje ulubione utwory" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Moje miksy" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Moja lista odtwarzania" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Moje propozycje" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Moje tagi..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Biblioteka..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Sąsiedzi..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Ulubione utwory..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mix..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Lista odtwarzania..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Utwory polecone..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Odtwarzanie" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Zatrzymaj po..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Pobierz utwór" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Zakładki" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Dodaj zakładkę..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Zarządzaj zakładkami..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Dodaj wykonawcę..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Dodaj utwór..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Zapisz to radio..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Pomoc" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Wybierz radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Biblioteka użytkownika %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Sąsiedzi %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Ulubione utwory %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "%s mix" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Lista odtwarzania %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Propozycje dla %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Tagi użytkownika %s" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Podaj login użytkownika" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importuj pliki serwerów" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Odtwórz radio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Ludzie" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Odtwarzaj" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Zatrzymaj" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Pomiń utwór" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Dodaj do ulubionych" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Zablokuj" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Poleć utwór" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Edytuj listę tagów dla utworu" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Dodaj do listy odtwarzania" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Wykonawca:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Tytuł:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Album:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Słuchasz " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Zatrzymano" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Odtwarzanie..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Łączenie..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Rozłaczony" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Głośność: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Brak wykonawcy" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Brak utworu" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Brak albumu" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Odtwórz" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Zatrzymaj" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Pomiń" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Ulubione" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Zablokuj" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Pokaż główne okno" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Zamknij Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Zatrzymano" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" "Teraz odtwarza:\n" "%s \n" " by %s" #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr "przez %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" "przez %s\n" "z %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Użyj HTTP proxy:\n" #~ "Zaznacz aby uzyć HTTP proxy.\n" #~ "\n" #~ "* Adres proxy:\n" #~ "login:hasło@nazwaHosta:port\n" #~ "Wymagana tylko nazwa hosta (może być adres IP)." vagalume-0.8.6/po/lv.po0000644000000000000000000006551612233552617011637 00000000000000# translation of lv.po to Latvian # vagalume.pot - Master translation file # Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # Pēteris Caune , 2008, 2010, 2011. # msgid "" msgstr "" "Project-Id-Version: lv\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:40+0200\n" "Last-Translator: Pēteris Caune \n" "Language-Team: Latvian \n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Last.fm klients" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume Last.fm klients" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Kļūda inicializējot tīkla savienojumu pārvaldnieku" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Serveru informācija veiksmīgi nolasīta" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Šajā failā netika atrasta serveru informācija" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Neizdodas pieslēgties %s\n" "Pārbaudiet lietotājvārdu un paroli" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Tīkla savienojuma kļūda" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Nepieciešams norādīt\n" "lietotājvārdu un paroli lai varētu lietot\n" "šo programmu." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Nav vairāk ko spēlēt." #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Lejupielādēts %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Kļūda lejupielādējot %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Ieraksts jau tiek lejupielādēts" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Lejupielādēt šo ierakstu?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Fails eksistē. Pārrakstīt?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Lejupielādē %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Pievienots grāmatzīmēm" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Ieraksts pievienots grāmatzīmēm" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Pašreizējais radio pievienots grāmatzīmēm" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Grāmatzīme pievienota" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Tiešām atzīmēt ierakstu kā mīļu?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Atzīmē ierakstu kā mīļu" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Tiešām aizliegt šo ierakstu?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Aizliedz ierakstu" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Tagi uzstādīti korekti" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Kļūda uzstādot tagus" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Nepieciešams ievadīt tagu sarakstu" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Rekomendācija nosūtīta" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Kļūda sūtot rekomendāciju" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Nepieciešams norādīt lietotājvārdu\n" "un rekomendācijas ziņu." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Ieraksts pievienots repertuāram" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Kļūda pievienojot ierakstu repertuāram" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Tiešām pievienot šo ierakstu repertuāram?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "Nederīga radio adrese. Vai nu\n" "šī radio stacija neeksistē,\n" "vai arī tā ir pieejama tikai\n" "Last.fm abonentiem" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Ievadiet tagu" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Ievadiet kādu no saviem tagiem" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Ievadiet lietotājvārdu" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Spēlēt šī lietotāja radio" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Ievadiet tagu" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Ievadiet grupu" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Ievadiet grupas vārdu" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Ievadiet globālo tagu" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Ievadiet izpildītāju" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Ievadiet izpildītāja vārdu" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Ievadiet radio adresi" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Ievadiet Last.fm radio adresi" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Last.fm radio adresēm jāsākas ar lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Neizdevās inicializēt DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Kļūda lasot serveru saraksta failu" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Neizdevās inicializēt audio sistēmu" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Neizdevās inicializēt OSSO kontekstu" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Lejupielāde pabeigta!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Lejupielādes kļūda!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "A_izvērt" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Lejupielādē %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Lejupielādē failu\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Atcelt" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Lietošana: \n" " %s [-d decoder] [-s sink] [lastfm radio adrese]\n" "\n" " decoder: GStreamer dekoderis (noklusētais: '%s')\n" " sink: GStreamer mērķis (noklusētais: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Pārāk daudz neatpazītu parametru\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Lietošana: %s [lastfm radio adrese]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(nezināms radio)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Lietotāja iezīmes radio" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Lietotājvārds:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Pievienot iezīmi..." #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Palīdzība nav pieejama" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Parole:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Serviss:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Aktivizēt atskaņoto dziemu reģistrēšanu:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Atklājumu režīms:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Konts" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Lietotājvārds un parole:\n" "No jūsu konta.\n" "\n" "* Serviss:\n" "Ar Last.fm savietojams serviss.\n" "\n" "* Dziesmu reģistrēšana:\n" "Rādīt noklausītās dziesmas jūsu profilā.\n" "\n" "* Atklājumu režīms:\n" "Nespēlēt mūziku, kas jau ir dzirdēta. Nepieciešams Last.fm abonements." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Lietot starpniekserveri" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Starpniekservera adrese:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Zema bitu ātruma plūsma" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Lietot starpniekserveri:\n" "Aktivizējiet, lai lietot starpniekserveri.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Lietot sistēmā definēto starpniekserveri" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Lietot sistēmā definēto starpniekserveri:\n" "Lietot sistēmā definēto starpniekservera konfigurāciju.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Savienojums" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Starpniekservera adrese:\n" "[protokols://]lietotājs:parole@resursdators:ports\n" "Nepieciešams tikai resursdators (var būt IP adrese).\n" "Uzturētie protokoli: http, socks4, socks5.\n" "\n" "* Zema bitu ātruma plūsma:\n" "mēģināt izmantot zema bitu ātruma datu plūsmu lai taupītu joslas platumu." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Izvēlieties lejupielāžu mapi" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Automātiski lejupielādēt brīvos ierakstus" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Lejupielādēt" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Lejupielādes mape:\n" "Kur saglabāt mp3 failus. Ievērojiet, ka saglabāt var tikai tās dziesmas, " "kuras atzīmētas kā brīvi lejupielādējamas." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "IM ziņas sagatave:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Atjaunināt Pidgin statusu:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Atjaunināt Gajim statusu:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Atjaunināt Gossip statusu:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Atjaunināt Telepathy statusu:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Atjaunināt IM statusu" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume var atjaunināt statusa ziņu IM klientā katru reizi, kad sākas jauna " "dziesma. Sagatave var saturēt šādus atslēgvārdus:\n" "\n" "{artist}: Izpildītāja vārds\n" "{title}: Dziesmas nosaukums\n" "{station}: Radio stacija\n" "{version}: Vagalume versija" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Atslēgt apstiprinājuma dialogus:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Atslēgt apstiprinājuma dialogus:\n" "Nejautāt apstiprinājumu atzīmējot dziesmu kā mīļu vai to aizliedzot." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Rādīt atskaņošanas ziņas:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Rādīt atskaņošanas ziņas:\n" "Parāda darbvirsmā lodziņu katru reizi, kad sākas jauna dziesma.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Aizvērt uz sistēmas ikonu joslu:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Aizvērt uz sistēmas ikonu joslu:\n" "Paslēpj Vagalume logu, kad tiek nospiesta aizvēršanas poga." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Dažādi" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Lietotāja uzstādījumi" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Izpildītājs:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Ieraksts:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Albums :" #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Nosūtīt rekomendāciju" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Rekomendēt šo" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Nosūtīt rekomendāciju" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Rekomendācijas ziņa" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "saņem..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(nekas)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Tagi" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Pievienot šim tagu" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Ievadiet ar komatiem \n" "atdalītu sarakstu ar tagiem" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Jūsu iecienītākie tagi" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Populāri šī ieraksta tagi" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Lietotājvārds" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Parole" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Serviss" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Aktivizēt atskaņoto dziemu reģistrēšanu" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Atklājumu režīms" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Lietot HTTP starpniekserveri" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Starpniekservera adrese" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Lejupielāžu mape" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "IM ziņas sagatave" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Atslēgt apstiprinājuma dialogus" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d tagi" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Ievadiet ar komatiem atdalītu sarakstu ar tagiem" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Last.fm un savietojamu servisu klients" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Katalāņu" #: ../src/uimisc.c:173 msgid "German" msgstr "Vācu" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Spāņu" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Somu" #: ../src/uimisc.c:174 msgid "French" msgstr "Franču" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galisiešu" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Itāļu" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Latviešu" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Poļu" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugāļu" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Krievu" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Apstiprinājums" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Pievienot grāmatzīmi" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Labot grāmatzīmi" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Grāmatzīmes nosaukums" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Last.fm radio adrese" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Nederīgs grāmatzīmes nosaukums" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Izvēlieties serveru failu importēšanai" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Apturēt atskaņošanu automātiski" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Kad vēlaties apturēt atskaņošanu?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minūtes" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Neapturēt" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Apturēt atskaņošanu pēc šī ieraksta" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Apturēt pēc" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Rekomendēt..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Iezīmes..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "_Pievienot repertuāram" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "_Atzīmēt šo ierakstu kā mīļu" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "Ai_zliegt šo ierakstu" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Grāmatzīmes" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importēt serveru failu..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Spēlēt _radio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Mani radio" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Citu radio" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Grupu radio..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Mūzika ar tagiem..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Izpildītājam līdzīga mūzika..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Ievadīt adresi..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Mana kolekcija" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Mani kaimiņi" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Mani iemīļotie ieraksti" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Mans mikss" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Mans repertuārs" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Manas rekomendācijas" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Mana mūzika ar tagiem..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Kolekcija..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Kaimiņi..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Iemīļotie ieraksti..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mikss..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Repertuārs..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Rekomendācijas..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Darbības" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Apturēt pēc ..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Lejupielādēt šo ierakstu" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Grāmatzīmes" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Pievienot grāmatzīmi..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Pārvaldīt grāmatzīmes..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Pievienot šo izpildītāju grāmatzīmēm..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Pievienot šo ierakstu grāmatzīmēm..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Pievienot šo radio grāmatzīmēm..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Palīdzība" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Izvēlieties radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "%s kolekcija" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "%s kaimiņi" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "%s iemīļotie ieraksti" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "%s mikss" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "%s repertuārs" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "%s rekomendācijas" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "%s mūzika ar tagiem..." #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Ievadiet lietotājvārdu" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importēt serveru failu" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Spēlēt radio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Lietotāji" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Sākt spēlēt" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Apturēt" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Izlaist šo ierakstu" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Atzīmēt kā mīļu" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Aizliegt šo ierakstu" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Rekomendēt šo ierakstu" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Labot tagus šim ierakstam" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Pievienot šo ierakstu repertuāram" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Izpildītājs:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Nosaukums:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Albums:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Skan " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Apturēts" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Spēlē..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Pieslēdzas..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Atvienots" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Skaļums: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Nav izpildītāja" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Nav ieraksta" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Nav albuma" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Atskaņot" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Apturēt" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Izlaist" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Mīļākā dziesma" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Aizliegt" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Parādīt galveno logu" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Aizvērt Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Apturēts" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Šobrīd spēlē: \n" " %s \n" " no %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " no %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " no %s\n" " no %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Lietot HTTP starpniekserveri:\n" #~ "Aktivizējiet, lai lietotu HTTP starpniekserveri.\n" #~ "\n" #~ "* Starpniekservera adrese:\n" #~ "lietotājvārds:parole@adrese:ports\n" #~ "Noteikti nepieciešama tikai adrese (var būt IP adrese)." #~ msgid "Stop after ..." #~ msgstr "Apturēt pēc ..." #~ msgid "Invalid radio URL" #~ msgstr "Nederīga radio adrese" #~ msgid "A Last.fm client for Gnome and Maemo" #~ msgstr "Last.fm klients Gnome un Maemo vidēm" #~ msgid "Settings..." #~ msgstr "Iestatījumi..." #~ msgid "Quit" #~ msgstr "Iziet" #~ msgid "About..." #~ msgstr "Par..." vagalume-0.8.6/po/fi.po0000644000000000000000000006415612233552617011613 00000000000000# fi.po - Finnish translation file # Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # Janne Mäkinen , 2008, 2009, 2010 # Mika Tapojärvi , 2008 # Tommi Franttila , 2008 msgid "" msgstr "" "Project-Id-Version: Vagalume 0.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:39+0200\n" "Last-Translator: Janne Mäkinen \n" "Language-Team: Finnish\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Last.fm Asiakasohjelma" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume Last.fm Asiakasohjelma" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Virhe käynnistäessä internet-yhteyden hallintaa" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Palvelimen tiedot tuotu onnistuneesti" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Tiedostosta ei löytynyt palvelimen tietoja" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Kirjautuminen palveluun %s epäonnistui\n" "Tarkista käyttäjätunnus ja salasana" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Virhe verkkoyhteydessä" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Sinun täytyy antaa käyttäjätunnuksesi\n" "ja salasanasi voidaksesi käyttää\n" "tätä ohjelmaa." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Ei enempää soitettavia kappaleita" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Ladattu %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Virhe ladattessa %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Kappaletta ladataan jo" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Lataa tämä kappale?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Tiedosto on jo olemassa. Korvataanko se?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Ladataan %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Esittäjä lisätty kirjanmerkkeihin" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Kappale lisätty kirjanmerkkeihin" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Radio lisätty kirjanmerkkeihin" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Lisätty kirjanmerkkeihin" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Haluatko varmasti merkitä kappaleen pidetyksi?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Merkitään kappale pidetyksi" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Haluatko varmasti estää tämän kappaleen?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Estetään kappale" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Leimaaminen onnistui" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Leimaaminen epäonnistui" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Kirjoita lista leimasanoja" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Suositus lähetetty" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Virhe suositusta lähetettäessä" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Kirjoita käyttäjätunnus\n" "ja suositteluviesti." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Kappale lisätty soittolistalle" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Virhe lisättäessä kappaletta soittolistalle" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Haluatko varmasti lisätä tämän kappaleen soittolistalle?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Tämä radioasema ei ole\n" "saatavilla maassasi." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "Virheellinen radion URL-osoite. Joko\n" "tätä radiota ei ole olemassa\n" "tai vain Last.fm-palvelun tilaajat\n" "voivat käyttää sitä" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Anna leima" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Anna yksi leimoistasi" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Anna käyttäjätunnus" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Soita tämän käyttäjän radiota" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Anna leima" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Anna ryhmä" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Anna ryhmän nimi" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Anna yleinen leima" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Anna esiintyjä" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Anna esiintyjän nimi" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Anna radion URL-osoite" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Anna Last.fm-radion URL-osoite" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Last.fm radion URL-osoitteen täytyy alkaa kirjaimilla lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Virhe käynnistäessä DBUS-palvelua" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Virhe luettaessa palvelinlista-tiedostoa" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Virhe käynnistäessä äänijärjestelmää" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Virhe käynnistäessä OSSO-palvelua" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Lataus suoritettu!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Latausvirhe!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "_Sulje" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Ladataan %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Ladataan tiedostoa\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Peruuta" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Käyttö: \n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (oletus: '%s')\n" " sink: GStreamer sink (default: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Liian monta tunnistamatonta valitsinta\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Käyttö: %s [lastfm radion URL-osoite]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(tuntematon radio)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Käyttäjän leimaama radio" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Käyttäjätunnus:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Leima" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Ei apua saatavilla" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Salasana:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Palvelu:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Käytä scrobbling-tilaa:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Discovery-tila:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Käyttäjätili" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Käyttäjätunnus ja salasana:\n" "Käyttäjätunnuksesi.\n" "\n" "* Palvelu:\n" "Käytettävä Last.fm-yhteensopiva palvelu.\n" "\n" "* Scrobbling-tila:\n" "Näytä kuuntelemasi musiikki profiilissasi.\n" "\n" "* Discovery-tila:\n" "Älä soita aikaisemmin kuunneltuja kappaleita. Vaatii Last.fm-tilauksen." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Käytä välityspalvelinta" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Välityspalvelimen osoite:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Alhaisen bittinopeuden suoratoisto" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Käytä välityspalvelinta:\n" "Ota välityspalvelin käyttöön.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Käytä järjestelmänlaajuista välityspalvelinta" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Käytä järjestelmänlaajuista välityspalvelinta:\n" "Käytä järjestelmänlaajuisia välityspalvelinasetuksia.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Yhteys" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Välityspalvelimen osoite:\n" "[protokolla://]käyttäjätunnus:salasana@isäntänimi:portti\n" "Vain isäntänimi (voi olla myös IP-osoite) on pakollinen.\n" "Tuetut protokollat: http, socks4, socks5.\n" "\n" "* Alhaisen bittinopeuden suoratoisto:\n" "Yritä käyttää alhaista bittinopeutta säästääksesi kaistaa." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Valitse hakemisto latauksille" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Lataa vapaat kappaleet automaattisesti" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Lataus" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Lataushakemisto:\n" "Hakemisto lataamillesi mp3-tiedostoille. Voit ladata vain palvelun vapaasti " "ladattavaksi merkittyjä kappaleita." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Pikaviestin pohja:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Päivitä tila Pidginiin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Päivitä tila Gajimiin:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Päivitä tila Gossipiin:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Päivitä tila Telepathyyn:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Päivitä tila pikaviestiohjelmaan" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume voi päivittää tilan pikaviestiohjelmaasi aina kun uusi kappale " "alkaa. Viestipohjassa voi olla seuraavat avainsanat:\n" "\n" "{artist}: Esittäjän nimi\n" "{title}: Kappaleen nimi\n" "{station}: Radioasema\n" "{version}: Vagalumen versio" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Poista varmistusikkunat käytöstä:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Poista varmistusikkunat käytöstä:\n" "Älä kysy varmistusta, kun kappaletta merkitään pidetyksi/estetyksi." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Näytä toiston tila viesteinä:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Näytä toiston tila viesteinä:\n" "Näytä ponnahdusikkunaviesti uuden kappaleen alkaessa.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Piilota järjestelmäpalkkiin:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Piilota järjestelmäpalkkiin:\n" "Piilota Vagalumen ikkuna sulje-painikkeesta." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Sekalaiset" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Käyttäjäasetukset" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Esiintyjä:" #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Kappale:" #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Albumi:" #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Lähetä suositus" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Suosittele tätä" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Lähetä suositus henkilölle" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Suositteluviesti" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "noudetaan..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(ei mitään)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Leimaaminen" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Leimaa tämä" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Kirjoita pilkulla eroteltu\n" "lista leimasanoja" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Suosituimmat leimasi" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Suosittuja leimoja tälle kappaleelle" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Käyttäjätunnus" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Salasana" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Palvelu" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Käytä scrobbling-tilaa" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Discovery-tila" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Käytä HTTP-välityspalvelinta" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Välityspalvelimen osoite" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Hakemisto latauksille" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Pikaviestin pohja" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Poista varmistusikkunat käytöstä" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d leimat" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Kirjoita pilkulla eroteltu lista leimasanoja" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Asiakasohjelma Last.fm ja yhteensopiville palveluille" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Katalonia" #: ../src/uimisc.c:173 msgid "German" msgstr "Saksa" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Espanja" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Suomi" #: ../src/uimisc.c:174 msgid "French" msgstr "Ranska" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galicia" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italia" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Latvia" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Puola" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugali" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Venäjä" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Varmistus" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Lisää kirjanmerkki" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Muokkaa kirjanmerkkiä" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Lisää nimi kirjanmerkkeihin" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Last.fm:n radio-osoite" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Virheellinen kirjanmerkin nimi" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Valitse tuotava palvelin-tiedosto" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Pysäytä toisto automaattisesti" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Milloin haluat pysäyttää toiston?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minuuttia" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Älä pysäytä toistoa" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Pysäytä toisto tämän kappaleen jälkeen" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Pysäytä kun" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "Suosittele..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "Leimat..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "Lisää soittolistalle" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Merkitse kappale tykätyksi" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "Estä tämä kappale" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Kirjanmerkit" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Tuo palvelintiedot..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Soita _radiota" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Minun radioni" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Muiden radiot" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Ryhmäradio..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Leimatut kappaleet..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Samanlaiset esiintyjät kuin..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Kirjoita URL-osoite..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Oma kirjastoni" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Naapurini" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Pitämäni kappaleet" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Sekoitukseni" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Soittolistani" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Suositukseni" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Leimaamani kappaleet..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Kirjasto..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Naapurit..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Pidetyt kappaleet..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Sekoitus..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Soittolista..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Suositukset..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Toiminnot" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Pysäytä kun..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Lataa tämä kappale" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Kirjanmerkit" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Lisää kirjanmerkki..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Järjestele kirjanmerkkejä..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Lisää tämä esittäjä kirjanmerkkeihin..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Lisää tämä kappale kirjanmerkkeihin..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Lisää tämä radio kirjanmerkkeihin..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Apua" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Valitse radio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Käyttäjän %s kirjasto" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Käyttäjän %s naapurit" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Käyttäjän %s tykkäämät raidat" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Käyttäjän %s sekoitus" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Käyttäjän %s soittolista" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Käyttäjän %s suositukset" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Käyttäjän %s leimaamat kappaleet" #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Anna kenen tahansa käyttäjän käyttäjätunnus" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Tuo palvelintiedot" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Soita radiota" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Ihmiset" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Aloita toisto" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Lopeta toisto" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Hyppää tämän kappaleen yli" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Merkitse pidetyksi" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Estä tämä kappale" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Suosittele tätä kappaletta" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Muokkaa tämän kappaleen leimoja" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Lisää tämä kappale soittolistalle" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Esittäjä:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Kappale:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Albumi:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Kuunnellaan " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Pysäytetty" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Soitetaan..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Yhdistetään..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Ei yhteyttä" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Äänenvoimakkuus: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Ei esittäjää" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Ei kappaletta" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Ei albumia" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Toista" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Pysäytä" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Hyppää yli" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Merkitse pidetyksi" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Estä" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Näytä pääikkuna" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Sulje Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr "Pysäytetty" #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Soitetaan: \n" " %s \n" " %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr "esittäjä: %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " esittäjä: %s\n" " albumi: %s" vagalume-0.8.6/po/Makefile.in.in0000644000000000000000000001604612233553544013322 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ DATADIRNAME = @DATADIRNAME@ itlocaledir = $(prefix)/$(DATADIRNAME)/locale subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< .po.gmo: $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: vagalume-0.8.6/po/pt.po0000644000000000000000000006533312233552617011636 00000000000000# pt.po - Portuguese translation file # Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # Marcos Garcia , 2008, 2009, 2010, 2011. # msgid "" msgstr "" "Project-Id-Version: Vagalume 0.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:40+0200\n" "Last-Translator: Marcos Garcia \n" "Language-Team: Portuguese <>\n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Cliente do Last.fm" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Cliente do Last.fm Vagalume" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Ocorreu um erro ao iniciar o gestor de ligação à Internet" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Informação do servidor importada com sucesso" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Não se encontrou informação do servidor no ficheiro" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Não foi possível aceder a %s\n" "Verifique o seu nome de utilizador e senha" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Erro de conexão à Rede" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Precisa introduzir o seu\n" "nome de utilizador e senha\n" "para poder utilizar este programa." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Não há mais conteúdo para tocar" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "Descarregado %s - %s" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Erro ao fazer download %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Música já descarregada" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Fazer download desta música?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "O ficheiro existe. Sobrescrevê-lo?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "A fazer download %s - %s" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Artista adicionado aos marcadores" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Música adicionada aos marcadores" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Rádio actual adicionada aos marcadores" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Marcador adicionado" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Quer realmente marcar como preferida esta música?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "A marcar a música como preferida" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Quer realmente excluir esta música?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "A excluir a música" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Etiquetas estabelecidas correctamente" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Ocorreu um erro ao etiquetar" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Deve escrever uma lista de etiquetas" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Recomendação enviada" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Ocorreu um erro ao enviar a recomendação" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Precisa de introduzir um nome de utilizador\n" "e uma mensagem de recomendação." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Música adicionada à lista de reprodução" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Ocorreu um erro ao adicionar a música à lista de reprodução" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Quer realmente adicionar esta música à lista de reprodução?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Esta rádio não está disponível\n" "no seu país." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "URL de rádio inválido. Ou esta\n" "rádio não existe ou só é\n" "disponível para os assinantes\n" "do Last.fm" #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Introduza uma etiqueta" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Introduza uma das suas etiquetas" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Introduza o nome de utilizador" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Tocar a rádio deste utilizador" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Introduza uma etiqueta" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Introduza o grupo" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Introduza o nome do grupo" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Introduza uma etiqueta global" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Introduza um artista" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Introduza o nome de um artista" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Introduza a URL de uma rádio" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "Introduza a URL da rádio Last.fm" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "As URLs das rádios Last.fm começam por lastfm://" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "Não foi possível iniciar DBUS" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Ocorreo um erro ao ler a lista de servidores" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Ocorreu um erro ao iniciar o sistema de som" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "Não foi possível iniciar o contexto OSSO" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Download finalizado!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Erro no download!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "_Fechar" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "A fazer download %s" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "A fazer download do ficheiro\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Cancelar" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Utilização:\n" " %s [-d decodificdor] [-s sink] [lastfm radio url]\n" "\n" " decodificador: GStreamer decoder (por defeito: '%s')\n" " sink: GStreamer sink (por defeito: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Demasiadas opções desconhecidas\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Utilização: %s [lastfm radio url]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(rádio desconhecida)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Rádio das etiquetas do utilizador" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Nome de utilizador:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Etiqueta:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Não há ajuda disponível" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Senha:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Serviço:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Activar scrobbling:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Modo de descoberta:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Conta" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Nome de utilizador e senha:\n" "Da sua conta Last.fm.\n" "\n" "* Serviço:\n" "Serviço compatível com o Last.fm ao qual ligar.\n" "\n" "* Scrobbling:\n" "Mostra a música que está a ouvir no seu perfil do Last.fm.\n" "\n" "* Modo de descoberta:\n" "Não toca músicas que já foram ouvidas. Precisa ser assinante do Last.fm." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Utilizar proxy" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Endereço do proxy" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Stream de baixo bitrate" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Utilizar proxy:\n" "Ativar isto para a utilização de proxy.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Utilizar proxy do sistema" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Utilizar proxy do sistema:\n" "Utilizar as definições proxy do sistema.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Ligação" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Endereço proxy:\n" "[protocolo://]utilizador:senha@hostname:port\n" "Só se requer o hostname (pode ser um endereço IP).\n" "Protocolos suportados: http:, socks4, socks5.\n" "\n" "* Stream de baixo bitrate:\n" "Tente arranjar um stream de baixo bitrate do servidor\n" "para poupar largo de banda." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Selecione a pasta de download" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Descarregar faixas gratuítas automaticamente" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Download" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Pasta de download:\n" "Onde fazer download dos ficheiros mp3. Lembre que apenas pode fazer download " "de aquelas músicas marcadas para download pelo servidor." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "Modelo de mensagem de IM:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Actualizar o estado do Pidgin:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Actualizar o estado do Gajim:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Actualizar o estado do Gossip:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Actualizar o estado do Telepathy:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "Actualizar o estado do IM" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "O Vagalume pode actualizar a mensagem de estado do seu cliente IM quando uma " "nova música começar. O modelo pode conter as seguintes palavras-chave:\n" "\n" "{artist}: Nome do artista\n" "{title}: Título da música\n" "{station}: Estação de Rádio\n" "{version}: Versão do Vagalume" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Desligar diálogos de confirmação:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Desligar diálogos de confirmação:\n" "Não requer confirmação quando marca músicas como preferidas ou excluídas." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Mostrar notificações de reprodução:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Mostrar notificações de reprodução:\n" "Mostra uma notificação quando uma nova música começa.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Minimizar para o ícone do sistema:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Minimizar para o ícone do sistema:\n" "Oculta a janela do Vagalume quando o botão de encerramento é premido." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Misc" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Opções do utilizador" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Artista: " #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Música: " #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Álbum: " #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Enviar uma recomendação" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Recomendar isto" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Enviar recomendação a" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Mensagem de recomendação" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "a recuperar..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(nenhum)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "A etiquetar" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Etiquetar" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Introduza uma lista de etiquetas\n" "separadas por vírgulas" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "As suas etiquetas preferidas" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Etiquetas populares para isto" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Nome de utilizador" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Senha" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Serviço" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Activar scrobbling" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Modo de descoberta" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "Utilizar proxy HTTP" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Endereço do proxy" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Seleccione a pasta de download" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "Modelo de mensagem de IM" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Desligar diálogos de confirmação" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d etiquetas" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Introduza uma lista de etiquetas separadas por vírgulas" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Cliente para o Last.fm e serviços compatíveis" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Catalão" #: ../src/uimisc.c:173 msgid "German" msgstr "Alemão" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Espanhol" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finlandês" #: ../src/uimisc.c:174 msgid "French" msgstr "Francês" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galego" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italiano" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Letão" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polaco" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Português" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Russo" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Confirmação" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Adicionar marcador" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Editar o marcador" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Adicionar o nome aos marcadores" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Endereço de rádio Last.fm" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Nome de marcador inválido" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Escolha o ficheiro de servidores para importar" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Parar automaticamente" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Quando quer parar de reproduzir?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "minutos" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "Não parar" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Parar depois desta música" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Parar depois de" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "Recomendar a..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "Etiquetas..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "Adicionar à lista de reprodução" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Marcar como preferida" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "Excluir esta música" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Marcadores" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "_Importar ficheiro de servidores" #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "Tocar _Rádio" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "As minhas rádios" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Rádios de outros" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Rádio do grupo..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Música etiquetada..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Artistas similares a..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "Introduza o URL..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "A minha biblioteca" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Os meus vizinhos" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "As minhas músicas preferidas" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "A minha rádio mix" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "A minha lista de reprodução" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "As minhas recomendações" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "A minha música etiquetada..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Biblioteca..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Vizinhos..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Músicas preferidas..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mix..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Lista de reprodução..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Recomendações..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "A_cções" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Parar depois..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Fazer download desta música" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "_Marcadores" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Adicionar marcador..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Organizar marcadores..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Adicionar este artista aos marcadores..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Adicionar esta música aos marcadores..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Adicionar esta rádio aos marcadores..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Ajuda" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Escolher rádio" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "A biblioteca de %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Os vizinho de %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "As músicas preferidas de %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "O mix de %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "A lista de reprodução de %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "As recomendações de %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "A música etiquetada de %s..." #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Introduza um nome de utilizador" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Importar ficheiro de servidores" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Tocar Rádio" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Gente" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Começar a tocar" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Parar de tocar" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Passar esta música" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Marcar como preferida" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Excluir esta música" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Recomendar esta música" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Editar as etiquetas desta música" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Adicionar esta música à lista de reprodução" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Artista:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Título:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Álbum:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "A ouvir " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Parado" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "A tocar..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "A conectar..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Desligado" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Volume: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Nenhum artista" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Nenhuma música" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Nenhum álbum" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Tocar" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Parar" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Passar" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Marcar como preferida" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Excluir" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Mostrar a janela principal" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Sair do Vagalume" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr " Parado " #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " A tocar: \n" " %s \n" " de %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " de %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " de %s\n" " do %s" #~ msgid "" #~ "* Use HTTP proxy:\n" #~ "Enable this to use an HTTP proxy.\n" #~ "\n" #~ "* Proxy address:\n" #~ "user:password@hostname:port\n" #~ "Only the hostname (can be an IP address) is required." #~ msgstr "" #~ "* Utilizar proxy HTTP:\n" #~ "Activar isto para usar o proxy HTTP.\n" #~ "\n" #~ "* Endereço do proxy:\n" #~ "Utilizador:password@hostname:port\n" #~ "Apenas é requerido o hostname (pode ser um endereço IP)." vagalume-0.8.6/po/POTFILES.in0000644000000000000000000000046212233552617012420 00000000000000data/vagalume.desktop.in.in src/connection.c src/controller.c src/dlwin.c src/main.c src/protocol.c src/uimisc-gtk.c src/uimisc-hildon22.c src/uimisc.c src/uimisc.h src/vgl-bookmark-window.c src/vgl-main-menu-gtk.c src/vgl-main-menu-hildon22.c src/vgl-main-window.c src/vgl-sb-plugin.c src/vgl-tray-icon.c vagalume-0.8.6/po/POTFILES.skip0000644000000000000000000000003112233552617012750 00000000000000data/vagalume.desktop.in vagalume-0.8.6/po/de.po0000644000000000000000000006356112233552617011604 00000000000000# Copyright (C) 2007,2008 Alberto Garcia Gonzalez # This file is part of Vagalume and is published under the GNU GPLv3 # See the README file for more details. # Stephan Reichholf , 2008 # Oskar Welzl , 2008, 2009, 2010 msgid "" msgstr "" "Project-Id-Version: vagalume\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-10-28 20:38+0200\n" "PO-Revision-Date: 2013-10-28 20:38+0200\n" "Last-Translator: Oskar Welzl \n" "Language-Team: German\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../data/vagalume.desktop.in.in.h:1 msgid "Last.fm Client" msgstr "Last.fm Client" #: ../data/vagalume.desktop.in.in.h:2 msgid "Vagalume Last.fm Client" msgstr "Vagalume Last.fm Client" #: ../src/connection.c:58 msgid "Error initializing internet connection manager" msgstr "Fehler beim Initialisieren des Internetverbindungsmanagers" #: ../src/controller.c:493 msgid "Server info imported correctly" msgstr "Serverinformation korrekt importiert" #: ../src/controller.c:497 msgid "No server info found in that file" msgstr "Keine Serverinformation gefunden" #: ../src/controller.c:543 #, c-format msgid "" "Unable to login to %s\n" "Check username and password" msgstr "" "Anmeldung bei %s nicht möglich\n" "Benutzername und Passwort prüfen" #: ../src/controller.c:549 msgid "Network connection error" msgstr "Netzwerkverbindungsfehler" #: ../src/controller.c:655 msgid "" "You need to enter your\n" "username and password\n" "to be able to use this program." msgstr "" "Sie müssen Ihren Benutzernamen\n" "und das Passwort angeben,\n" "um dieses Programm nutzen zu können." #: ../src/controller.c:717 msgid "No more content to play" msgstr "Kein weiterer Inhalt zum Abspielen" #: ../src/controller.c:945 #, c-format msgid "Downloaded %s - %s" msgstr "%s - %s heruntergeladen" #: ../src/controller.c:949 #, c-format msgid "Error downloading %s - %s" msgstr "Fehler beim Herunterladen von %s - %s" #: ../src/controller.c:989 msgid "Track already being downloaded" msgstr "Titel wird schon heruntergeladen" #: ../src/controller.c:994 msgid "Download this track?" msgstr "Diesen Titel herunterladen?" #: ../src/controller.c:1007 msgid "File exists. Overwrite?" msgstr "Datei existiert. Überschreiben?" #: ../src/controller.c:1023 #, c-format msgid "Downloading %s - %s" msgstr "Lade %s - %s herunter" #: ../src/controller.c:1065 msgid "Artist added to bookmarks" msgstr "Interpret zu Lesezeichen hinzugefügt" #: ../src/controller.c:1072 msgid "Track added to bookmarks" msgstr "Titel zu Lesezeichen hinzugefügt" #: ../src/controller.c:1078 msgid "Current radio added to bookmarks" msgstr "Radio zu Lesezeichen hinzugefügt" #: ../src/controller.c:1081 msgid "Bookmark added" msgstr "Lesezeichen hinzugefügt" #: ../src/controller.c:1167 msgid "Really mark track as loved?" msgstr "Wirklich zu Lieblingstiteln hinzufügen?" #: ../src/controller.c:1171 msgid "Marking track as loved" msgstr "Titel wird zu Lieblingstiteln hinzugefügt" #: ../src/controller.c:1185 msgid "Really ban this track?" msgstr "Titel wirklich nie mehr spielen?" #: ../src/controller.c:1189 msgid "Banning track" msgstr "Titel wird nie mehr gespielt" #: ../src/controller.c:1228 msgid "Tags set correctly" msgstr "Tags korrekt gesetzt" #: ../src/controller.c:1228 msgid "Error tagging" msgstr "Fehler beim Taggen" #: ../src/controller.c:1272 msgid "You must type a list of tags" msgstr "Sie müssen eine Liste von Tags eingeben" #: ../src/controller.c:1301 msgid "Recommendation sent" msgstr "Empfehlung gesendet" #: ../src/controller.c:1302 msgid "Error sending recommendation" msgstr "Fehler beim Senden der Empfehlung" #: ../src/controller.c:1346 msgid "" "You must type a user name\n" "and a recommendation message." msgstr "" "Sie müssen einen Benutzernamen\n" "und eine Empfehlungsnachricht eingeben." #: ../src/controller.c:1369 msgid "Track added to playlist" msgstr "Titel zur Playlist hinzugefügt" #: ../src/controller.c:1370 msgid "Error adding track to playlist" msgstr "Fehler beim Hinzufügen des Titels zur Wiedergabeliste" #: ../src/controller.c:1418 msgid "Really add this track to the playlist?" msgstr "Diesen Titel wirklich zur Wiedergabeliste hinzufügen?" #: ../src/controller.c:1450 msgid "" "This radio is not available\n" "in your country." msgstr "" "Diese Radiostation ist in Ihrem\n" "Land nicht verfügbar." #: ../src/controller.c:1454 msgid "" "Invalid radio URL. Either\n" "this radio doesn't exist\n" "or it is only available\n" "for Last.fm subscribers" msgstr "" "Ungültige Radio-URL. Entweder\n" "existiert dieser Kanal nicht,\n" "oder er ist nur für Last.fm-\n" "Abonnenten verfügbar." #: ../src/controller.c:1557 ../src/controller.c:1698 ../src/controller.c:1752 msgid "Enter tag" msgstr "Tag eingeben" #: ../src/controller.c:1557 msgid "Enter one of your tags" msgstr "Geben Sie einen Ihrer Tags ein" #: ../src/controller.c:1609 msgid "Enter user name" msgstr "Benutzernamen eingeben" #: ../src/controller.c:1610 msgid "Play this user's radio" msgstr "Kanal dieses Benutzers wiedergeben" #: ../src/controller.c:1698 msgid "Enter a tag" msgstr "Tag eingeben" #: ../src/controller.c:1729 msgid "Enter group" msgstr "Gruppe eingeben" #: ../src/controller.c:1729 msgid "Enter group name" msgstr "Namen der Gruppe eingeben" #: ../src/controller.c:1752 msgid "Enter a global tag" msgstr "Ein globales Tag eingeben" #: ../src/controller.c:1776 msgid "Enter artist" msgstr "Interpret eingeben" #: ../src/controller.c:1776 msgid "Enter an artist's name" msgstr "Den Namen eines Interpreten eingeben" #: ../src/controller.c:1798 msgid "Enter radio URL" msgstr "Radio URL eingeben" #: ../src/controller.c:1799 msgid "Enter the URL of the Last.fm radio" msgstr "URL des Last.fm Radios eingeben" #: ../src/controller.c:1808 ../src/uimisc.c:312 msgid "Last.fm radio URLs must start with lastfm://" msgstr "Last.fm Radio-URLs müssen mit lastfm:// beginnen" #: ../src/controller.c:1879 msgid "Unable to initialize DBUS" msgstr "DBUS konnte nicht initialisiert werden" #: ../src/controller.c:1912 msgid "Error reading the server list file" msgstr "Fehler beim Lesen der Server-Listen-Datei" #: ../src/controller.c:1920 msgid "Error initializing audio system" msgstr "Fehler beim Initialisieren des Audiosystems" #: ../src/controller.c:1930 msgid "Unable to initialize OSSO context" msgstr "OSSO Kontext konnte nicht initialisiert werden" #: ../src/dlwin.c:96 msgid "Download complete!" msgstr "Download abgeschlossen!" #: ../src/dlwin.c:97 msgid "Download error!" msgstr "Download fehlgeschlagen!" #: ../src/dlwin.c:99 msgid "C_lose" msgstr "S_chließen" #: ../src/dlwin.c:155 #, c-format msgid "Downloading %s" msgstr "Lade %s herunter" #: ../src/dlwin.c:158 #, c-format msgid "" "Downloading file\n" "%s" msgstr "" "Datei-Download:\n" "%s" #: ../src/dlwin.c:163 msgid "_Cancel" msgstr "_Abbrechen" #: ../src/main.c:85 #, c-format msgid "" "Usage:\n" " %s [-d decoder] [-s sink] [lastfm radio url]\n" "\n" " decoder: GStreamer decoder (default: '%s')\n" " sink: GStreamer sink (default: '%s')\n" msgstr "" "Benutzung:\n" " %s [-d Decoder] [-s Sink] [Last.fm Radio-URL]\n" "\n" " Decoder: GStreamer-Decoder (Standard: '%s')\n" " Sink: GStreamer-Sink (Standard: '%s')\n" #: ../src/main.c:98 #, c-format msgid "Too many unrecognized options\n" msgstr "Zu viele unbekannte Optionen\n" #: ../src/main.c:107 #, c-format msgid "Usage: %s [lastfm radio url]\n" msgstr "Gebrauch: %s [lastfm radio-url]\n" #: ../src/protocol.c:246 msgid "(unknown radio)" msgstr "(unbekanntes Radio)" #: ../src/uimisc-gtk.c:119 msgid "User tag radio" msgstr "Radio nach Benutzer-Tags" #: ../src/uimisc-gtk.c:120 ../src/uimisc-gtk.c:240 msgid "Username:" msgstr "Benutzername:" #: ../src/uimisc-gtk.c:121 msgid "Tag:" msgstr "Tag:" #: ../src/uimisc-gtk.c:214 msgid "No help available" msgstr "Keine Hilfe verfügbar" #: ../src/uimisc-gtk.c:241 msgid "Password:" msgstr "Passwort:" #: ../src/uimisc-gtk.c:242 msgid "Service:" msgstr "Dienst:" #: ../src/uimisc-gtk.c:243 msgid "Enable scrobbling:" msgstr "Scrobbeln aktivieren:" #: ../src/uimisc-gtk.c:244 msgid "Discovery mode:" msgstr "Entdeckungsmodus:" #. Account frame #: ../src/uimisc-gtk.c:291 ../src/uimisc-hildon22.c:271 msgid "Account" msgstr "Account" #. Set help #: ../src/uimisc-gtk.c:294 msgid "" "* Username and password:\n" "From your account.\n" "\n" "* Service:\n" "Last.fm-compatible service to connect to.\n" "\n" "* Scrobbling:\n" "Display the music that you listen to on your profile.\n" "\n" "* Discovery mode:\n" "Don't play music you've already listened to. Requires a Last.fm subscription." msgstr "" "* Benutzername und Kennwort:\n" "Daten Ihres Kontos.\n" "\n" "* Dienst:\n" "Last.fm-kompatibles Angebot, zu dem verbunden werden soll\n" "\n" "* Scrobbeln:\n" "Die Songs, die Sie hören, im Profil anzeigen.\n" "\n" "* Entdeckungsmodus:\n" "Bereits gehörte Musik nicht mehr spielen. Setzt Last.fm-Abo voraus." #: ../src/uimisc-gtk.c:328 msgid "Use proxy" msgstr "Proxy benutzen" #: ../src/uimisc-gtk.c:329 msgid "Proxy address:" msgstr "Proxy Adresse:" #: ../src/uimisc-gtk.c:330 ../src/uimisc-hildon22.c:346 msgid "Low bitrate stream" msgstr "Stream für geringe Bandbreite" #: ../src/uimisc-gtk.c:352 msgid "" "* Use proxy:\n" "Enable this to use a proxy.\n" "\n" msgstr "" "* Proxy verwenden:\n" "Aktivieren, um Proxy zu verwenden.\n" "\n" #: ../src/uimisc-gtk.c:355 msgid "Use system-wide proxy" msgstr "Systemweiten Proxy verwenden" #: ../src/uimisc-gtk.c:369 msgid "" "* Use system-wide proxy:\n" "Use the system-wide proxy configuration.\n" "\n" msgstr "" "* Systemweiten Proxy verwenden:\n" "Die Proxyeinstellung des Betriebssystems verwenden.\n" "\n" #. Connection frame #: ../src/uimisc-gtk.c:380 ../src/uimisc-hildon22.c:323 msgid "Connection" msgstr "Verbindung" #: ../src/uimisc-gtk.c:385 msgid "" "* Proxy address:\n" "[protocol://]user:password@hostname:port\n" "Only the hostname (can be an IP address) is required.\n" "Supported protocols: http, socks4, socks5.\n" "\n" "* Low bitrate stream:\n" "Try to get a low bitrate stream from the server\n" "to save bandwidth." msgstr "" "* Proxy-Adresse:\n" "[protocol://]user:password@hostname:port\n" "Nur der Hostname (kann eine IP-Adresse sein) ist nötig.\n" "Unterstützte Protokolle: http, socks4, socks5.\n" "\n" "* Stream für geringe Bandbreite:\n" "Nach Möglichkeit Stream mit geringer Bandbreite\n" "vom Server anfordern." #: ../src/uimisc-gtk.c:408 ../src/uimisc.c:399 msgid "Select download directory" msgstr "Downloadverzeichnis wählen" #. Translators: keep this string short!! #: ../src/uimisc-gtk.c:409 ../src/uimisc-hildon22.c:370 msgid "Automatically download free tracks" msgstr "Gratis-Titel automatisch downloaden" #. Download frame #: ../src/uimisc-gtk.c:432 ../src/uimisc-hildon22.c:350 msgid "Download" msgstr "Herunterladen" #. Set help #: ../src/uimisc-gtk.c:435 msgid "" "* Download directory:\n" "Where to download mp3 files. Note that you can only download those songs " "marked as freely downloadable by the server." msgstr "" "* Download-Verzeichnis:\n" "Heruntergeladene MP3-Dateien werden dorthin abgelegt. Sie können nur Songs " "herunterladen, die vom Server als freie Downloads gekennzeichnet wurden." #: ../src/uimisc-gtk.c:454 msgid "IM message template:" msgstr "IM-Nachrichtenvorlage:" #: ../src/uimisc-gtk.c:455 msgid "Update Pidgin status:" msgstr "Pidgin-Status aktualisieren:" #: ../src/uimisc-gtk.c:456 msgid "Update Gajim status:" msgstr "Gajim Status aktualisieren:" #: ../src/uimisc-gtk.c:457 msgid "Update Gossip status:" msgstr "Gossip-Status aktualisieren:" #: ../src/uimisc-gtk.c:458 msgid "Update Telepathy status:" msgstr "Telepathy-Status aktualisieren:" #. IM status frame #: ../src/uimisc-gtk.c:489 ../src/uimisc-hildon22.c:374 #: ../src/uimisc-hildon22.c:385 msgid "Update IM status" msgstr "IM-Status aktualisieren" #. Set help #: ../src/uimisc-gtk.c:492 msgid "" "Vagalume can update the status message of your IM client each time a new " "song starts. The template can contain the following keywords:\n" "\n" "{artist}: Name of the artist\n" "{title}: Song title\n" "{station}: Radio station\n" "{version}: Vagalume version" msgstr "" "Vagalume kann den Status Ihres IM-Clients jedes Mal aktualisieren, wenn ein " "neuer Song beginnt. Die Vorlage dazu kann folgende Variablen enthalten:\n" "\n" "{artist}: Name des Interpreten\n" "{title}: Titel des Songs\n" "{station}: Radiostation\n" "{version}: Vagalume-Version" #: ../src/uimisc-gtk.c:522 msgid "Disable confirmation dialogs:" msgstr "Keine Bestätigungsmeldungen:" #: ../src/uimisc-gtk.c:532 msgid "" "* Disable confirmation dialogs:\n" "Don't ask for confirmation when loving/banning tracks." msgstr "" "* Keine Bestätigungsmeldungen:\n" "Nicht nachfragen, wenn Titel gebannt/als Lieblingstitel markiert werden." #: ../src/uimisc-gtk.c:539 msgid "Show playback notifications:" msgstr "Wiedergabeinfo anzeigen:" #: ../src/uimisc-gtk.c:549 msgid "" "\n" "\n" "* Show playback notifications:\n" "Pop up a notification box each time a new song starts.\n" "\n" msgstr "" "\n" "\n" "* Wiedergabeinfo anzeigen:\n" "Ein Hinweisfenster anzeigen, wenn ein neuer Song beginnt.\n" "\n" #: ../src/uimisc-gtk.c:555 msgid "Close to systray:" msgstr "Beim Schließen nur minimieren:" #: ../src/uimisc-gtk.c:565 msgid "" "* Close to systray:\n" "Hide the Vagalume window when the close button is pressed." msgstr "" "* Beim Schließen nur minimieren:\n" "Vagalume-Fenster nur verstecken, wenn Schließen-Button angeklickt wird." #. Misc frame #: ../src/uimisc-gtk.c:572 ../src/uimisc-hildon22.c:403 msgid "Misc" msgstr "Sonstiges" #. Create dialog #: ../src/uimisc-gtk.c:591 ../src/uimisc-hildon22.c:258 msgid "User settings" msgstr "Benutzereinstellungen" #: ../src/uimisc-gtk.c:717 ../src/uimisc-hildon22.c:566 msgid "Artist: " msgstr "Interpret: " #: ../src/uimisc-gtk.c:725 ../src/uimisc-hildon22.c:570 msgid "Track: " msgstr "Titel: " #: ../src/uimisc-gtk.c:734 ../src/uimisc-hildon22.c:575 msgid "Album: " msgstr "Album: " #. Dialog and basic settings #: ../src/uimisc-gtk.c:787 ../src/uimisc-hildon22.c:657 msgid "Send a recommendation" msgstr "Eine Empfehlung senden" #: ../src/uimisc-gtk.c:794 ../src/uimisc-hildon22.c:664 msgid "Recommend this" msgstr "Empfehlen" #: ../src/uimisc-gtk.c:817 ../src/uimisc-hildon22.c:668 msgid "Send recommendation to" msgstr "Empfehlungen senden an" #. Message of the recommendation #: ../src/uimisc-gtk.c:825 ../src/uimisc-hildon22.c:675 msgid "Recommendation message" msgstr "Empfehlungsnachricht" #: ../src/uimisc-gtk.c:1003 ../src/uimisc-gtk.c:1070 #: ../src/uimisc-hildon22.c:848 ../src/uimisc-hildon22.c:850 msgid "retrieving..." msgstr "empfange..." #. A treemodel for combos with no elements #: ../src/uimisc-gtk.c:1067 msgid "(none)" msgstr "(kein)" #. Dialog and basic settings #: ../src/uimisc-gtk.c:1075 ../src/uimisc-hildon22.c:967 msgid "Tagging" msgstr "Taggen" #. Combo to select what to tag #: ../src/uimisc-gtk.c:1081 ../src/uimisc-hildon22.c:973 msgid "Tag this" msgstr "Taggen" #. Text entry #: ../src/uimisc-gtk.c:1101 msgid "" "Enter a comma-separated\n" "list of tags" msgstr "" "Eine durch Komma getrennte Liste\n" "von Tags eingeben" #. Combo boxes #: ../src/uimisc-gtk.c:1107 ../src/uimisc-hildon22.c:981 msgid "Your favourite tags" msgstr "Ihre Lieblingstags" #: ../src/uimisc-gtk.c:1108 ../src/uimisc-hildon22.c:989 msgid "Popular tags for this" msgstr "Beliebte Tags hierfür" #: ../src/uimisc-hildon22.c:278 msgid "Username" msgstr "Benutzername" #: ../src/uimisc-hildon22.c:289 msgid "Password" msgstr "Passwort" #: ../src/uimisc-hildon22.c:306 msgid "Service" msgstr "Dienst" #: ../src/uimisc-hildon22.c:314 msgid "Enable scrobbling" msgstr "Scrobbeln aktivieren" #: ../src/uimisc-hildon22.c:319 msgid "Discovery mode" msgstr "Entdeckungsmodus" #: ../src/uimisc-hildon22.c:330 msgid "Use HTTP proxy" msgstr "HTTP Proxy benutzen" #: ../src/uimisc-hildon22.c:335 msgid "Proxy address" msgstr "Proxy-Adresse" #: ../src/uimisc-hildon22.c:358 msgid "Download directory" msgstr "Downloadverzeichnis" #: ../src/uimisc-hildon22.c:393 msgid "IM message template" msgstr "IM-Nachrichtenvorlage" #: ../src/uimisc-hildon22.c:411 msgid "Disable confirmation dialogs" msgstr "Keine Bestätigungsmeldungen" #: ../src/uimisc-hildon22.c:911 ../src/uimisc-hildon22.c:939 #, c-format msgid "%d tags" msgstr "%d Tags" #. Text entry #: ../src/uimisc-hildon22.c:976 msgid "Enter a comma-separated list of tags" msgstr "Tag-Liste eingeben (durch Komma getrennt)" #: ../src/uimisc.c:57 msgid "Client for Last.fm and compatible services" msgstr "Client für Last.fm und kompatible Dienste" #: ../src/uimisc.c:172 msgid "Catalan" msgstr "Katalanisch" #: ../src/uimisc.c:173 msgid "German" msgstr "Deutsch" #: ../src/uimisc.c:173 msgid "Spanish" msgstr "Spanisch" #: ../src/uimisc.c:174 msgid "Finnish" msgstr "Finnisch" #: ../src/uimisc.c:174 msgid "French" msgstr "Französisch" #: ../src/uimisc.c:175 msgid "Galician" msgstr "Galicisch" #: ../src/uimisc.c:175 msgid "Italian" msgstr "Italienisch" #: ../src/uimisc.c:176 msgid "Latvian" msgstr "Lettisch" #: ../src/uimisc.c:176 msgid "Polish" msgstr "Polnisch" #: ../src/uimisc.c:177 msgid "Portuguese" msgstr "Portugiesisch" #: ../src/uimisc.c:178 msgid "Russian" msgstr "Russisch" #: ../src/uimisc.c:223 msgid "Confirmation" msgstr "Bestätigung" #: ../src/uimisc.c:276 msgid "Add bookmark" msgstr "Lesezeichen hinzufügen" #: ../src/uimisc.c:276 msgid "Edit bookmark" msgstr "Lesezeichen bearbeiten" #: ../src/uimisc.c:277 msgid "Bookmark name" msgstr "Name des Lesezeichens" #: ../src/uimisc.c:278 msgid "Last.fm radio address" msgstr "Last.fm-Radio Adresse" #: ../src/uimisc.c:308 msgid "Invalid bookmark name" msgstr "Ungültiger Name des Lesezeichens" #: ../src/uimisc.c:383 msgid "Select server file to import" msgstr "Server-Datei zum Import auswählen" #. Create all widgets #: ../src/uimisc.c:478 msgid "Stop automatically" msgstr "Automatisch anhalten" #: ../src/uimisc.c:479 msgid "When do you want to stop playback?" msgstr "Wann möchten Sie die Wiedergabe anhalten?" #: ../src/uimisc.c:480 msgid "minutes" msgstr "Minuten" #: ../src/uimisc.c:488 msgid "Don't stop" msgstr "nicht anhalten" #: ../src/uimisc.c:489 msgid "Stop after this track" msgstr "Nach diesem Titel stoppen" #. Translators: the full text is "Stop after ____ minutes" #: ../src/uimisc.c:491 msgid "Stop after" msgstr "Anhalten nach" #: ../src/uimisc.h:20 msgid "_Recommend to..." msgstr "_Empfehlen..." #: ../src/uimisc.h:21 msgid "_Tags..." msgstr "_Tags..." #: ../src/uimisc.h:22 msgid "_Add to playlist" msgstr "Zur Wiedergabeliste _hinzufügen" #: ../src/uimisc.h:23 msgid "_Love this track" msgstr "Zu Lie_blingstiteln hinzufügen" #: ../src/uimisc.h:24 msgid "_Ban this track" msgstr "Nie _mehr spielen" #. Configure widgets #: ../src/vgl-bookmark-window.c:313 ../src/vgl-main-menu-hildon22.c:118 #: ../src/vgl-main-menu-hildon22.c:434 msgid "Bookmarks" msgstr "Lesezeichen" #. Last.fm #: ../src/vgl-main-menu-gtk.c:196 msgid "_Last.fm" msgstr "_Last.fm" #: ../src/vgl-main-menu-gtk.c:200 msgid "_Import servers file..." msgstr "Server-Datei _importieren..." #. Radio #: ../src/vgl-main-menu-gtk.c:219 msgid "Play _Radio" msgstr "_Radio hören" #: ../src/vgl-main-menu-gtk.c:221 msgid "My radios" msgstr "Meine Radios" #: ../src/vgl-main-menu-gtk.c:223 msgid "Others' radios" msgstr "Radios anderer" #: ../src/vgl-main-menu-gtk.c:224 ../src/vgl-main-menu-hildon22.c:354 msgid "Group radio..." msgstr "Gruppenradio..." #: ../src/vgl-main-menu-gtk.c:225 ../src/vgl-main-menu-gtk.c:293 #: ../src/vgl-main-menu-hildon22.c:352 msgid "Music tagged..." msgstr "Musik mit dem Tag..." #: ../src/vgl-main-menu-gtk.c:226 ../src/vgl-main-menu-hildon22.c:353 msgid "Artists similar to..." msgstr "Künstler ähnlich wie..." #: ../src/vgl-main-menu-gtk.c:227 ../src/vgl-main-menu-hildon22.c:362 msgid "Enter URL..." msgstr "URL eingeben..." #: ../src/vgl-main-menu-gtk.c:248 ../src/vgl-main-menu-hildon22.c:355 msgid "My library" msgstr "Meine Musiksammlung" #: ../src/vgl-main-menu-gtk.c:249 ../src/vgl-main-menu-hildon22.c:356 msgid "My neighbours" msgstr "Meine Nachbarn" #: ../src/vgl-main-menu-gtk.c:250 ../src/vgl-main-menu-hildon22.c:357 msgid "My loved tracks" msgstr "Meine Lieblingstitel" #: ../src/vgl-main-menu-gtk.c:251 ../src/vgl-main-menu-hildon22.c:358 msgid "My mix" msgstr "Mein Mix" #: ../src/vgl-main-menu-gtk.c:252 ../src/vgl-main-menu-hildon22.c:359 msgid "My playlist" msgstr "Meine Wiedergabeliste" #: ../src/vgl-main-menu-gtk.c:253 ../src/vgl-main-menu-hildon22.c:360 msgid "My recommendations" msgstr "Meine Empfehlungen" #: ../src/vgl-main-menu-gtk.c:254 ../src/vgl-main-menu-hildon22.c:361 msgid "My music tagged..." msgstr "Meine Musik mit Tags..." #: ../src/vgl-main-menu-gtk.c:287 msgid "Library..." msgstr "Musiksammlung..." #: ../src/vgl-main-menu-gtk.c:288 msgid "Neighbours..." msgstr "Nachbarn..." #: ../src/vgl-main-menu-gtk.c:289 msgid "Loved tracks..." msgstr "Lieblingstitel..." #: ../src/vgl-main-menu-gtk.c:290 msgid "Mix..." msgstr "Mix..." #: ../src/vgl-main-menu-gtk.c:291 msgid "Playlist..." msgstr "Wiedergabeliste..." #: ../src/vgl-main-menu-gtk.c:292 msgid "Recommendations..." msgstr "Empfehlungen..." #. Actions #: ../src/vgl-main-menu-gtk.c:324 msgid "_Actions" msgstr "_Aktionen" #: ../src/vgl-main-menu-gtk.c:332 ../src/vgl-main-menu-hildon22.c:428 msgid "Stop after..." msgstr "Anhalten nach..." #: ../src/vgl-main-menu-gtk.c:340 ../src/vgl-main-window.c:105 msgid "Download this track" msgstr "Titel herunterladen" #: ../src/vgl-main-menu-gtk.c:383 msgid "_Bookmarks" msgstr "Lese_zeichen" #: ../src/vgl-main-menu-gtk.c:386 msgid "Add bookmark..." msgstr "Lesezeichen hinzufügen..." #: ../src/vgl-main-menu-gtk.c:388 ../src/vgl-main-menu-hildon22.c:123 msgid "Manage bookmarks..." msgstr "Lesezeichen verwalten..." #: ../src/vgl-main-menu-gtk.c:389 ../src/vgl-main-menu-hildon22.c:445 msgid "Bookmark this artist..." msgstr "Interpreten zu Lesezeichen hinzufügen..." #: ../src/vgl-main-menu-gtk.c:390 ../src/vgl-main-menu-hildon22.c:452 msgid "Bookmark this track..." msgstr "Titel zu Lesezeichen hinzufügen..." #: ../src/vgl-main-menu-gtk.c:391 ../src/vgl-main-menu-hildon22.c:459 msgid "Bookmark this radio..." msgstr "Radio zu Lesezeichen hinzufügen..." #. Help #: ../src/vgl-main-menu-gtk.c:417 msgid "_Help" msgstr "_Hilfe" #: ../src/vgl-main-menu-hildon22.c:228 ../src/vgl-main-menu-hildon22.c:350 msgid "Select radio" msgstr "Radio auswählen" #: ../src/vgl-main-menu-hildon22.c:230 #, c-format msgid "%s's library" msgstr "Musiksammlung von %s" #: ../src/vgl-main-menu-hildon22.c:232 #, c-format msgid "%s's neighbours" msgstr "Nachbarn von %s" #: ../src/vgl-main-menu-hildon22.c:234 #, c-format msgid "%s's loved tracks" msgstr "Lieblingstitel von %s" #: ../src/vgl-main-menu-hildon22.c:236 #, c-format msgid "%s's mix" msgstr "Mix von %s" #: ../src/vgl-main-menu-hildon22.c:238 #, c-format msgid "%s's playlist" msgstr "Wiedergabeliste von %s" #: ../src/vgl-main-menu-hildon22.c:240 #, c-format msgid "%s's recommendations" msgstr "Empfehlungen von %s" #: ../src/vgl-main-menu-hildon22.c:242 #, c-format msgid "%s's music tagged..." msgstr "Musik von %s mit Tags..." #: ../src/vgl-main-menu-hildon22.c:269 msgid "Type any user name" msgstr "Benutzernamen eingeben" #: ../src/vgl-main-menu-hildon22.c:413 msgid "Import servers file" msgstr "Server-Datei importieren" #: ../src/vgl-main-menu-hildon22.c:418 msgid "Play radio" msgstr "Radio hören" #: ../src/vgl-main-menu-hildon22.c:423 msgid "People" msgstr "Leute" #: ../src/vgl-main-window.c:81 msgid "Start playing" msgstr "Wiedergabe starten" #: ../src/vgl-main-window.c:85 msgid "Stop playing" msgstr "Wiedergabe stoppen" #: ../src/vgl-main-window.c:89 msgid "Skip this track" msgstr "Diesen Titel überspringen" #: ../src/vgl-main-window.c:93 msgid "Mark as loved" msgstr "Zu Lieblingstiteln hinzufügen" #: ../src/vgl-main-window.c:97 msgid "Ban this track" msgstr "Nie mehr spielen" #: ../src/vgl-main-window.c:101 msgid "Recommend this track" msgstr "Titel empfehlen" #: ../src/vgl-main-window.c:109 msgid "Edit tags for this track" msgstr "Tags dieses Titels ändern" #: ../src/vgl-main-window.c:113 msgid "Add this track to playlist" msgstr "Titel zur Wiedergabeliste hinzufügen" #: ../src/vgl-main-window.c:197 msgid "Artist:\n" msgstr "Interpret:\n" #: ../src/vgl-main-window.c:203 msgid "Title:\n" msgstr "Titel:\n" #: ../src/vgl-main-window.c:210 msgid "Album:\n" msgstr "Album:\n" #: ../src/vgl-main-window.c:219 msgid "Listening to " msgstr "Es läuft " #: ../src/vgl-main-window.c:348 ../src/vgl-main-window.c:349 msgid "Stopped" msgstr "Gestoppt" #: ../src/vgl-main-window.c:373 msgid "Playing..." msgstr "Spiele..." #: ../src/vgl-main-window.c:388 ../src/vgl-main-window.c:389 msgid "Connecting..." msgstr "Verbinde..." #: ../src/vgl-main-window.c:408 msgid "Disconnected" msgstr "Nicht verbunden" #: ../src/vgl-main-window.c:486 #, c-format msgid "Volume: %d/100" msgstr "Lautstärke: %d/100" #: ../src/vgl-sb-plugin.c:34 msgid "No artist" msgstr "Kein Interpret" #: ../src/vgl-sb-plugin.c:35 msgid "No track" msgstr "Kein Titel" #: ../src/vgl-sb-plugin.c:36 msgid "No album" msgstr "Kein Album" #: ../src/vgl-sb-plugin.c:38 msgid "Play" msgstr "Wiedergabe" #: ../src/vgl-sb-plugin.c:39 msgid "Stop" msgstr "Stop" #: ../src/vgl-sb-plugin.c:40 msgid "Skip" msgstr "Überspringen" #: ../src/vgl-sb-plugin.c:41 msgid "Love" msgstr "Als Lieblingstitel markieren" #: ../src/vgl-sb-plugin.c:42 msgid "Ban" msgstr "Nie mehr spielen" #: ../src/vgl-sb-plugin.c:43 msgid "Show main window" msgstr "Hauptfenster anzeigen" #: ../src/vgl-sb-plugin.c:44 msgid "Close Vagalume" msgstr "Vagalume beenden" #: ../src/vgl-tray-icon.c:23 msgid " Stopped " msgstr " Gestoppt " #: ../src/vgl-tray-icon.c:24 #, c-format msgid "" " Now playing: \n" " %s \n" " by %s " msgstr "" " Aktueller Titel: \n" " %s \n" " von %s " #: ../src/vgl-tray-icon.c:26 #, c-format msgid " by %s" msgstr " von %s" #: ../src/vgl-tray-icon.c:27 #, c-format msgid "" " by %s\n" " from %s" msgstr "" " von %s\n" " aus %s" vagalume-0.8.6/COPYING0000644000000000000000000010451312233552617011262 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . vagalume-0.8.6/aclocal.m40000644000000000000000000135521112233553542012071 00000000000000# generated automatically by aclocal 1.14 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) MSGFMT_OPTS= AC_MSG_CHECKING([if msgfmt accepts -c]) GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) AC_SUBST(MSGFMT_OPTS) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *-*-openbsd*) CATOBJEXT=.mo DATADIRNAME=share ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.ac. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" glib_save_datarootdir="$datarootdir" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix datarootdir=`eval echo "${datarootdir}"` if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" datarootdir="$glib_save_datarootdir" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_ac,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) # # Create a temporary file with TEST-FILE as its contents and pass the # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with # 0 and perform ACTION-IF-FAIL for any other exit status. AC_DEFUN([GLIB_RUN_PROG], [cat >conftest.foo <<_ACEOF $2 _ACEOF if AC_RUN_LOG([$1 conftest.foo]); then m4_ifval([$3], [$3], [:]) m4_ifvaln([$4], [else $4])dnl echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD fi]) dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) # serial 42 IT_PROG_INTLTOOL AC_DEFUN([IT_PROG_INTLTOOL], [ AC_PREREQ([2.50])dnl AC_REQUIRE([AM_NLS])dnl case "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "$1"; then AC_MSG_CHECKING([for intltool >= $1]) AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi AC_SUBST([AM_DEFAULT_VERBOSITY]) INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' AC_SUBST(INTLTOOL_V_MERGE) AC_SUBST(INTLTOOL__v_MERGE_) AC_SUBST(INTLTOOL__v_MERGE_0) INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) AC_SUBST(intltool__v_merge_options_) AC_SUBST(intltool__v_merge_options_0) INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' _IT_SUBST(INTLTOOL_DESKTOP_RULE) _IT_SUBST(INTLTOOL_DIRECTORY_RULE) _IT_SUBST(INTLTOOL_KEYS_RULE) _IT_SUBST(INTLTOOL_PROP_RULE) _IT_SUBST(INTLTOOL_OAF_RULE) _IT_SUBST(INTLTOOL_PONG_RULE) _IT_SUBST(INTLTOOL_SERVER_RULE) _IT_SUBST(INTLTOOL_SHEET_RULE) _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) _IT_SUBST(INTLTOOL_UI_RULE) _IT_SUBST(INTLTOOL_XAM_RULE) _IT_SUBST(INTLTOOL_KBD_RULE) _IT_SUBST(INTLTOOL_XML_RULE) _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) _IT_SUBST(INTLTOOL_CAVES_RULE) _IT_SUBST(INTLTOOL_SCHEMAS_RULE) _IT_SUBST(INTLTOOL_THEME_RULE) _IT_SUBST(INTLTOOL_SERVICE_RULE) _IT_SUBST(INTLTOOL_POLICY_RULE) # Check the gettext tools to make sure they are GNU AC_PATH_PROG(XGETTEXT, xgettext) AC_PATH_PROG(MSGMERGE, msgmerge) AC_PATH_PROG(MSGFMT, msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi AC_PATH_PROG(INTLTOOL_PERL, perl) if test -z "$INTLTOOL_PERL"; then AC_MSG_ERROR([perl not found]) fi AC_MSG_CHECKING([for perl >= 5.8.1]) $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then AC_MSG_ERROR([perl 5.8.1 is required for intltool]) else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` AC_MSG_RESULT([$IT_PERL_VERSION]) fi if test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile AC_SUBST(ALL_LINGUAS) # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then AC_LINK_IFELSE( [AC_LANG_PROGRAM([[]], [[extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr]])], [DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share dnl in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [DATADIRNAME=share], [DATADIRNAME=lib]) ;; *) [DATADIRNAME=lib] ;; esac]) fi AC_SUBST(DATADIRNAME) IT_PO_SUBDIR([po]) ]) # IT_PO_SUBDIR(DIRNAME) # --------------------- # All po subdirs have to be declared with this macro; the subdir "po" is # declared by IT_PROG_INTLTOOL. # AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. dnl dnl The following CONFIG_COMMANDS should be executed at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) fi rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.in" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ]) ])dnl ]) # _IT_SUBST(VARIABLE) # ------------------- # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST # AC_DEFUN([_IT_SUBST], [ AC_SUBST([$1]) m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) ] ) # deprecated macros AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # A hint is needed for aclocal from Automake <= 1.9.4: # AC_DEFUN([AC_PROG_INTLTOOL], ...) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) 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" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -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:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 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. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -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:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) 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 AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) 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" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi 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 _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) 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 AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # 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. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 3337 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.2]) m4_define([LT_PACKAGE_REVISION], [1.3337]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' macro_revision='1.3337' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) # nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.14' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.14], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.14])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR vagalume-0.8.6/Makefile.in0000644000000000000000000014124512233553544012277 00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # This file is part of Vagalume and is published under the GNU GPLv3. # # Copyright (C) 2007-2011, 2013 Igalia, S.L. # # See the README file for more details. # VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_DBUS_SUPPORT_TRUE@am__append_1 = vagalumectl.1 subdir = . DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in $(top_srcdir)/data/vagalume-rfs.sh.in \ $(top_srcdir)/data/vagalume.conf.in AUTHORS COPYING INSTALL \ NEWS README THANKS TODO compile config.guess config.sub \ install-sh missing ltmain.sh ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = data/vagalume-rfs.sh data/vagalume.conf CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(restoresettingsexecscriptdir)" \ "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(appdatadir)" \ "$(DESTDIR)$(backupconfdir)" "$(DESTDIR)$(desktopentrydir)" \ "$(DESTDIR)$(icon26dir)" "$(DESTDIR)$(icon48dir)" \ "$(DESTDIR)$(iconscalabledir)" "$(DESTDIR)$(pixmapdir)" \ "$(DESTDIR)$(sbplugindesktopentrydir)" \ "$(DESTDIR)$(serviceentrydir)" "$(DESTDIR)$(themebigicondir)" \ "$(DESTDIR)$(themesmallicondir)" SCRIPTS = $(bin_SCRIPTS) $(restoresettingsexecscript_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man1_MANS) DATA = $(appdata_DATA) $(backupconf_DATA) $(desktopentry_DATA) \ $(icon26_DATA) $(icon48_DATA) $(iconscalable_DATA) \ $(pixmap_DATA) $(sbplugindesktopentry_DATA) \ $(serviceentry_DATA) $(themebigicon_DATA) \ $(themesmallicon_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_MAKEFLAGS = @AM_MAKEFLAGS@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BACKUP_CONFIGURATION_DIR = @BACKUP_CONFIGURATION_DIR@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEAR_DEVICE_SCRIPTS_DIR = @CLEAR_DEVICE_SCRIPTS_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISABLE_LAST_FM = @DISABLE_LAST_FM@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS = @EXTRA_CFLAGS@ EXTRA_LIBS = @EXTRA_LIBS@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO_CFLAGS = @GIO_CFLAGS@ GIO_LIBS = @GIO_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GStreamer_CFLAGS = @GStreamer_CFLAGS@ GStreamer_LIBS = @GStreamer_LIBS@ Gtk_CFLAGS = @Gtk_CFLAGS@ Gtk_LIBS = @Gtk_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PLATFORM = @PLATFORM@ PLATFORMVERS = @PLATFORMVERS@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RESTORE_SETTINGS_SCRIPTS_DIR = @RESTORE_SETTINGS_SCRIPTS_DIR@ SBPLUGIN_CFLAGS = @SBPLUGIN_CFLAGS@ SBPLUGIN_LIBS = @SBPLUGIN_LIBS@ SCR_RESOLUTION = @SCR_RESOLUTION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAGALUME_CONF_FULLPATH = @VAGALUME_CONF_FULLPATH@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ appdatadir = @appdatadir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ dbus_CFLAGS = @dbus_CFLAGS@ dbus_LIBS = @dbus_LIBS@ dbus_glib_CFLAGS = @dbus_glib_CFLAGS@ dbus_glib_LIBS = @dbus_glib_LIBS@ desktopentrydir = @desktopentrydir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gconf2_CFLAGS = @gconf2_CFLAGS@ gconf2_LIBS = @gconf2_LIBS@ hildon_CFLAGS = @hildon_CFLAGS@ hildon_LIBS = @hildon_LIBS@ hildondesktop_CFLAGS = @hildondesktop_CFLAGS@ hildondesktop_LIBS = @hildondesktop_LIBS@ hildonfm_CFLAGS = @hildonfm_CFLAGS@ hildonfm_LIBS = @hildonfm_LIBS@ hildonwm_CFLAGS = @hildonwm_CFLAGS@ hildonwm_LIBS = @hildonwm_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ icon48dir = @icon48dir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libconic_CFLAGS = @libconic_CFLAGS@ libconic_LIBS = @libconic_LIBS@ libcurl_CFLAGS = @libcurl_CFLAGS@ libcurl_LIBS = @libcurl_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libnotify_CFLAGS = @libnotify_CFLAGS@ libnotify_LIBS = @libnotify_LIBS@ libosso_CFLAGS = @libosso_CFLAGS@ libosso_LIBS = @libosso_LIBS@ libproxy_CFLAGS = @libproxy_CFLAGS@ libproxy_LIBS = @libproxy_LIBS@ libxml2_CFLAGS = @libxml2_CFLAGS@ libxml2_LIBS = @libxml2_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pixmapdir = @pixmapdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sbplugindesktopentrydir = @sbplugindesktopentrydir@ sbplugindir = @sbplugindir@ serviceentrydir = @serviceentrydir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ themebigicondir = @themebigicondir@ themesmallicondir = @themesmallicondir@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ TRANSLATORS \ autogen.sh \ data/buttons \ data/cover \ data/icons \ data/servers.xml.in \ data/vagalume-rfs.sh.in \ data/vagalume-sb-plugin.desktop \ data/vagalume.conf.in \ data/vagalume.desktop.in.in \ data/vagalume.desktop.maemo \ data/vagalume.desktop.moblin \ data/vagalume.service.in \ scripts/vagalumectl \ vagalume.1 \ vagalumectl.1 CLEANFILES = data/servers.xml \ data/vagalume.desktop \ data/vagalume.desktop.in \ data/vagalume.service SUBDIRS = src po manpages = vagalume.1 $(am__append_1) pixmap_DATA = data/icons/vagalume.xpm icon48_DATA = data/icons/48x48/* appdata_DATA = data/cover/$(SCR_RESOLUTION)/cover.png data/servers.xml desktopentry_DATA = data/vagalume.desktop @HAVE_DBUS_SUPPORT_TRUE@serviceentry_DATA = data/vagalume.service @HAVE_DBUS_SUPPORT_TRUE@bin_SCRIPTS = scripts/vagalumectl @HAVE_MAEMO_SB_PLUGIN_TRUE@sbplugindesktopentry_DATA = data/vagalume-sb-plugin.desktop @MAEMO_PLATFORM_TRUE@icon26dir = $(datadir)/icons/hicolor/26x26/apps @MAEMO_PLATFORM_TRUE@icon26_DATA = data/icons/26x26/* @MAEMO_PLATFORM_TRUE@iconscalabledir = $(datadir)/icons/hicolor/scalable/apps @MAEMO_PLATFORM_TRUE@iconscalable_DATA = data/icons/scalable/* @MAEMO_PLATFORM_FALSE@themebigicon_DATA = data/buttons/big/*.svg @MAEMO_PLATFORM_TRUE@themebigicon_DATA = data/buttons/big/*.png @MAEMO_PLATFORM_FALSE@themesmallicon_DATA = data/buttons/small/*.svg @MAEMO_PLATFORM_TRUE@themesmallicon_DATA = data/buttons/small/*.png @MAEMO_PLATFORM_TRUE@backupconfdir = @BACKUP_CONFIGURATION_DIR@ @MAEMO_PLATFORM_TRUE@backupconf_DATA = data/vagalume.conf @MAEMO_PLATFORM_TRUE@restoresettingsexecscriptdir = @RESTORE_SETTINGS_SCRIPTS_DIR@ @MAEMO_PLATFORM_TRUE@restoresettingsexecscript_SCRIPTS = data/vagalume-rfs.sh @MAEMO_PLATFORM_FALSE@man1_MANS = $(manpages) edit = sed -e 's,@BINDIR\@,$(bindir),g' -e 's,@PIXMAPDIR\@,$(pixmapdir),g' all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 data/vagalume-rfs.sh: $(top_builddir)/config.status $(top_srcdir)/data/vagalume-rfs.sh.in cd $(top_builddir) && $(SHELL) ./config.status $@ data/vagalume.conf: $(top_builddir)/config.status $(top_srcdir)/data/vagalume.conf.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) install-restoresettingsexecscriptSCRIPTS: $(restoresettingsexecscript_SCRIPTS) @$(NORMAL_INSTALL) @list='$(restoresettingsexecscript_SCRIPTS)'; test -n "$(restoresettingsexecscriptdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(restoresettingsexecscriptdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(restoresettingsexecscriptdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(restoresettingsexecscriptdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(restoresettingsexecscriptdir)$$dir" || exit $$?; \ } \ ; done uninstall-restoresettingsexecscriptSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(restoresettingsexecscript_SCRIPTS)'; test -n "$(restoresettingsexecscriptdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(restoresettingsexecscriptdir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-man1: $(man1_MANS) @$(NORMAL_INSTALL) @list1='$(man1_MANS)'; \ list2=''; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS)'; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-appdataDATA: $(appdata_DATA) @$(NORMAL_INSTALL) @list='$(appdata_DATA)'; test -n "$(appdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(appdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(appdatadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(appdatadir)" || exit $$?; \ done uninstall-appdataDATA: @$(NORMAL_UNINSTALL) @list='$(appdata_DATA)'; test -n "$(appdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(appdatadir)'; $(am__uninstall_files_from_dir) install-backupconfDATA: $(backupconf_DATA) @$(NORMAL_INSTALL) @list='$(backupconf_DATA)'; test -n "$(backupconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(backupconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(backupconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(backupconfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(backupconfdir)" || exit $$?; \ done uninstall-backupconfDATA: @$(NORMAL_UNINSTALL) @list='$(backupconf_DATA)'; test -n "$(backupconfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(backupconfdir)'; $(am__uninstall_files_from_dir) install-desktopentryDATA: $(desktopentry_DATA) @$(NORMAL_INSTALL) @list='$(desktopentry_DATA)'; test -n "$(desktopentrydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(desktopentrydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(desktopentrydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopentrydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopentrydir)" || exit $$?; \ done uninstall-desktopentryDATA: @$(NORMAL_UNINSTALL) @list='$(desktopentry_DATA)'; test -n "$(desktopentrydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(desktopentrydir)'; $(am__uninstall_files_from_dir) install-icon26DATA: $(icon26_DATA) @$(NORMAL_INSTALL) @list='$(icon26_DATA)'; test -n "$(icon26dir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(icon26dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(icon26dir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(icon26dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(icon26dir)" || exit $$?; \ done uninstall-icon26DATA: @$(NORMAL_UNINSTALL) @list='$(icon26_DATA)'; test -n "$(icon26dir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(icon26dir)'; $(am__uninstall_files_from_dir) install-icon48DATA: $(icon48_DATA) @$(NORMAL_INSTALL) @list='$(icon48_DATA)'; test -n "$(icon48dir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(icon48dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(icon48dir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(icon48dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(icon48dir)" || exit $$?; \ done uninstall-icon48DATA: @$(NORMAL_UNINSTALL) @list='$(icon48_DATA)'; test -n "$(icon48dir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(icon48dir)'; $(am__uninstall_files_from_dir) install-iconscalableDATA: $(iconscalable_DATA) @$(NORMAL_INSTALL) @list='$(iconscalable_DATA)'; test -n "$(iconscalabledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(iconscalabledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(iconscalabledir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(iconscalabledir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(iconscalabledir)" || exit $$?; \ done uninstall-iconscalableDATA: @$(NORMAL_UNINSTALL) @list='$(iconscalable_DATA)'; test -n "$(iconscalabledir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(iconscalabledir)'; $(am__uninstall_files_from_dir) install-pixmapDATA: $(pixmap_DATA) @$(NORMAL_INSTALL) @list='$(pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pixmapdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pixmapdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pixmapdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pixmapdir)" || exit $$?; \ done uninstall-pixmapDATA: @$(NORMAL_UNINSTALL) @list='$(pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pixmapdir)'; $(am__uninstall_files_from_dir) install-sbplugindesktopentryDATA: $(sbplugindesktopentry_DATA) @$(NORMAL_INSTALL) @list='$(sbplugindesktopentry_DATA)'; test -n "$(sbplugindesktopentrydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbplugindesktopentrydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbplugindesktopentrydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sbplugindesktopentrydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(sbplugindesktopentrydir)" || exit $$?; \ done uninstall-sbplugindesktopentryDATA: @$(NORMAL_UNINSTALL) @list='$(sbplugindesktopentry_DATA)'; test -n "$(sbplugindesktopentrydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(sbplugindesktopentrydir)'; $(am__uninstall_files_from_dir) install-serviceentryDATA: $(serviceentry_DATA) @$(NORMAL_INSTALL) @list='$(serviceentry_DATA)'; test -n "$(serviceentrydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(serviceentrydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(serviceentrydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(serviceentrydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(serviceentrydir)" || exit $$?; \ done uninstall-serviceentryDATA: @$(NORMAL_UNINSTALL) @list='$(serviceentry_DATA)'; test -n "$(serviceentrydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(serviceentrydir)'; $(am__uninstall_files_from_dir) install-themebigiconDATA: $(themebigicon_DATA) @$(NORMAL_INSTALL) @list='$(themebigicon_DATA)'; test -n "$(themebigicondir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(themebigicondir)'"; \ $(MKDIR_P) "$(DESTDIR)$(themebigicondir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(themebigicondir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(themebigicondir)" || exit $$?; \ done uninstall-themebigiconDATA: @$(NORMAL_UNINSTALL) @list='$(themebigicon_DATA)'; test -n "$(themebigicondir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(themebigicondir)'; $(am__uninstall_files_from_dir) install-themesmalliconDATA: $(themesmallicon_DATA) @$(NORMAL_INSTALL) @list='$(themesmallicon_DATA)'; test -n "$(themesmallicondir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(themesmallicondir)'"; \ $(MKDIR_P) "$(DESTDIR)$(themesmallicondir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(themesmallicondir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(themesmallicondir)" || exit $$?; \ done uninstall-themesmalliconDATA: @$(NORMAL_UNINSTALL) @list='$(themesmallicon_DATA)'; test -n "$(themesmallicondir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(themesmallicondir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(SCRIPTS) $(MANS) $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(restoresettingsexecscriptdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(appdatadir)" "$(DESTDIR)$(backupconfdir)" "$(DESTDIR)$(desktopentrydir)" "$(DESTDIR)$(icon26dir)" "$(DESTDIR)$(icon48dir)" "$(DESTDIR)$(iconscalabledir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(sbplugindesktopentrydir)" "$(DESTDIR)$(serviceentrydir)" "$(DESTDIR)$(themebigicondir)" "$(DESTDIR)$(themesmallicondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-appdataDATA install-backupconfDATA \ install-desktopentryDATA install-icon26DATA install-icon48DATA \ install-iconscalableDATA install-man install-pixmapDATA \ install-sbplugindesktopentryDATA install-serviceentryDATA \ install-themebigiconDATA install-themesmalliconDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS \ install-restoresettingsexecscriptSCRIPTS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-appdataDATA uninstall-backupconfDATA \ uninstall-binSCRIPTS uninstall-desktopentryDATA \ uninstall-icon26DATA uninstall-icon48DATA \ uninstall-iconscalableDATA uninstall-man uninstall-pixmapDATA \ uninstall-restoresettingsexecscriptSCRIPTS \ uninstall-sbplugindesktopentryDATA uninstall-serviceentryDATA \ uninstall-themebigiconDATA uninstall-themesmalliconDATA uninstall-man: uninstall-man1 .MAKE: $(am__recursive_targets) all install-am install-exec-am \ install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ dist-tarZ dist-xz dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-appdataDATA install-backupconfDATA install-binSCRIPTS \ install-data install-data-am install-desktopentryDATA \ install-dvi install-dvi-am install-exec install-exec-am \ install-exec-hook install-html install-html-am \ install-icon26DATA install-icon48DATA install-iconscalableDATA \ install-info install-info-am install-man install-man1 \ install-pdf install-pdf-am install-pixmapDATA install-ps \ install-ps-am install-restoresettingsexecscriptSCRIPTS \ install-sbplugindesktopentryDATA install-serviceentryDATA \ install-strip install-themebigiconDATA \ install-themesmalliconDATA installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-appdataDATA uninstall-backupconfDATA \ uninstall-binSCRIPTS uninstall-desktopentryDATA \ uninstall-icon26DATA uninstall-icon48DATA \ uninstall-iconscalableDATA uninstall-man uninstall-man1 \ uninstall-pixmapDATA \ uninstall-restoresettingsexecscriptSCRIPTS \ uninstall-sbplugindesktopentryDATA uninstall-serviceentryDATA \ uninstall-themebigiconDATA uninstall-themesmalliconDATA @INTLTOOL_DESKTOP_RULE@ data/vagalume.service: Makefile data/vagalume.service.in rm -f data/vagalume.service $(edit) data/vagalume.service.in > data/vagalume.service data/vagalume.desktop.in: Makefile data/vagalume.desktop.in.in rm -f data/vagalume.desktop.in $(edit) data/vagalume.desktop.in.in > data/vagalume.desktop.in if test -f "data/vagalume.desktop.$(PLATFORM)" ; then \ cat "data/vagalume.desktop.$(PLATFORM)" >> data/vagalume.desktop.in ; \ fi data/servers.xml: Makefile data/servers.xml.in rm -f data/servers.xml if test "x$(DISABLE_LAST_FM)" = "xyes"; then \ sed '/BEGIN_LAST_FM/,/END_LAST_FM/d' \ data/servers.xml.in > data/servers.xml ; \ else \ grep -v '_LAST_FM' data/servers.xml.in > data/servers.xml ; \ fi install-exec-hook: if test "$(PLATFORM)" = "maemo"; then \ $(MKDIR_P) "$(DESTDIR)/@CLEAR_DEVICE_SCRIPTS_DIR@" ; \ $(LN_S) "@RESTORE_SETTINGS_SCRIPTS_DIR@/vagalume-rfs.sh" \ "$(DESTDIR)/@CLEAR_DEVICE_SCRIPTS_DIR@/vagalume-cud.sh" ; \ if test "x$(PLATFORMVERS)" = "x5"; then \ ln -s /opt/vagalume/bin/vagalume $(DESTDIR)/usr/bin ; \ ln -s /opt/vagalume/bin/vagalumectl $(DESTDIR)/usr/bin ; \ fi ; \ fi dist-hook: @if test -d "$(srcdir)/.git"; \ then \ echo Creating ChangeLog && \ ( cd "$(top_srcdir)" && \ $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ || ( rm -f ChangeLog.tmp ; \ echo Failed to generate ChangeLog >&2 ); \ else \ echo A git clone is required to generate a ChangeLog >&2; \ fi # 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: vagalume-0.8.6/install-sh0000755000000000000000000003325512233553543012236 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: vagalume-0.8.6/README0000644000000000000000000000625512233552617011113 00000000000000Vagalume - Client for Last.fm and compatible services ----------------------------------------------------- Vagalume is a Last.fm client based on Gnome, and specially designed to work in the Maemo platform. It is known to work in Nokia devices with the following operating systems: * Internet Tablet OS 2006 (Nokia 770) * Internet Tablet OS 2007 (Nokia N800 and 770 using Hacker Edition) * Internet Tablet OS 2008 (Nokia N810 and updated N800) * Maemo 5 (Nokia N900) Besides that, it also works in standard PCs. Vagalume has been tested and developed in a desktop PC running Debian GNU/Linux, but it is reported to work in other GNU/Linux distributions and it should work in any Unix-like system that meets the following requirements: * GStreamer 0.10 or 1.0 * GTK+ 2 or 3 * Gnome libxml2 * libcurl There is also support for Intel's Moblin platform. Vagalume has the following features: * It plays Last.fm streams using the Last.fm protocol v1.2 * It can play any Last.fm radio: library, neighbours, loved tracks, or any other arbitrary URL. * It can download free tracks * It implements the Audioscrobbler Realtime Submission Protocol v1.2, specifically: * Now Playing information * Scrobbling of tracks that you listen * Love/Ban ratings * It displays the album cover of the track being played * Tray icon and desktop notifications * Bookmarks * Gettext support * D-BUS services and a script to control them from the command line * The user can tag artists, tracks and albums * The user can send recommendations to other users * The user can add tracks to their playlist * Support for any server compatible with the Last.fm protocol -------------------------------------------------------- Vagalume is (c) 2007-2013 Igalia, S.L. http://vagalume.igalia.com/ http://garage.maemo.org/projects/vagalume/ The default icons have been taken from the Gnome 2.20.0 icon theme, downloaded from this URL: ftp://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme/2.20/ Vagalume also contains a free MD5 implementation that is (c) 1999 Aladdin Enterprises. See the files src/md5/md5.c and src/md5/md5.h for details See AUTHORS file for details on authors Vagalume is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. Vagalume 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 COPYING file for more details. -------------------------------------------------------- The following documents have been the main sources of documentation for implementing the Last.fm protocols: * An unofficial documentation of the Last.fm protocol version 1.2 (c) 2007 Tobias Brennecke, Jonas F. Jensen and Matt Brown http://code.google.com/p/thelastripper/wiki/LastFM12UnofficialDocumentation * The Audioscrobbler Realtime Submission Protocol v1.2 (c) 2002-2007 Audioscrobbler Ltd. http://www.audioscrobbler.net/development/protocol/ * The official Last.fm Web Services API (c) 2010 Last.fm Ltd. http://www.last.fm/api vagalume-0.8.6/compile0000755000000000000000000001624512233553543011610 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: vagalume-0.8.6/depcomp0000755000000000000000000005601612233553544011610 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: vagalume-0.8.6/missing0000755000000000000000000001533112233553543011624 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2012-06-26.16; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'automa4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: vagalume-0.8.6/configure.ac0000644000000000000000000005013212233552617012512 00000000000000####################################### ### Initialization and basic checks ### ####################################### AC_INIT([vagalume], [0.8.6]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST AC_PROG_CC AM_PROG_CC_C_O AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LIBTOOL AC_PROG_LN_S AC_PROG_MKDIR_P AC_HEADER_STDC IT_PROG_INTLTOOL([0.35.0], [no-xml]) # Some variables VAGALUME_CONFIG_DIR=".vagalume" appdatadir="\${datadir}/vagalume" themebigicondir="\${appdatadir}/icons/hicolor/scalable/apps" themesmallicondir="\${appdatadir}/icons/hicolor/scalable/apps" # Defines for config.h AC_DEFINE_UNQUOTED([KERNEL_NAME],"`uname -s`",[Name of the kernel]) AC_DEFINE_UNQUOTED([KERNEL_NAME_LC],"`uname -s|tr A-Z a-z`", [Name of the kernel (lowercase)]) AC_DEFINE_UNQUOTED([ARCH],"`uname -m`",[Architecture]) AC_DEFINE_UNQUOTED(VAGALUME_CONFIG_DIR, "$VAGALUME_CONFIG_DIR", [Vagalume configuration directory]) # Extra flags for compiler and linker EXTRA_CFLAGS="" EXTRA_LIBS="" ##################################### ### Basic dependencies - Required ### ##################################### PKG_CHECK_MODULES(libxml2, libxml-2.0) EXTRA_CFLAGS="$EXTRA_CFLAGS $libxml2_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libxml2_LIBS" PKG_CHECK_MODULES(libcurl, libcurl) EXTRA_CFLAGS="$EXTRA_CFLAGS $libcurl_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libcurl_LIBS" if $PKG_CONFIG --exists gstreamer-1.0; then DETECTEDGST=1.0 elif $PKG_CONFIG --exists gstreamer-0.10; then DETECTEDGST=0.10 else AC_MSG_ERROR([This program requires either GStreamer 0.10 or 1.0.]) fi if $PKG_CONFIG --exists gtk+-3.0; then DETECTEDGTK=3 elif $PKG_CONFIG --exists gtk+-2.0; then DETECTEDGTK=2 else AC_MSG_ERROR([This program requires either GTK+ 2 or GTK+ 3.]) fi # Platform support AC_ARG_WITH(gtk-version, [ Gtk+ version: --with-gtk-version=2 Use GTK+ 2 --with-gtk-version=3 Use GTK+ 3 (default if available)], GTKVERSION=$withval, GTKVERSION=$DETECTEDGTK) GTKMOD="gtk+-${GTKVERSION}.0" PKG_CHECK_MODULES(Gtk, $GTKMOD) EXTRA_CFLAGS="$EXTRA_CFLAGS $Gtk_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $Gtk_LIBS" echo "Compiling with GTK+ version $GTKVERSION" AC_ARG_WITH(gstreamer, [ GStreamer version: --with-gstreamer=0.10 Use GStreamer 0.10 --with-gstreamer=1.0 Use GStreamer 1.0 (default if available)], GSTVERSION=$withval, GSTVERSION=$DETECTEDGST) GSTMOD="gstreamer-${GSTVERSION}" PKG_CHECK_MODULES(GStreamer, $GSTMOD) EXTRA_CFLAGS="$EXTRA_CFLAGS $GStreamer_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $GStreamer_LIBS" echo "Compiling with GStreamer version $GSTVERSION" ##################################### ### Other dependencies - Optional ### ##################################### PKG_CHECK_MODULES(GIO, gio-2.0, [have_gio="yes"], [have_gio="no"]) PKG_CHECK_MODULES(dbus_glib, dbus-glib-1, [have_dbus_glib="yes"], [have_dbus_glib="no"]) PKG_CHECK_MODULES(libnotify, libnotify >= 0.4.1, [have_libnotify="yes"], [have_libnotify="no"]) PKG_CHECK_MODULES(libproxy, libproxy-1.0, [have_libproxy="yes"], [have_libproxy="no"]) # Use libnotify only if it's linked against the same GTK+ version if test "$have_libnotify" = "yes"; then if $PKG_CONFIG --print-requires libnotify | grep -q '^gtk+-.\.0'; then if ! $PKG_CONFIG --print-requires libnotify | grep -q ^$GTKMOD ; then echo "Disabling libnotify since it uses a different GTK+ version" have_libnotify="no" fi fi fi # D-BUS versions < 1.0 require DBUS_API_SUBJECT_TO_CHANGE if test "$have_dbus_glib" = "yes"; then if ! $PKG_CONFIG --atleast-version=1.0 dbus-1; then dbus_glib_CFLAGS="$dbus_glib_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" fi fi # Tray icon support requires Gtk 2.10 and libnotify if test "$have_libnotify" = "yes"; then echo -n "checking for GTK+ >= 2.10... " if $PKG_CONFIG --atleast-version=2.10 "$GTKMOD"; then have_tray_icon="yes" else have_tray_icon="no" fi echo $have_tray_icon fi # gtk_entry_completion_set_inline_selection requires gtk 2.12 echo -n "checking for GTK+ >= 2.12... " if $PKG_CONFIG --atleast-version=2.12 "$GTKMOD"; then have_gtk_2_12="yes" AC_DEFINE([HAVE_ENTRY_COMPLETION_INLINE_SELECTION],[1], [Defined if gtk_entry_completion_set_inline_selection () exists]) AC_DEFINE([HAVE_GDK_THREADS_ADD_API],[1], [Defined if gtk_threads_add_* () exists]) AC_DEFINE([HAVE_GTK_ABOUT_DIALOG_PROGRAM_NAME],[1], [Defined if GtkAboutDialog:program-name exists]) AC_DEFINE([HAVE_GTK_TOOLTIP],[1], [Defined if gtk_widget_set_tooltip_text() exists]) else have_gtk_2_12="no" fi echo $have_gtk_2_12 # g_timeout_add_seconds requires gtk 2.14 echo -n "checking for GTK+ >= 2.14... " if $PKG_CONFIG --atleast-version=2.14 "$GTKMOD"; then have_gtk_2_14="yes" AC_DEFINE([HAVE_GDK_THREADS_ADD_TIMEOUT_SECONDS],[1], [Defined if gdk_threads_add_timeout_seconds() exists]) AC_DEFINE([HAVE_GTK_DIALOG_GET_CONTENT_AREA],[1], [Defined if gtk_dialog_get_content_area() exists]) else have_gtk_2_14="no" fi echo $have_gtk_2_14 # gtk_about_dialog_set_{url,email}_hook are deprecated in Gtk+ 2.18 echo -n "checking for GTK+ >= 2.18... " if $PKG_CONFIG --atleast-version=2.18 "$GTKMOD"; then have_gtk_2_18="yes" have_gio="no" else have_gtk_2_18="no" fi echo $have_gtk_2_18 # GChecksum and g_strcmp0 require glib 2.16 echo -n "checking for glib >= 2.16... " if $PKG_CONFIG --atleast-version=2.16 glib-2.0; then have_glib_2_16="yes" else have_glib_2_16="no" fi echo $have_glib_2_16 # Check if we have getopt AC_CHECK_LIB(c, getopt, AC_DEFINE([HAVE_GETOPT],[1],[Defined if getopt() exists]), have_getopt="no") # Check if libcurl has curl_easy_escape() AC_CHECK_LIB(curl, curl_easy_escape, AC_DEFINE([HAVE_CURL_EASY_ESCAPE],[1],[If curl_easy_escape() exists]), have_curl_easy_escape="no") ################################# ### User configurable options ### ################################# # Autodetect platform (with ugly hack to detect scratchbox, I know) if $PKG_CONFIG --exists libosso && readlink /etc|grep -q ^/targets; then DETECTED_PLATFORM=maemo else DETECTED_PLATFORM=gnome fi # Platform support AC_ARG_WITH(platform, [ Target platform: --with-platform=detect detect target platform (default) --with-platform=gnome compile for Gnome --with-platform=maemo compile for Maemo --with-platform=moblin compile for Moblin (1024x600), --with-platform=moblin2 compile for Moblin (800x480)], PLATFORM=$withval, PLATFORM=detect) if test "$PLATFORM" = "detect"; then PLATFORM=$DETECTED_PLATFORM elif test "$PLATFORM" = "moblin2"; then PLATFORM=moblin scr_resolution=800x480 fi PLATFORMVERS="" # Check whether to use dbus-glib AC_ARG_ENABLE(dbus, [ --enable-dbus Compile with D-BUS support (default if available) --disable-dbus Don't compile with D-BUS support], use_dbus_glib=$enableval, use_dbus_glib=$have_dbus_glib) if test "$use_dbus_glib" = "yes" -a "$have_dbus_glib" = "no"; then AC_MSG_ERROR([dbus-glib not found, install it or use --disable-dbus]) elif test "$use_dbus_glib" = "yes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS $dbus_glib_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $dbus_glib_LIBS" fi # Check whether to use the "Set IM status" feature AC_ARG_ENABLE(im-status, [ --enable-im-status Enable "Set IM status" feature (default if available) --disable-im-status Disable "Set IM status" feature], set_im_status=$enableval, set_im_status=$use_dbus_glib) if test "$set_im_status" = "yes" -a "$use_dbus_glib" = "no"; then AC_MSG_ERROR([dbus-glib not found, install it or use --disable-im-status]) elif test "$set_im_status" = "yes"; then AC_DEFINE([SET_IM_STATUS],[1],[Defined if "Set IM Status" is enabled]) echo "\"Set IM status\" feature enabled" else echo "\"Set IM status\" feature disabled" fi AM_CONDITIONAL(SET_IM_STATUS, test "$set_im_status" = "yes") # Check whether to enable the tray icon and libnotify support AC_ARG_ENABLE(tray-icon, [ --enable-tray-icon Enable tray icon and libnotify support (Gnome only, default if available) --disable-tray-icon Disable tray icon and libnotify support], enable_tray_icon=$enableval, enable_tray_icon=$have_tray_icon) AC_ARG_ENABLE(libproxy, [ --enable-libproxy Enable system-wide proxy support (default if available) --disable-libproxy Disable system-wide proxy support], use_libproxy=$enableval, use_libproxy=$have_libproxy) if test "$use_libproxy" = "yes" -a "$have_libproxy" = "no"; then AC_MSG_ERROR([libproxy not found, install it or use --disable-libproxy]) fi # Check whether to enable cast checks AC_ARG_ENABLE(cast-checks, [ --enable-cast-checks Turn on cast checks --disable-cast-checks Turn off cast checks (default)], enable_cast_checks=$enableval, enable_cast_checks=no) if test "x$enable_cast_checks" != "xyes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS" fi ################################# ### Platform dependent checks ### ################################# if test "$PLATFORM" = "maemo"; then # Maemo screen resolution scr_resolution=800x480 # Disable tray icon support on Maemo have_tray_icon="no" # Disable GIO support have_gio="no" # Detect the version of the Maemo SDK libossovers=`$PKG_CONFIG libosso --modversion | cut -d . -f 1` if test "$have_curl_easy_escape" = "no"; then PLATFORMVERS=2 elif test "$libossovers" = "1"; then PLATFORMVERS=3 elif test "$libossovers" = "2"; then if test "$have_gtk_2_14" = "yes"; then PLATFORMVERS=5 else PLATFORMVERS=4 fi else AC_MSG_ERROR([Unknown Maemo version]) fi echo "Compiling for Maemo $PLATFORMVERS" # These are required but their names vary between Maemo versions if test "$PLATFORMVERS" = "2" -o "$PLATFORMVERS" = "3"; then PKG_CHECK_MODULES(hildon, hildon-libs) PKG_CHECK_MODULES(hildonfm, hildon-fm) AC_DEFINE([HILDON_LIBS], [1], [Defined if using hildon-libs]) AC_DEFINE([HILDON_FM], [1], [Defined if using hildon-fm]) else PKG_CHECK_MODULES(hildon, hildon-1) PKG_CHECK_MODULES(hildonfm, hildon-fm-2) AC_DEFINE([HILDON_1], [1], [Defined if using hildon-1]) AC_DEFINE([HILDON_FM_2], [1], [Defined if using hildon-fm-2]) fi EXTRA_CFLAGS="$EXTRA_CFLAGS $hildon_CFLAGS $hildonfm_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $hildon_LIBS $hildonfm_LIBS" # Libosso is required PKG_CHECK_MODULES(libosso, libosso osso-af-settings) EXTRA_CFLAGS="$EXTRA_CFLAGS $libosso_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libosso_LIBS" # Libconic is not present in all Maemo versions PKG_CHECK_MODULES(libconic, conic, [have_conic="yes"], [have_conic="no"]) if test "$have_conic" = "yes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS $libconic_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libconic_LIBS" fi desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir` serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir` if test "x$desktopentrydir" = "x"; then AC_MSG_ERROR([Unable to find .desktop directory]) elif test "x$serviceentrydir" = "x"; then AC_MSG_ERROR([Unable to find dbus service directory]) fi # These are optional and only required for the Maemo status bar plugin if test "x$PLATFORMVERS" = "x5"; then echo "The Maemo status bar plugin is not available in Maemo 5" have_sb_plugin="no" else echo "Checking dependencies to compile the Maemo status bar plugin" have_sb_plugin="yes" PKG_CHECK_MODULES(hildondesktop, libhildondesktop, [], [have_sb_plugin="no"]) PKG_CHECK_MODULES(hildonwm, libhildonwm, [], [have_sb_plugin="no"]) PKG_CHECK_MODULES(gconf2, gconf-2.0, [], [have_sb_plugin="no"]) PKG_CHECK_MODULES(dbus, dbus-1, [], [have_sb_plugin="no"]) if test "$have_sb_plugin" = "yes"; then SBPLUGIN_CFLAGS="$Gtk_CFLAGS $hildon_CFLAGS $libosso_CFLAGS \ $hildondesktop_CFLAGS $hildonwm_CFLAGS \ $gconf2_CFLAGS $dbus_CFLAGS" SBPLUGIN_LIBS="$Gtk_LIBS $hildon_LIBS $libosso_LIBS \ $hildondesktop_LIBS $hildonwm_LIBS \ $gconf2_LIBS $dbus_LIBS" sbplugindesktopentrydir=`$PKG_CONFIG osso-af-settings \ --variable=statusbardesktopentrydir` sbplugindir=`$PKG_CONFIG osso-af-settings --variable=hildondesktoplibdir` if test "x$sbplugindesktopentrydir" = "x"; then AC_MSG_ERROR([Unable to find .desktop directory]) elif test "x$sbplugindir" = "x"; then AC_MSG_ERROR([Unable to find hildon desktop libs directory]) fi echo "All required libs found: compiling Maemo status bar plugin" else echo "Some libs are missing: Unable to compile Maemo status bar plugin" fi fi AC_DEFINE([MAEMO], [], [Defined if building for Maemo]) AC_DEFINE([USE_HILDON_WINDOW], [1], [Defined if using HildonWindow]) if test "$PLATFORMVERS" = "2"; then AC_DEFINE([MAEMO2], [], [Defined if building for Maemo 2 (gregale)]) elif test "$PLATFORMVERS" = "3"; then AC_DEFINE([MAEMO3], [], [Defined if building for Maemo 3 (bora)]) elif test "$PLATFORMVERS" = "4"; then AC_DEFINE([MAEMO4], [], [Defined if building for Maemo 4 (chinook)]) else AC_DEFINE([MAEMO5], [], [Defined if building for Maemo 5 (fremantle)]) # Install data in /opt, since the rootfs in the N900 is small bindir="/opt/vagalume/bin" appdatadir="/opt/vagalume" localedir="/opt/vagalume/locale" # Sorry, no Last.fm allowed on mobile phones AC_SUBST(DISABLE_LAST_FM, "yes") fi if test "$PLATFORMVERS" -le "4"; then AC_DEFINE([HAVE_DSPMP3SINK], [1], [Defined if using dspmp3sink]) enable_volume_key_handler="yes" themesmallicondir="\${appdatadir}/icons/hicolor/50x50/apps" fi VAGALUME_CONF_FULLPATH="/home/user/$VAGALUME_CONFIG_DIR" AC_SUBST(VAGALUME_CONF_FULLPATH) BACKUP_CONFIGURATION_DIR="/etc/osso-backup/applications" AC_SUBST(BACKUP_CONFIGURATION_DIR) RESTORE_SETTINGS_SCRIPTS_DIR="/etc/osso-rfs-scripts" AC_SUBST(RESTORE_SETTINGS_SCRIPTS_DIR) CLEAR_DEVICE_SCRIPTS_DIR="/etc/osso-cud-scripts" AC_SUBST(CLEAR_DEVICE_SCRIPTS_DIR) elif test "$PLATFORM" = "gnome"; then echo "Compiling for Gnome" # Desktop screen resolution scr_resolution=desktop if test "$use_dbus_glib" = "yes"; then serviceentrydir=`$PKG_CONFIG dbus-1 --variable=session_bus_services_dir` AC_DEFINE([HAVE_GSD_MEDIA_PLAYER_KEYS], [1], [Media player keys in some keyboards]) fi desktopentrydir="\${datadir}/applications" if test "$enable_tray_icon" = "yes" -a "$have_tray_icon" = "no"; then AC_MSG_ERROR([Unable to compile with tray icon and libnotify support]) elif test "$enable_tray_icon" = "yes"; then echo "Compiling with tray icon and notifications" # Add extra required parameters EXTRA_CFLAGS="$EXTRA_CFLAGS $libnotify_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libnotify_LIBS" else have_tray_icon="no" echo "Compiling without tray icon and notifications" fi elif test "$PLATFORM" = "moblin"; then if test "x$scr_resolution" = "x"; then scr_resolution=1024x600 fi # Disable tray icon support on Moblin have_tray_icon="no" if test "$use_dbus_glib" = "yes"; then serviceentrydir=`$PKG_CONFIG dbus-1 --variable=session_bus_services_dir` fi desktopentrydir="\${datadir}/applications" echo "Compiling for Moblin" PKG_CHECK_MODULES(hildon, hildon-1) EXTRA_CFLAGS="$EXTRA_CFLAGS $hildon_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $hildon_LIBS" AC_DEFINE([MOBLIN], [1], [Defined if building for Moblin]) AC_DEFINE([HILDON_1], [1], [Defined if using hildon-1]) AC_DEFINE([USE_HILDON_WINDOW], [1], [Defined if using HildonWindow]) else AC_MSG_ERROR([Unknown platform $PLATFORM selected]) fi #################### ### Translations ### #################### vgllocaledir=`eval echo $localedir` vgllocaledir=`eval echo $vgllocaledir` AC_DEFINE_UNQUOTED(VAGALUME_LOCALE_DIR, "$vgllocaledir", [Locale dir]) AM_GLIB_GNU_GETTEXT GETTEXT_PACKAGE=vagalume AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) ################################################################## ### Everything has been checked, now define Automake variables ### ################################################################## AM_CONDITIONAL(MAEMO_PLATFORM, test "$PLATFORM" = "maemo") AM_CONDITIONAL(HILDON_2_2, test "$PLATFORM" = "maemo" -a "$PLATFORMVERS" = "5") AM_CONDITIONAL(USE_INTERNAL_MD5, test "x$have_glib_2_16" != "xyes") if test "$have_glib_2_16" = "yes"; then AC_DEFINE([HAVE_GCHECKSUM],[1],[Defined if GLib has support for GChecksum]) AC_DEFINE([HAVE_GSTRCMP0],[1],[Defined if GLib has support for g_strcmp0]) md5_method="glib" else md5_method="internal implementation" fi if test "$scr_resolution" = "desktop"; then AC_DEFINE([SCR_RESOLUTION_DESKTOP], [1], [Compiled for a desktop system]) elif test "$scr_resolution" = "800x480"; then AC_DEFINE([SCR_RESOLUTION_800X480], [1], [Compiled for 800x480]) elif test "$scr_resolution" = "1024x600"; then AC_DEFINE([SCR_RESOLUTION_1024X600], [1], [Compiled for 1024x600]) else AC_MSG_ERROR([Unknown screen resolution in the target platform]) fi AC_SUBST(SCR_RESOLUTION, "$scr_resolution") AM_CONDITIONAL(HAVE_DBUS_SUPPORT, test -n "$serviceentrydir") if test -n "$serviceentrydir"; then AC_DEFINE([HAVE_DBUS_SUPPORT], [1], [Defined if compiling with D-BUS]) fi AM_CONDITIONAL(HAVE_CONIC, test "$have_conic" = "yes") if test "$have_conic" = "yes"; then AC_DEFINE([HAVE_CONIC], [1], [Defined if building with libconic]) fi AM_CONDITIONAL(HAVE_MAEMO_SB_PLUGIN, test "$have_sb_plugin" = "yes") if test "$have_sb_plugin" = "yes"; then AC_DEFINE([HAVE_MAEMO_SB_PLUGIN], [1], [Defined if building the Maemo status bar plugin]) AC_SUBST(SBPLUGIN_LIBS) AC_SUBST(SBPLUGIN_CFLAGS) AC_SUBST(sbplugindesktopentrydir) AC_SUBST(sbplugindir) fi if test "$use_libproxy" = "yes"; then EXTRA_CFLAGS="$EXTRA_CFLAGS $libproxy_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $libproxy_LIBS" AC_DEFINE([HAVE_LIBPROXY],[1],[Defined if using libproxy]) fi if test "$have_gio" = "yes"; then AC_DEFINE([HAVE_GIO], [1], [Defined if building with GIO support]) EXTRA_CFLAGS="$EXTRA_CFLAGS $GIO_CFLAGS" EXTRA_LIBS="$EXTRA_LIBS $GIO_LIBS" fi AM_CONDITIONAL(HAVE_TRAY_ICON, test "$have_tray_icon" = "yes") if test "$have_tray_icon" = "yes"; then AC_DEFINE([HAVE_TRAY_ICON], [1], [Defined if building the FD tray icon]) fi if test "$enable_volume_key_handler" = "yes"; then AC_DEFINE([ENABLE_VOLUME_KEY_HANDLER], [1], [Defined if using a handler for volume keys]) fi AC_SUBST(AM_MAKEFLAGS, "itlocaledir=\${localedir}") AC_SUBST(appdatadir) AC_SUBST(themebigicondir) AC_SUBST(themesmallicondir) AC_SUBST(pixmapdir, "\${datadir}/pixmaps") AC_SUBST(icon48dir, "\${datadir}/icons/hicolor/48x48/apps") AC_SUBST(serviceentrydir) AC_SUBST(desktopentrydir) AC_SUBST(EXTRA_CFLAGS) AC_SUBST(EXTRA_LIBS) AC_SUBST(PLATFORM) AC_SUBST(PLATFORMVERS) ############################ ### Produce output files ### ############################ AC_CONFIG_FILES([ Makefile po/Makefile.in src/Makefile data/vagalume-rfs.sh data/vagalume.conf ]) AC_OUTPUT ###################### ### Status summary ### ###################### echo "" echo "****************************************" echo "*** Vagalume is ready to be compiled ***" echo "****************************************" echo "" echo "Target platform: $PLATFORM $PLATFORMVERS" echo "GTK+ version: $GTKVERSION" echo "GStreamer version: $GSTVERSION" echo "Method to compute MD5 sums: $md5_method" echo "\"Set IM status\" enabled: $set_im_status" echo "System-wide proxy support: $use_libproxy" if test "$PLATFORM" = "gnome"; then echo "Tray icon and notifications enabled: $have_tray_icon" elif test "$PLATFORM" = "maemo"; then echo "Maemo status bar plugin enabled: $have_sb_plugin" echo "Libconic support: $have_conic" fi echo "D-Bus Support enabled:" $use_dbus_glib echo "Target display: $scr_resolution" echo "" echo "Type 'make' to compile Vagalume" echo "" vagalume-0.8.6/config.guess0000755000000000000000000013036112233553543012546 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: vagalume-0.8.6/NEWS0000644000000000000000000002242612233552617010730 000000000000000.8.6 (28 Oct 2013) * Show an explicit error message if a radio is not available in the user's country. * Fixed Libre.fm support by making Vagalume decode OGG streams directly. * Added GStreamer 1.0 support. * Removed mixer support since the code is now broken. * Registered vagalume as handler for lastfm:// URLs. * Ignore VAGALUME_DEBUG if G_MESSAGES_DEBUG is set. * Translation fixes. 0.8.5 (01 Jul 2011) * Added support for system-wide proxy and SOCKS. * Added support for low bitrate streams. * Added GTK+ 3 support. * Fixed compilation problem with libnotify >= 0.7.0. * Added new Catalan translation. * Fixed minor leak in GtkRcStyle. * Don't output debug messages unless VAGALUME_DEBUG is set. 0.8.4 (26 Dec 2010) * Add support for the new 'Mix' radio * Add tooltips to artist, track and album labels * Added Russian translation * Add keyboard shortcuts for all common actions to the Maemo 5 version * Other minor bugfixes 0.8.3 (05 Feb 2010) * Hildon2.2-style UI for Maemo 5 (Nokia N900) * Play music also when in silent mode (Nokia N900) 0.8.2 (21 Dec 2009) * Authenticate with the username in lowercase (fixes conn. problems) * Install binaries and translation files in /opt in the N900 0.8.1 (16 Dec 2009) * Fall back to the old streaming API if the new one doesn't work * Install data files in /opt in the N900, since the rootfs is quite small 0.8 (13 Dec 2009) * Implemented the Last.fm Web Services API v2.0 * Support for Libre.fm and other Last.fm-compatible services * Support for Maemo 5 (Nokia N900) * New icon that replaces the classic Vagalume logo * New CD case image to place the album cover artwork * New feature to stop playback after a given time ("sleep timer") * New menu option to play any user's tag radio * New "Add bookmark" and "Bookmark this radio" menu entries * New configuration setting to download free tracks automatically * Add {station} keyword to the IM status template * Use system-wide Gnome audio settings * Mixer support to change the volume in non-Maemo targets * Added Polish translation * Autocompletion support for combo box entries * Make url and email clickable on the about dialog * vagalumectl: new commands to show and hide the player window * Fix some timeout problems in HTTP requests 0.7.1 (26 Feb 2009) * Fix problem that prevents Vagalume from playing Last.fm streams * Display names of radio stations correctly 0.7 (01 Sep 2008) * Bookmarks support * Support for the Moblin platform * D-BUS support for the desktop version (including vagalumectl) * vagalumectl: renamed 'tag' to 'globaltag' and 'personal radio' to 'library'. * Added manpage for vagalumectl * Detect if Vagalume is already running when trying to run it * Tag correctly albums by various artists (bug #2741) * Allow removing all tags from a song (bug #2655) * Automatically renew expired sessions (bug #2554) * Added lastfm:// URL handler for the desktop * Fixed problem when tagging tracks with special chars in their names. * New Latvian and French translations (see TRANSLATORS for details) * Merged es and es_MX translations * Support for the multimedia keys in some keyboards * Configuration file moved to ~/.vagalume and converted to XML * Use threads when changing radio stations to avoid UI freezes 0.6 (15 May 2008) * Freedesktop tray icon (Gnome only, thanks Mario Sanchez) * Notifications support via libnotify (Gnome only, thanks Mario Sanchez) * New feature to update the status of several IM clients: Pidgin, Telepathy, Gossip and Gajim (thanks, Tim Wegener) * Gettext support (thanks, Alejandro Piñeiro) * de, it, fi, gl, es, es_MX, pt and pt_BR translations (see TRANSLATORS file for details) * Set the current language when selecting a Last.fm radio, so the name of the radio appears translated. * New setting to disable confirmation dialogs * Help messages for all configuration settings * New D-BUS methods to change the volume level * Support for changing/disabling the audioconvert GStreamer element * vagalumectl script to control Vagalume from the command line (thanks Mario Sanchez) * Commandline switches to change GStreamer elements * Support for osso-backup, cud and rfs (Maemo, thanks Xabier R. Calvar) * Disconnect Vagalume when the Nokia N8x0 is being shut down (thanks Xabier R. Calvar) * New play/stop/skip entries in the Actions menu, with shortcuts * Big 64x64 icon for the menu in IT OS2008 * The password entry no longer has autocap mode (Maemo only) * Dim the "Add to playlist" button after using it * Don't download the album cover when the window is not the topmost (Maemo only) * Increased HTTP timeout. Set a timeout in all HTTP calls * Support for computing MD5 sums using GChecksum from glib 0.5.1 (15 Feb 1008) * Use GTK+ themeable buttons instead of the custom buttons introduced in Vagalume 0.5 * Use the 'audioconvert' GStreamer element. Solves problems with some sinks (Gnome only) * Use a list of default audio decoders and sinks instead of just one * Hide the MD5 password in the debug output * Tooltips for all buttons * Manual page 0.5 (01 Feb 2008) * Status bar plugin (Maemo OS2008 only) (thanks Mario Sanchez) * New buttons and other UI improvements (thanks Felipe Erias) * Fix random problem scrobbling tracks * Download window to see the progress of downloads * New "Stop after this track" menu entry (thanks Tim Wegener) * Keyboard shortcuts to love, ban, recommend, tag and add to playlist * New configuration setting: download directory * Environment variables VAGALUME_GST_SINK and VAGALUME_GST_DECODER to set GStreamer sinks and decoders other than the default ones * Info messages are shown in the progress bar (Gnome-only) * vagalume.spec file for rpm-based distros (thanks Tim Wegener) 0.4 (14 Dec 2007) * New tag dialog that replaces all three previous dialogs, with the ability to see and modify previously set tags and to see the list of popular tags for a particular artist, track or album * New recommendation dialog that replaces all three previuos menu entries * Show the user's list of tags in "Play music tagged..." dialogs * ConIc support: now Last.fm connects the device to the Internet if it's offline (only if libconic is available: IT OS2007 and OS2008) * HTTP proxy support * Official Last.fm application ID for Vagalume! ('vag') * Don't download the album cover if the window is not visible * The time displayed in the progress bar is now more accurate * Install .desktop file for Gnome too * Debian menu file * D-BUS handlers for play, stop, skip, love, ban, show/hide window and close app * Ability to show/hide the window without stopping playback (by now it can only be done using D-BUS) * Disable the love button and menu entry after setting a track as loved * Support for computing MD5 sums using libgcrypt (optional) * If an error happens setting the RSP session or downloading the list of friends, retry until succeeded * The initial login to last.fm is now asynchronous * Fixed some other minor bugs 0.3a (21 Nov 2007) * Fixed a bug that showed buttons with no icons in the Nokia 770 0.3 (21 Nov 2007) * Support for lastfm://play/ URLs (previews and free tracks) * Support for downloading free tracks * D-BUS support (Maemo only) * Handle lastfm:// URLs with Vagalume (Maemo only) * Show album cover of the track being played * New buttons to love, ban and download tracks * No more Gtk+ stock icons: now we have new icons for all buttons (thanks Felipe Erias and Mario Sanchez) * New menu entry to play a group's radio * Show the name of the track being played in the window title * Other UI enhancements (thanks Felipe Erias and Mario Sanchez) * Removed dependency on gnomevfs, using custom curl-based gstreamer source element instead 0.2 (09 Nov 2007) * Added support for recommending tracks to other users * Added support for adding tracks to the user's playlist * Added volume control for Nokia devices using the +/- hardware keys * Show a combo box with the list of friends in all dialogs that require a user name * Show hildon banners after setting tags, recommendations, etc. * Some menus have been reorganized * The released source code now compiles in Maemo 2 (Nokia 770) without modifications * Rewrote all the XMLRPC functions using libxml2 * Fixed a couple of memory leaks and other minor bugs 0.1 (01 Nov 2007) * First proper release, with source code * Implemented Love/Ban using the old protocol too (the new one is not working yet) so now everything works as expected * Support for tagging artists, tracks and albums * Support for the fullscreen hardware key in Nokia N800 * More menu options to select radio stations, including other users' radios, tag radios and similar artists radios * Fixed bug in 0.0.20071031 that made the program crash the first time the user saved their settings * Now Vagalume sends a proper User-Agent header in HTTP requests ;-) 0.0.20071031 (31 Oct 2007) * Support for marking tracks as Loved / Banned * Not it sends Skip information according to the RSP v1.2 * New "Enable scrobbling" setting * New "Discovery mode" setting 0.0.20071028 (29 Oct 2007) * Initial pre-release, a binary-only package for the Nokia N800. vagalume-0.8.6/vagalume.10000644000000000000000000000332112233552617012105 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH vagalume 1 "2013\-10\-28" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME vagalume \- GTK+\-based client for the Last.fm online radio service .SH SYNOPSIS .B vagalume .I [OPTIONS] [URL] .SH DESCRIPTION This manual page documents briefly the .B vagalume command. .PP .B Vagalume is a Last.fm client designed for the Gnome desktop environment. It's small and provides the basic Last.fm features, such as scrobbling, tags, recommendations, etc. Vagalume is also designed to work in the Maemo platform, used by some Nokia devices such as the Nokia 770, N800 and N810. Vagalume also supports other Last.fm-compatible services such as Libre.fm .SH OPTIONS .TP .B \-h Display a brief summary of the command\-line options and their default values. .TP .BI \-d "\| decoder\^" GStreamer decoder .TP .BI \-s "\| sink\^" GStreamer sink .TP .B URL A Last.fm radio address, beginning with .I lastfm:// .SH FILES .TP .I ~/.vagalume/config.xml Vagalume config file. .TP .I ~/.vagalume/bookmarks.xml Vagalume bookmarks file. .SH SEE ALSO .BR vagalumectl (1) .SH AUTHOR This manpage has been written by Alberto Garcia vagalume-0.8.6/THANKS0000644000000000000000000000134712233552617011143 00000000000000I'd like to thank the following people for their help and support during the development of Vagalume: * All my colleagues at Igalia, specially: - Felipe for his enthusiastic work - Mario ("The snake is going to have a shit!") - Calvaris ("Wir fahr'n fahr'n fahr'n auf der Autobahn") * Tim Wegener for his ideas and contributions. * Janne Mäkinen for testing Vagalume on the Nokia 770 * All Vagalume users for their support and new ideas, in particular Miia Ranta for creating the Last.fm Vagalume group. Kiitos! * Costas Stylianou for helping with the Moblin support * And, of course, "the friends of the developer": - Dani - Diego - Jesús - Manel - Marco - Rober - Sabela -- Alberto Garcia Gonzalez